Skip to content

Commit 04f15ad

Browse files
committed
C++: BSL support in StdPairConstructor.
1 parent d362b5a commit 04f15ad

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/StdPair.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class StdPairCopyishConstructor extends Constructor, TaintFunction {
4444
* Additional model for `std::pair` constructors.
4545
*/
4646
private class StdPairConstructor extends Constructor, TaintFunction {
47-
StdPairConstructor() { this.hasQualifiedName("std", "pair", "pair") }
47+
StdPairConstructor() { this.getDeclaringType() instanceof StdPair }
4848

4949
/**
5050
* Gets the index of a parameter to this function that is a reference to

0 commit comments

Comments
 (0)