X Tutup
Skip to content

fixed #13660 - SuppressionList::Suppression::checked was not properly set in all cases#7380

Merged
firewave merged 5 commits intodanmar:mainfrom
firewave:suppr-wildcard-unmatched
Apr 7, 2025
Merged

fixed #13660 - SuppressionList::Suppression::checked was not properly set in all cases#7380
firewave merged 5 commits intodanmar:mainfrom
firewave:suppr-wildcard-unmatched

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

This was initially introduced for inline suppressions but was actually used beyond that.

@firewave
Copy link
Copy Markdown
Collaborator Author

I will address the TODOs at a later date. I want to finally get #3090 merged first.

@firewave

This comment was marked as resolved.

@firewave firewave force-pushed the suppr-wildcard-unmatched branch 7 times, most recently from 6b1a993 to 8ab2303 Compare March 21, 2025 18:37
@firewave firewave force-pushed the suppr-wildcard-unmatched branch 3 times, most recently from 046ca45 to 8acd26e Compare March 21, 2025 20:43
@firewave firewave marked this pull request as ready for review March 21, 2025 20:43
bool thisAndNextLine{}; // Special case for backwards compatibility: { // cppcheck-suppress something
bool matched{};
bool checked{}; // for inline suppressions, checked or not
bool checked{};
Copy link
Copy Markdown
Owner

@danmar danmar Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add comments that explain "checked" and "matched".

Spontanously I guess "checked" just means that isSuppressed has been called at all? It does not say if the checkers has been executed or not?

And "matched" indicates if some warning was suppressed by this suppression?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

        bool matched{}; /** This suppression was fully matched in an isSuppressed() call */
        bool checked{}; /** This suppression applied to code which was being analyzed but did not match the error in an isSuppressed() call */

Copy link
Copy Markdown
Owner

@danmar danmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you add the comments for matched and checked then feel free to merge..

@firewave firewave force-pushed the suppr-wildcard-unmatched branch from 8acd26e to bc6b15d Compare April 7, 2025 09:20
@firewave firewave force-pushed the suppr-wildcard-unmatched branch from bc6b15d to 1154562 Compare April 7, 2025 09:37
@firewave firewave merged commit fe8a5aa into danmar:main Apr 7, 2025
60 checks passed
@firewave firewave deleted the suppr-wildcard-unmatched branch April 7, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup