Skip to content

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

Merged
firewave merged 7 commits intocppcheck-opensource:mainfrom
firewave:warn-x
Nov 26, 2023
Merged

added xml.h wrapper for TinyXML2 / cleaned up suppressions of Clang compiler warnings#5700
firewave merged 7 commits intocppcheck-opensource:mainfrom
firewave:warn-x

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/checkclass.cpp
(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
Copy Markdown
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.

Comment thread lib/xml.h
@firewave firewave merged commit f246178 into cppcheck-opensource:main Nov 26, 2023
@firewave firewave deleted the warn-x branch November 26, 2023 13:04
@firewave
Copy link
Copy Markdown
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