Skip to content

Commit e6763c8

Browse files
authored
C++: add bindingset to private Printf predicate
That predicate turned out to create a lot of tuples, of which only a minimal part was then used in the query.
1 parent 64d15d6 commit e6763c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/lib/semmle/code/cpp/commons/Printf.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ private int lengthInBase10(float f) {
382382
result = f.log10().floor() + 1
383383
}
384384

385+
bindingset[expr]
385386
private BufferWriteEstimationReason getEstimationReasonForIntegralExpression(Expr expr) {
386387
// we consider the range analysis non trivial if it
387388
// * constrained non-trivially both sides of a signed value, or

0 commit comments

Comments
 (0)