wildcard suppression incorrectly reported as unmatched with cached results
Encountered while working on https://github.com/danmar/cppcheck/pull/7079.
void f()
{
(void)(*((int*)0));
}
$ ./cppcheck --template=simple --enable=information --suppress=checkersReport --cppcheck-build-dir=b1 --suppress='nullPointer:a*.cpp' a.cpp
Checking a.cpp ...
$ ./cppcheck --template=simple --enable=information --suppress=checkersReport --cppcheck-build-dir=b1 --suppress='nullPointer:a*.cpp' a.cpp
Checking a.cpp ...
a*.cpp:0:0: information: Unmatched suppression: nullPointer [unmatchedSuppression]
Change History
(3)
| Summary: |
wildcard suppression reported as unmatched with cached results → wildcard suppression incorrectly reported as unmatched with cached results
|
| Milestone: |
→ 2.21
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
| Priority: |
Normal → safety-cosmetic
|
Fixed by https://github.com/danmar/cppcheck/pull/8267.