C++: Changes to models library. #4515
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a sort of prototype for changes I intend to make to the entire models library, the intent being to discuss these ideas on a small scale before I spend more time applying them more widely. Once it's merged I intend to make a second, larger PR applying what is agreed upon to all of
models\implementations. The changes are:models\implementationsrepresenting library functionsprivate; there may be cases where we think using them directly has legitimate value to users (possibly bits ofAllocation.qll), in which case we should consider migrating sufficient code fromimplementationstointerfaces. But in most cases these classes are implementation details, and we may want to change their details in future (for example combining or splitting models).add a QLmoduleforStd, instead of naming lots of classesStdPairConstructor,StdMapInsertetc. This was suggested by @tausbn. I'm not really sure what the pro's and con's will be for us so I'd like to discuss what we want to get out of it before pressing on with this.getParameter(_)- because it's believed to be inefficient (I only found one remaining use anyway)[, ]syntax; I expect this is uncontroversial at this point.I'm also open to further suggestions (porting taint models to the upcoming shared flow summary interface is out of scope, however).