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.
Inline suppression for block of code or whole file (danmar#5402)
Added new suppress comments: - `cppcheck-suppress-begin` and `cppcheck-suppress-end` to remove blocks of suppression - `cppcheck-suppress-file` to remove suppression at file level The suppressions do not interfere with each others. For example, all the suppressions are matched in the following code: ```c // cppcheck-suppress-file uninitvar void f() { int a; // cppcheck-suppress-begin uninitvar // cppcheck-suppress uninitvar a++; // cppcheck-suppress-end uninitvar } ``` Tickets: https://trac.cppcheck.net/ticket/11902 https://trac.cppcheck.net/ticket/8528
- Loading branch information
1 parent
8ef4da4
commit 44ab976
Showing
6 changed files
with
560 additions
and
39 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
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
Oops, something went wrong.