chore: Enable clang-tidy bugprone-unused-local-non-trivial-variable check - #6458
Merged
bthomee merged 5 commits intoMar 9, 2026
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #6458 +/- ##
=========================================
- Coverage 79.8% 79.8% -0.0%
=========================================
Files 861 861
Lines 67858 67857 -1
Branches 7551 7552 +1
=========================================
- Hits 54178 54176 -2
- Misses 13680 13681 +1
🚀 New features to boost your workflow:
|
godexsoft
marked this pull request as ready for review
March 3, 2026 17:46
bthomee
reviewed
Mar 4, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Enables the clang-tidy bugprone-unused-local-non-trivial-variable check and updates a few code/test sites to comply by removing unused non-trivial locals and avoiding repeated temporary creation.
Changes:
- Enable
bugprone-unused-local-non-trivial-variablein.clang-tidy. - Remove unused local variables (e.g.,
std::stringstream,std::string) flagged by the new check. - Minor test cleanup to avoid repeating
asString()calls.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/xrpld/app/consensus/RCLConsensus.cpp |
Removes an unused std::stringstream local. |
src/test/rpc/Peers_test.cpp |
Avoids repeated asString() call by storing tag in a local. |
src/test/rpc/LedgerEntry_test.cpp |
Removes unused locals and simplifies a test block scope. |
src/test/app/Manifest_test.cpp |
Removes an unused std::string local. |
.clang-tidy |
Enables bugprone-unused-local-non-trivial-variable. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bthomee
approved these changes
Mar 9, 2026
bthomee
enabled auto-merge (squash)
March 9, 2026 15:08
beartec-jpg
pushed a commit
to beartec-jpg/FalconLedger
that referenced
this pull request
Jun 1, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
High Level Overview of Change
This PR enables clang-tidy
bugprone-unused-local-non-trivial-variablecheck.Context of Change
Type of Change
.gitignore, formatting, dropping support for older tooling)API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)