Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 595bb02 commit 4a07912Copy full SHA for 4a07912
1 file changed
cpp/ql/src/semmle/code/cpp/models/implementations/StdMap.qll
@@ -16,10 +16,7 @@ private class MapOrUnorderedMap extends Class {
16
* Additional model for map constructors using iterator inputs.
17
*/
18
private class StdMapConstructor extends Constructor, TaintFunction {
19
- StdMapConstructor() {
20
- this.hasQualifiedName(["std", "bsl"], "map", "map") or
21
- this.hasQualifiedName(["std", "bsl"], "unordered_map", "unordered_map")
22
- }
+ StdMapConstructor() { this.getDeclaringType() instanceof MapOrUnorderedMap }
23
24
/**
25
* Gets the index of a parameter to this function that is an iterator.
0 commit comments