File tree Expand file tree Collapse file tree
cpp/ql/src/semmle/code/cpp/models/implementations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ import semmle.code.cpp.models.interfaces.Taint
44 * The `std::basic_string` constructor(s).
55 */
66class StringConstructor extends TaintFunction {
7- StringConstructor ( ) {
8- this .hasQualifiedName ( "std" , "basic_string" , "basic_string" )
9- }
7+ StringConstructor ( ) { this .hasQualifiedName ( "std" , "basic_string" , "basic_string" ) }
108
119 override predicate hasTaintFlow ( FunctionInput input , FunctionOutput output ) {
1210 // flow from any constructor argument to return value
@@ -19,9 +17,7 @@ class StringConstructor extends TaintFunction {
1917 * The standard function `std::string.c_str`.
2018 */
2119class StringCStr extends TaintFunction {
22- StringCStr ( ) {
23- this .hasQualifiedName ( "std" , "basic_string" , "c_str" )
24- }
20+ StringCStr ( ) { this .hasQualifiedName ( "std" , "basic_string" , "c_str" ) }
2521
2622 override predicate hasTaintFlow ( FunctionInput input , FunctionOutput output ) {
2723 // flow from string itself (qualifier) to return value
You can’t perform that action at this time.
0 commit comments