Skip to content
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

added xml.h wrapper for TinyXML2 / cleaned up suppressions of Clang compiler warnings #5700

Merged
merged 7 commits into from
Nov 26, 2023

Conversation

firewave
Copy link
Collaborator

No description provided.

(tok1->previous()->isAssignmentOp() && tok1->tokAt(-2)->variable() && Token::Match(tok1->tokAt(-2)->variable()->typeEndToken(), "const_iterator|const_reverse_iterator")))))
;
(tok1->previous()->isAssignmentOp() && tok1->tokAt(-2)->variable() && Token::Match(tok1->tokAt(-2)->variable()->typeEndToken(), "const_iterator|const_reverse_iterator"))))) {
// empty body
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was not reported by -Wextra-semi-stmt but I chose to fix it along with the warning as no body in an if-else chain is mad.

lib/xml.h Show resolved Hide resolved
@firewave firewave merged commit f246178 into danmar:main Nov 26, 2023
68 checks passed
@firewave firewave deleted the warn-x branch November 26, 2023 13:04
@firewave
Copy link
Collaborator Author

firewave commented Nov 26, 2023

Strangely I am now getting -Wzero-as-null-pointer-constant warnings from the picojson.h. Somehow that is not reported by clang-tidy but by the compiler. I filed llvm/llvm-project#73449 about that upstream.

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