C++: Add change notes for C++17 if and switch initializers

This commit is contained in:
Jeroen Ketema
2022-05-12 08:28:34 +02:00
parent 894380d701
commit e23e5e5b12
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
---
category: feature
---
* A `getInitialization` predicate was added to the `ConstexprIfStmt`, `IfStmt`, and `SwitchStmt` classes that yields the C++17-style initializer of the `if` or `switch` statement when it exists.

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* The `cpp/unused-local-variable` no longer ignores functions that include `if` and `switch` statements with C++17-style initializers.