forked from danmar/cppcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #11401 nullpointer dereference with alignof (danmar#4601)
* checknullpointer: Don't report dereference with alignof * Refactor unevaluating operator check in checknullpointer Unifying these ensures the different checks treat the operators the same. * Fix FP with _Alignof and null pointer Just like alignof, _Alignof does not evaluate its operand. * CheckNullPointer: Also support compiler specific alignof This fixes #11401 which is about __alignof__. For good measure, also add the microsoft extensions __alignof and _alignof.
- Loading branch information
1 parent
8465d90
commit 52264b9
Showing
2 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters