Skip to content

fixed #13659 - set proper line for file-level unmatchedSuppression#8266

Merged
firewave merged 1 commit intodanmar:mainfrom
firewave:unmatched-line
Feb 26, 2026
Merged

fixed #13659 - set proper line for file-level unmatchedSuppression#8266
firewave merged 1 commit intodanmar:mainfrom
firewave:unmatched-line

Conversation

@firewave
Copy link
Collaborator

No description provided.

@sonarqubecloud
Copy link

std::list<::ErrorMessage::FileLocation> callStack;
if (!s.fileName.empty()) {
callStack.emplace_back(s.fileName, s.lineNumber, 0);
callStack.emplace_back(s.fileName, s.lineNumber == -1 ? 0 : s.lineNumber, 0); // TODO: get rid of s.lineNumber == -1 hack
Copy link
Owner

Choose a reason for hiding this comment

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

It feels like you should tweak NO_LINE and what reportErr does with the NO_LINE value instead. there are warnings that don't have a line number and we should have a consistent output.

@firewave firewave merged commit fdc0170 into danmar:main Feb 26, 2026
68 checks passed
@firewave firewave deleted the unmatched-line branch February 26, 2026 14:58
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