Skip to content

fix #13961: Additional information for inline suppression in XML output #7622

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ludviggunne
Copy link
Collaborator

No description provided.

if (extraPos != std::string::npos) {
extraComment = trim(comment.substr(extraPos + extraDelimiterSize));
for (auto it = extraComment.begin(); it != extraComment.end();)
it = *it < 0 ? extraComment.erase(it) : it + 1;
Copy link
Owner

Choose a reason for hiding this comment

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

do you assume that a char is signed here? that is not always true.

This comment was marked as resolved.

Copy link
Owner

Choose a reason for hiding this comment

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

I have a feeling that we should skip more characters. all control characters to start with. but well maybe that is a question for toxml instead.. and we don't have to solve that in this PR maybe.

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