Skip to content

Commit 93f2e85

Browse files
committed
Formatting update.
1 parent 4a9b2d5 commit 93f2e85

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ predicate isNonConst(DataFlow::Node node) {
7878
// are considered as possible non-const sources
7979
// The function's output must also not be const to be considered a non-const source
8080
exists(Function func, CallInstruction call |
81-
// NOTE: could use `Call` getAnArgument() instead of `CallInstruction` but requires two
81+
// NOTE: could use `Call` getAnArgument() instead of `CallInstruction` but requires two
8282
// variables representing the same call in ordoer to use `callOutput` below.
83-
exists(Expr arg | call.getPositionalArgumentOperand(_).getDef().getUnconvertedResultExpression() = arg and
84-
arg = node.asDefiningArgument()
83+
exists(Expr arg |
84+
call.getPositionalArgumentOperand(_).getDef().getUnconvertedResultExpression() = arg and
85+
arg = node.asDefiningArgument()
8586
)
8687
or
8788
call.getUnconvertedResultExpression() = node.asIndirectExpr()

0 commit comments

Comments
 (0)