Skip to content

Commit 141d240

Browse files
author
Robert Marsh
committed
C++: autoformat
1 parent 4c82753 commit 141d240

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,13 @@ class StdStringAppend extends TaintFunction {
6666
getParameter(result).getType() = getDeclaringType().getTemplateArgument(0) // i.e. `std::basic_string::CharT`
6767
}
6868

69-
int getAnIteratorParameter() {
70-
getParameter(result).getType() instanceof Iterator
71-
}
69+
int getAnIteratorParameter() { getParameter(result).getType() instanceof Iterator }
7270

7371
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
7472
// flow from string and parameter to string (qualifier) and return value
7573
(
7674
input.isQualifierObject() or
77-
input.isParameterDeref(getAStringParameter())
78-
or
75+
input.isParameterDeref(getAStringParameter()) or
7976
input.isParameter(getAnIteratorParameter())
8077
) and
8178
(

0 commit comments

Comments
 (0)