C++: Improve change note comments.

This commit is contained in:
Mathias Vorreiter Pedersen 2024-04-16 13:55:55 +01:00
Родитель 439afd97ba
Коммит 6cb5db2387
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -1,6 +1,5 @@
---
category: majorAnalysis
category: minorAnalysis
---
* Reduce false positives of `GlobalUseBeforeInit.ql` and `InconsistentNullnessTesting.ql`.
Many global variables that are initialized at declaration will be reported by `GlobalUseBeforeInit.ql`.
When `checked` is in a macro expansion for handling exceptions, it is very likely for `InconsistentNullnessTesting.ql` to report false positives.
* The "Global variable may be used before initialization" query (`cpp/global-use-before-init`) no longer raises an alert on global variables that are initialized when they are declared.
* The "Inconsistent null check of pointer" query (`cpp/inconsistent-nullness-testing`) query no longer raises an alert when the guarded check is in a macro expansion.