mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Now that change notes are per-package, new change notes should be created in the `change-notes` folder under the affected pack (e.g., `cpp/ql/src/change-notes` for C++ query change notes. I've moved all of the change note files that were added before we started publishing them in packs to an `old-change-notes` directory under each language, to reduce the temptation to add new change notes there. I'm working on a document to describe how and when to create change notes for packs separately.
802 B
802 B
lgtm,codescanning
- The
SimpleRangeAnalysislibrary has gained support for several language constructs it did not support previously. These improvements primarily affect the queriescpp/constant-comparison,cpp/comparison-with-wider-type, andcpp/integer-multiplication-cast-to-long. The newly supported language features are:- Multiplication of unsigned numbers.
- Multiplication by a constant.
- Reference-typed function parameters.
- Comparing a variable not equal to an endpoint of its range, thus narrowing the range by one.
- Using
if (x)orif (!x)or similar to test for equality to zero.
- The
SimpleRangeAnalysislibrary can now be extended with custom rules. See examples incpp/ql/src/experimental/semmle/code/cpp/rangeanalysis/extensions/.