Skip to content

Commit e9132d8

Browse files
committed
C++: Autoformat.
1 parent ab716eb commit e9132d8

File tree

1 file changed

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

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import semmle.code.cpp.models.interfaces.Taint
44
* The `std::basic_string` constructor(s).
55
*/
66
class 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
*/
2119
class 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

0 commit comments

Comments
 (0)