Sponsored Content
Skip to content

refactor: Enable remaining clang-tidy cppcoreguidelines checks - #6538

Merged
bthomee merged 2 commits into
XRPLF:developfrom
godexsoft:refactor/clang-tidy-cppcoreguidelines
Mar 17, 2026
Merged

refactor: Enable remaining clang-tidy cppcoreguidelines checks#6538
bthomee merged 2 commits into
XRPLF:developfrom
godexsoft:refactor/clang-tidy-cppcoreguidelines

Conversation

@godexsoft

@godexsoft godexsoft commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

High Level Overview of Change

This PR attempts to enable remaining clang-tidy cppcoreguidelines checks.

API Impact

No impact.

@godexsoft godexsoft added the DraftRunCI Normally CI does not run on draft PRs. This opts in. label Mar 12, 2026
Comment thread src/libxrpl/protocol/STTx.cpp Outdated
@codecov

codecov Bot commented Mar 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.10730% with 58 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.8%. Comparing base (b523770) to head (27134ea).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
src/libxrpl/shamap/SHAMapDelta.cpp 30.0% 7 Missing ⚠️
src/xrpld/app/rdb/backend/detail/Node.cpp 56.2% 7 Missing ⚠️
src/xrpld/overlay/detail/OverlayImpl.cpp 33.3% 6 Missing ⚠️
src/xrpld/overlay/detail/PeerImp.cpp 0.0% 6 Missing ⚠️
src/libxrpl/basics/Archive.cpp 0.0% 5 Missing ⚠️
src/libxrpl/shamap/SHAMapSync.cpp 76.2% 5 Missing ⚠️
src/xrpld/app/ledger/detail/LedgerMaster.cpp 0.0% 4 Missing ⚠️
src/libxrpl/beast/insight/StatsDCollector.cpp 0.0% 3 Missing ⚠️
src/xrpld/app/ledger/detail/LedgerCleaner.cpp 0.0% 3 Missing ⚠️
src/libxrpl/json/json_reader.cpp 83.3% 2 Missing ⚠️
... and 8 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #6538     +/-   ##
=========================================
- Coverage     79.8%   79.8%   -0.0%     
=========================================
  Files          878     878             
  Lines        67892   68026    +134     
  Branches      7554    7557      +3     
=========================================
+ Hits         54200   54293     +93     
- Misses       13692   13733     +41     
Files with missing lines Coverage Δ
include/xrpl/basics/safe_cast.h 88.9% <100.0%> (+7.1%) ⬆️
include/xrpl/beast/core/List.h 92.6% <ø> (+0.1%) ⬆️
include/xrpl/json/json_value.h 98.5% <ø> (ø)
include/xrpl/json/json_writer.h 100.0% <ø> (ø)
include/xrpl/protocol/PublicKey.h 80.5% <ø> (ø)
include/xrpl/protocol/STAccount.h 84.6% <ø> (ø)
include/xrpl/protocol/STObject.h 93.7% <ø> (ø)
include/xrpl/protocol/SecretKey.h 66.7% <ø> (ø)
include/xrpl/protocol/Seed.h 100.0% <ø> (ø)
include/xrpl/protocol/detail/STVar.h 100.0% <ø> (ø)
... and 99 more

... and 2 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/test/core/ClosureCounter_test.cpp
Comment thread src/test/shamap/FetchPack_test.cpp
Comment thread src/xrpld/app/consensus/RCLConsensus.cpp Outdated
Comment thread src/xrpld/app/ledger/ConsensusTransSetSF.cpp
@godexsoft
godexsoft requested a review from kuznetsss March 16, 2026 15:54
@godexsoft
godexsoft marked this pull request as ready for review March 16, 2026 15:59
@godexsoft godexsoft removed the DraftRunCI Normally CI does not run on draft PRs. This opts in. label Mar 16, 2026

@kuznetsss kuznetsss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 🚀

@godexsoft
godexsoft force-pushed the refactor/clang-tidy-cppcoreguidelines branch from f2717f1 to cf93793 Compare March 16, 2026 23:33
@godexsoft
godexsoft requested a review from bthomee March 16, 2026 23:34
Comment thread src/xrpld/app/misc/NetworkOPs.cpp Outdated
Fixes by AI

Enable checks

Few small fixes

Add safe_downcast wrapper and use it

Fix more clang-tidy

Fix review suggestion
@godexsoft
godexsoft force-pushed the refactor/clang-tidy-cppcoreguidelines branch from 88d0d13 to dc4bbdb Compare March 17, 2026 15:43
@godexsoft godexsoft added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Mar 17, 2026
@bthomee
bthomee enabled auto-merge March 17, 2026 15:54
@bthomee
bthomee added this pull request to the merge queue Mar 17, 2026
@bthomee
bthomee removed this pull request from the merge queue due to the queue being cleared Mar 17, 2026
@bthomee
bthomee enabled auto-merge (squash) March 17, 2026 18:48
@bthomee
bthomee merged commit 72f4cb0 into XRPLF:develop Mar 17, 2026
1 check passed
@mvadari mvadari added this to the 3.2.0 milestone May 20, 2026
beartec-jpg pushed a commit to beartec-jpg/FalconLedger that referenced this pull request Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants