-
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
base: main
Are you sure you want to change the base?
Conversation
lib/suppressions.cpp
Outdated
{ | ||
std::lock_guard<std::mutex> lg(mSuppressionsSync); | ||
|
||
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 |
|
No description provided.