-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix #14064 Files are reanalyzed with --cppcheck-build-dir and inline suppressions (regression) #7741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the suppression could contain a pattern we need to use the matching logic of the suppressions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.