Fix #14064 Files are reanalyzed with --cppcheck-build-dir and inline suppressions (regression)#7741
Conversation
lib/suppressions.cpp
Outdated
|
|
||
| out << " <suppressions>" << std::endl; | ||
| for (const Suppression &suppression : mSuppressions) { | ||
| if (!filePath.empty() && !suppression.fileName.empty() && filePath != suppression.fileName) |
There was a problem hiding this comment.
As the suppression could contain a pattern we need to use the matching logic of the suppressions.
There was a problem hiding this comment.
Not sure I follow. There is only one suppression at a time, and we only care about inline suppressions.
|
Way to test the non-inline suppression case:
|
|
It is possible that |
|
|
LGTM but tests requiring Although I/we should rather work on #7079 as a priority and IMO no more builddir changes should be landed before that is in. |
|
|
We might want to backport this to 2.18 as well. |
Definitely. |
…suppressions (regression) (danmar#7741) (cherry picked from commit 4617bc2)
See #7756. |



No description provided.