Skip to content

Commit 985a2d1

Browse files
committed
Fix poor performance of sameSource predicate
1 parent 0eb6feb commit 985a2d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/common/src/codingstandards/cpp/rules/iofstreammissingpositioning/IOFstreamMissingPositioning.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ class WriteFunctionCall extends ReadWriteCall {
5151
}
5252
}
5353

54-
pragma[inline]
54+
bindingset[a, b]
55+
pragma[inline_late]
5556
predicate sameSource(FunctionCall a, FunctionCall b) {
5657
sameStreamSource(a, b) or
5758
sameFileSource(a, b)

0 commit comments

Comments
 (0)