-
Notifications
You must be signed in to change notification settings - Fork 1.6k
updated CI to Clang 21 #7272
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
Merged
Merged
updated CI to Clang 21 #7272
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
da16854
clang_tidy.cmake: added `run-clang-tidy-21` to binaries to look for
firewave ca7b699
updated CI to Clang 21
firewave 459deca
clangimport.cpp: fixed `performance-move-const-arg` clang-tidy warning
firewave 8d14347
processexecutor.cpp: fixed `bugprone-unintended-char-ostream-output` …
firewave 5db41d7
clang_tidy.cmake: enabled `clang-analyzer-optin.cplusplus.Uninitializ…
firewave b8b5ef1
compileroptions.cmake: disabled `-Wnrvo` for Clang
firewave 91074b1
disabled `-Wms-bitfield-padding` Clang warning for now
firewave 600ec66
fixture.h: suppress acceptable `bugprone-unintended-char-ostream-outp…
firewave d04bbf3
configured `modernize-use-trailing-return-type` to report it for lamb…
firewave 2604e2d
fixed `readability-math-missing-parentheses` clang-tidy warnings
firewave c5b74bb
disabled `portability-avoid-pragma-once` clang-tidy warning
firewave 673e49f
disabled `readability-use-concise-preprocessor-directives` clang-tidy…
firewave 0064865
disabled `modernize-use-scoped-lock` clang-tidy warning
firewave ff2f065
valueflow.cpp: fixed `readability-math-missing-parentheses` clang-tid…
firewave 30b902f
fixed `-Wmissing-noreturn` Clang warnings
firewave b94e53f
fixed `misc-confusable-identifiers` clang-tidy warnings
firewave 6625d34
cppchecklibrarydata.cpp: fixed `-Wunreachable-code` compiler warnings
firewave File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -547,7 +547,7 @@ size_t ValueFlow::getSizeOf(const ValueType &vt, const Settings &settings, Accur | |
| if (currentBitfieldAlloc == 0) { | ||
| bits = n * charBit; | ||
| } else { | ||
| bits = currentBitfieldAlloc * charBit - currentBitCount; | ||
| bits = (currentBitfieldAlloc * charBit) - currentBitCount; | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ludviggunne This was introduced in 326a930. |
||
| } | ||
| } | ||
| if (bits > 0) { | ||
|
|
@@ -570,7 +570,7 @@ size_t ValueFlow::getSizeOf(const ValueType &vt, const Settings &settings, Accur | |
| n *= dim; | ||
| size_t padding = (a - (total % a)) % a; | ||
| if (currentBitCount > 0) { | ||
| bool fitsInBitfield = currentBitCount + n * charBit <= currentBitfieldAlloc * charBit; | ||
| bool fitsInBitfield = currentBitCount + (n * charBit) <= currentBitfieldAlloc * charBit; | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ludviggunne This was introduced in 7504064. |
||
| bool isAligned = currentBitCount % (charBit * a) == 0; | ||
| if (vt2.isIntegral() && fitsInBitfield && isAligned) { | ||
| currentBitCount += charBit * n; | ||
|
|
@@ -5857,7 +5857,7 @@ static void valueFlowSubFunction(const TokenList& tokenlist, | |
| v.errorPath.emplace_back(argtok, | ||
| "Calling function '" + calledFunction->name() + "', " + nr + " argument '" + | ||
| argtok->expressionString() + "' value is " + v.infoString()); | ||
| v.path = 256 * v.path + id % 256; | ||
| v.path = (256 * v.path) + (id % 256); | ||
| // Change scope of lifetime values | ||
| if (v.isLifetimeValue()) | ||
| v.lifetimeScope = ValueFlow::Value::LifetimeScope::SubFunction; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
The return values were never used and now also caused a confusing
-Wunreachable-codewarning in each invocation - see llvm/llvm-project#152477.