File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
cpp/ql/src/semmle/code/cpp/models/implementations Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import semmle.code.cpp.models.interfaces.Taint
77/**
88 * An instantiation of `std::pair<T1, T2>`.
99 */
10- class StdPairClass extends ClassTemplateInstantiation {
11- StdPairClass ( ) { getTemplate ( ) .hasQualifiedName ( "std" , "pair" ) }
10+ class StdPair extends ClassTemplateInstantiation {
11+ StdPair ( ) { this .hasQualifiedName ( "std" , "pair" ) }
1212}
1313
1414/**
@@ -18,9 +18,9 @@ class StdPairClass extends ClassTemplateInstantiation {
1818 */
1919class StdPairCopyishConstructor extends Constructor , TaintFunction {
2020 StdPairCopyishConstructor ( ) {
21- this .getDeclaringType ( ) instanceof StdPairClass and
21+ this .getDeclaringType ( ) instanceof StdPair and
2222 this .getNumberOfParameters ( ) = 1 and
23- this .getParameter ( 0 ) .getUnspecifiedType ( ) .( ReferenceType ) .getBaseType ( ) instanceof StdPairClass
23+ this .getParameter ( 0 ) .getUnspecifiedType ( ) .( ReferenceType ) .getBaseType ( ) instanceof StdPair
2424 }
2525
2626 override predicate hasTaintFlow ( FunctionInput input , FunctionOutput output ) {
You can’t perform that action at this time.
0 commit comments