@@ -12,7 +12,7 @@ import semmle.code.cpp.models.interfaces.DataFlow
1212 * The `std::basic_string` template class instantiations.
1313 */
1414private class StdBasicString extends ClassTemplateInstantiation {
15- StdBasicString ( ) { this .hasQualifiedName ( "std" , "basic_string" ) }
15+ StdBasicString ( ) { this .hasQualifiedName ( [ "std" , "bsl" ] , "basic_string" ) }
1616}
1717
1818/**
@@ -127,7 +127,7 @@ private class StdStringFrontBack extends TaintFunction {
127127 */
128128private class StdStringPlus extends TaintFunction {
129129 StdStringPlus ( ) {
130- this .hasQualifiedName ( "std" , "operator+" ) and
130+ this .hasQualifiedName ( [ "std" , "bsl" ] , "operator+" ) and
131131 this .getUnspecifiedType ( ) instanceof StdBasicString
132132 }
133133
@@ -256,7 +256,7 @@ private class StdStringSubstr extends TaintFunction {
256256 * The `std::basic_stringstream` template class instantiations.
257257 */
258258private class StdBasicStringStream extends ClassTemplateInstantiation {
259- StdBasicStringStream ( ) { this .hasQualifiedName ( "std" , "basic_stringstream" ) }
259+ StdBasicStringStream ( ) { this .hasQualifiedName ( [ "std" , "bsl" ] , "basic_stringstream" ) }
260260}
261261
262262/**
@@ -280,7 +280,7 @@ private class StdStringAt extends TaintFunction {
280280 * The `std::basic_istream` template class instantiations.
281281 */
282282private class StdBasicIStream extends ClassTemplateInstantiation {
283- StdBasicIStream ( ) { this .hasQualifiedName ( "std" , "basic_istream" ) }
283+ StdBasicIStream ( ) { this .hasQualifiedName ( [ "std" , "bsl" ] , "basic_istream" ) }
284284}
285285
286286/**
@@ -314,7 +314,7 @@ private class StdIStreamIn extends DataFlowFunction, TaintFunction {
314314 */
315315private class StdIStreamInNonMember extends DataFlowFunction , TaintFunction {
316316 StdIStreamInNonMember ( ) {
317- this .hasQualifiedName ( "std" , "operator>>" ) and
317+ this .hasQualifiedName ( [ "std" , "bsl" ] , "operator>>" ) and
318318 this .getUnspecifiedType ( ) .( ReferenceType ) .getBaseType ( ) instanceof StdBasicIStream
319319 }
320320
@@ -462,7 +462,7 @@ private class StdIStreamGetLine extends DataFlowFunction, TaintFunction {
462462 * The (non-member) function `std::getline`.
463463 */
464464private class StdGetLine extends DataFlowFunction , TaintFunction {
465- StdGetLine ( ) { this .hasQualifiedName ( "std" , "getline" ) }
465+ StdGetLine ( ) { this .hasQualifiedName ( [ "std" , "bsl" ] , "getline" ) }
466466
467467 override predicate hasDataFlow ( FunctionInput input , FunctionOutput output ) {
468468 // flow from first parameter to return value
@@ -488,7 +488,7 @@ private class StdGetLine extends DataFlowFunction, TaintFunction {
488488 * The `std::basic_ostream` template class instantiations.
489489 */
490490private class StdBasicOStream extends ClassTemplateInstantiation {
491- StdBasicOStream ( ) { this .hasQualifiedName ( "std" , "basic_ostream" ) }
491+ StdBasicOStream ( ) { this .hasQualifiedName ( [ "std" , "bsl" ] , "basic_ostream" ) }
492492}
493493
494494/**
@@ -535,7 +535,7 @@ private class StdOStreamOut extends DataFlowFunction, TaintFunction {
535535 */
536536private class StdOStreamOutNonMember extends DataFlowFunction , TaintFunction {
537537 StdOStreamOutNonMember ( ) {
538- this .hasQualifiedName ( "std" , "operator<<" ) and
538+ this .hasQualifiedName ( [ "std" , "bsl" ] , "operator<<" ) and
539539 this .getUnspecifiedType ( ) .( ReferenceType ) .getBaseType ( ) instanceof StdBasicOStream
540540 }
541541
@@ -609,7 +609,7 @@ private class StdStringStreamStr extends TaintFunction {
609609 * The `std::basic_ios` template class instantiations.
610610 */
611611private class StdBasicIOS extends ClassTemplateInstantiation {
612- StdBasicIOS ( ) { this .hasQualifiedName ( "std" , "basic_ios" ) }
612+ StdBasicIOS ( ) { this .hasQualifiedName ( [ "std" , "bsl" ] , "basic_ios" ) }
613613}
614614
615615/**
0 commit comments