From d02ef7c6b18ad32aefdacb3d87a961ea54388ab5 Mon Sep 17 00:00:00 2001 From: Jeroen Ketema Date: Fri, 2 Jan 2026 20:08:18 +0100 Subject: [PATCH] C++: Add change notes --- cpp/ql/lib/change-notes/2026-01-02-constant-folding.md | 4 ++++ cpp/ql/src/change-notes/2026-01-02-constant-comparison.md | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 cpp/ql/lib/change-notes/2026-01-02-constant-folding.md create mode 100644 cpp/ql/src/change-notes/2026-01-02-constant-comparison.md diff --git a/cpp/ql/lib/change-notes/2026-01-02-constant-folding.md b/cpp/ql/lib/change-notes/2026-01-02-constant-folding.md new file mode 100644 index 00000000000..8ac0f91b939 --- /dev/null +++ b/cpp/ql/lib/change-notes/2026-01-02-constant-folding.md @@ -0,0 +1,4 @@ +--- +category: minorAnalysis +--- +* Some constants will now be represented by their unfolded expression trees. The `isConstant` predicate of `Expr` will no longer yield a result for those constants. diff --git a/cpp/ql/src/change-notes/2026-01-02-constant-comparison.md b/cpp/ql/src/change-notes/2026-01-02-constant-comparison.md new file mode 100644 index 00000000000..2b37f31268d --- /dev/null +++ b/cpp/ql/src/change-notes/2026-01-02-constant-comparison.md @@ -0,0 +1,4 @@ +--- +category: minorAnalysis +--- +* The `cpp/constant-comparison` query has been updated to not produce false positives for constants that are now represented by their unfolded expression trees.