GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — clang-tidy.yml: updated to Clang 21 by firewave · Pull Request #421 · cppcheck-opensource/simplecpp Conversation
firewave
force-pushed
the
clang-21
branch
2 times, most recently
from
db52506 to
7babd3f
Compare
Collaborator
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Collaborator
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
I worked around the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // NOLINTNEXTLINE(misc-const-correctness) - FP | ||
| FileData *const newdata = new FileData(std::move(data)); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I filed llvm/llvm-project#157730 about this.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Can this be merged? It is blocking cppcheck-opensource/cppcheck#7807 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
|
|
||
| Token * const output_end_1 = output.back(); | ||
| const Token * const output_end_1 = output.back(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is not semantically const. Maybe a NOLINT would be more appropriate.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Indeed.
Maybe I should apply cppcheck-opensource/cppcheck#4785 to simplecpp first.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const bool unexpectedA = (!A->name && !A->number && !A->str().empty() && !canBeConcatenatedWithEqual && !canBeConcatenatedStringOrChar); | ||
|
|
||
| Token * const B = tok->next->next; | ||
| const Token * const B = tok->next->next; |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Same, B's members are modified below.
Looks like there still is a cppcheck FN here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
That's possible. I did not check all remaining cases yet.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There's several false negatives.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is the same as https://trac.cppcheck.net/ticket/14161.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ping @danmar |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| std::string type; | ||
| for (simplecpp::Token *typeToken = tok1; typeToken != tok2; typeToken = typeToken->next) { | ||
| for (const simplecpp::Token *typeToken = tok1; typeToken != tok2; typeToken = typeToken->next) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
False negative tracked as https://trac.cppcheck.net/ticket/14119.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (tok->str() != "sizeof") | ||
| continue; | ||
| simplecpp::Token *tok1 = tok->next; | ||
| const simplecpp::Token *tok1 = tok->next; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I filed https://trac.cppcheck.net/ticket/14161 about this.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| { | ||
| bool gotoTok1 = false; | ||
| for (Token *tok = *tok1; tok && tok->op != ')'; tok = gotoTok1 ? *tok1 : tok->next) { | ||
| for (const Token *tok = *tok1; tok && tok->op != ')'; tok = gotoTok1 ? *tok1 : tok->next) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is also only technically correct.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I validated the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I just have spelling to complain about
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| void simplecpp::TokenList::constFoldQuestionOp(Token **tok1) | ||
| { | ||
| bool gotoTok1 = false; | ||
| // NOLINTNEXTLINE(misc-const-correctness) - technically correct but used to access non-cost data |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
"non-cost" => "non-const"
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
| } | ||
|
|
||
| // NOLINTNEXTLINE(misc-const-correctness) - technically correct but used to access non-cost data |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
spelling: "non-cost"
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Are there any plans for a new simplecpp version? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
From my side after #475 was merged. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.