Skip to content

Display inline suppressions in XML output #7581

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ludviggunne
Copy link
Collaborator

No description provided.

@ludviggunne ludviggunne force-pushed the xml-inline-suppressions branch from 556706b to 0f33461 Compare June 8, 2025 11:42
return;

auto &out = mErrorOutput ? *mErrorOutput : std::cerr;
out << " <inline-suppressions>" << std::endl;
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 it might be possible to reuse the SuppressionList::dump.
both inline and non-inline suppressions should be stored in the xml file and it's not required that they are stored separately.

args = [
'-q',
'--inline-suppr',
Copy link
Owner

Choose a reason for hiding this comment

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

I don't remember if some -j2 and -j1 is injected somehow in the CI. but it would make sense to test that this works with multiple jobs also.

'--inline-suppr',
'--xml-version=3',
f'{__proj_inline_suppres_path}template.cpp'
Copy link
Owner

Choose a reason for hiding this comment

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

I suggest that os.path.join is used instead of direct string concatenation.

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