Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3af3d87

Browse files
committed
C++: Change note for several range-analysis PRs
1 parent 60c310d commit 3af3d87

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
lgtm,codescanning
2+
* The `SimpleRangeAnalysis` library has gained support for several language
3+
constructs it did not support previously. These improvements primarily affect
4+
the queries `cpp/constant-comparison`, `cpp/comparison-with-wider-type`, and
5+
`cpp/integer-multiplication-cast-to-long`. The newly supported language
6+
features are:
7+
* Multiplication of unsigned numbers.
8+
* Multiplication by a constant.
9+
* Reference-typed function parameters.
10+
* Comparing a variable not equal to an endpoint of its range, thus narrowing the range by one.
11+
* Using `if (x)` or `if (!x)` or similar to test for equality to zero.
12+
* The `SimpleRangeAnalysis` library can now be extended with custom rules. See
13+
examples in
14+
`cpp/ql/src/experimental/semmle/code/cpp/rangeanalysis/extensions/`.

0 commit comments

Comments
 (0)