-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
lib/suppressions.cpp
Outdated
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; |
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.
do you assume that a char
is signed here? that is not always true.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
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.
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 far as I can tell, the same characters need to be escaped in HTML as in XML, and toxml
handles control characters, so should be good to go.
70eedd1
to
71d2327
Compare
No description provided.