Skip to content

Commit fdf45f0

Browse files
committed
C++: Autoformat.
1 parent c083c62 commit fdf45f0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class StdBasicString extends TemplateClass {
1111
* The `std::string` functions `c_str` and `data`.
1212
*/
1313
class StdStringCStr extends TaintFunction {
14-
StdStringCStr() {
15-
this.hasQualifiedName("std", "basic_string", ["c_str", "data"])
16-
}
14+
StdStringCStr() { this.hasQualifiedName("std", "basic_string", ["c_str", "data"]) }
1715

1816
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
1917
// flow from string itself (qualifier) to return value
@@ -146,9 +144,7 @@ class StdStringSwap extends TaintFunction {
146144
* The `std::string` functions `at` and `operator[]`.
147145
*/
148146
class StdStringAt extends TaintFunction {
149-
StdStringAt() {
150-
this.hasQualifiedName("std", "basic_string", ["at", "operator[]"])
151-
}
147+
StdStringAt() { this.hasQualifiedName("std", "basic_string", ["at", "operator[]"]) }
152148

153149
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
154150
// flow from qualifier to referenced return value

0 commit comments

Comments
 (0)