style: Update clang-format to 21.1.8#6352
Conversation
There was a problem hiding this comment.
Pull request overview
Updates repository formatting tooling by bumping the clang-format pre-commit hook to v21.1.8 and reformatting affected C++ sources/tests to match the new formatter output.
Changes:
- Bump
pre-commitmirrors-clang-formathook revision to v21.1.8. - Apply clang-format-driven reflow/line-breaking updates across various C++ source and test files.
- Ignore repository-root clangd cache directory (
/.cache) in.gitignore.
Reviewed changes
Copilot reviewed 50 out of 57 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/xrpld/shamap/NodeFamily.cpp | Formatting-only changes to constructor initializer layout. |
| src/xrpld/rpc/handlers/LedgerEntry.cpp | Formatting-only changes to error-return wrapping/indentation. |
| src/xrpld/rpc/detail/RPCLedgerHelpers.cpp | Formatting-only changes to wrapped error string formatting. |
| src/xrpld/overlay/detail/PeerImp.cpp | Formatting-only change to post(...std::bind(...)) line wrapping. |
| src/xrpld/overlay/detail/OverlayImpl.h | Formatting-only change to method declaration line breaks. |
| src/xrpld/overlay/detail/OverlayImpl.cpp | Formatting-only change to async_wait call wrapping. |
| src/xrpld/overlay/detail/ConnectAttempt.cpp | Formatting-only changes to timer async_wait wrapping. |
| src/xrpld/overlay/Slot.h | Formatting-only changes to emplace/tuple construction wrapping. |
| src/xrpld/app/tx/detail/DepositPreauth.cpp | Formatting-only change to exists(keylet::...) wrapping. |
| src/xrpld/app/tx/detail/ApplyContext.h | Formatting-only change to visit signature wrapping. |
| src/xrpld/app/rdb/backend/detail/Node.cpp | Formatting-only changes to SQL string building wrapping. |
| src/xrpld/app/misc/detail/ValidatorList.cpp | Formatting-only change to for_each_available signature wrapping. |
| src/xrpld/app/misc/detail/Manifest.cpp | Formatting-only change to reserve(std::accumulate(...)) wrapping. |
| src/xrpld/app/misc/detail/LendingHelpers.cpp | Formatting-only changes to designated initializer formatting. |
| src/xrpld/app/misc/ValidatorList.h | Formatting-only change to for_each_available signature wrapping. |
| src/xrpld/app/misc/CanonicalTXSet.cpp | Formatting-only change to map_.insert(std::make_pair(...)) wrapping. |
| src/xrpld/app/main/GRPCServer.cpp | Formatting-only change to addToRequests(std::make_shared<...>) wrapping. |
| src/xrpld/app/main/Application.cpp | Formatting-only changes to member initialization wrapping. |
| src/xrpld/app/ledger/detail/LedgerReplayTask.cpp | Formatting-only change to std::max(...) wrapping. |
| src/test/shamap/SHAMap_test.cpp | Formatting-only changes to long uint256(...) literals wrapping. |
| src/test/rpc/LedgerEntry_test.cpp | Formatting-only changes to long uint256::fromVoid(...) literals wrapping. |
| src/test/rpc/GRPCTestClientBase.h | Formatting-only changes to stub/channel construction wrapping. |
| src/test/rpc/Feature_test.cpp | Formatting-only changes to long string literal wrapping in expectations. |
| src/test/rpc/AccountObjects_test.cpp | Formatting-only change to create_account_attestation(...) wrapping. |
| src/test/protocol/STParsedJSON_test.cpp | Formatting-only changes to raw string literal construction wrapping. |
| src/test/overlay/compression_test.cpp | Formatting-only changes to std::equal(...) call wrapping. |
| src/test/jtx/impl/mpt.cpp | Formatting-only changes to conversion operator definition line breaks. |
| src/test/jtx/impl/amount.cpp | Formatting-only changes to conversion operator definition line breaks. |
| src/test/core/Config_test.cpp | Formatting-only changes to multi-part raw string concatenation wrapping. |
| src/test/beast/IPEndpoint_test.cpp | Formatting-only changes to brace spacing in initializer lists (Windows-only section). |
| src/test/app/Vault_test.cpp | Formatting-only changes to lambda parameter type wrapping/indentation. |
| src/test/app/Oracle_test.cpp | Formatting-only changes to designated initializer wrapping/indentation. |
| src/test/app/Manifest_test.cpp | Formatting-only changes to std::equal(...) call wrapping. |
| src/test/app/LedgerMaster_test.cpp | Formatting-only changes to uint256(...) literal wrapping. |
| src/test/app/AMM_test.cpp | Formatting-only changes to transaction argument wrapping/indentation. |
| src/libxrpl/shamap/SHAMapDelta.cpp | Formatting-only changes to worker thread lambda wrapping/indentation. |
| src/libxrpl/server/Wallet.cpp | Formatting-only changes to SQL string building wrapping. |
| src/libxrpl/server/JSONRPCUtil.cpp | Formatting-only change to tm initialization ({} style). |
| src/libxrpl/protocol/digest.cpp | Formatting-only changes to conversion operator definition line breaks. |
| src/libxrpl/protocol/Feature.cpp | Formatting-only change to pointer-to-member template parameter spacing. |
| src/libxrpl/json/json_value.cpp | Formatting-only changes to conversion operator definition line breaks. |
| src/libxrpl/basics/Number.cpp | Formatting-only changes to conversion operator definition line breaks. |
| include/xrpl/server/detail/BaseWSPeer.h | Formatting-only change to websocket decorator lambda wrapping. |
| include/xrpl/server/detail/BaseHTTPPeer.h | Formatting-only change to post(...std::bind(...)) wrapping. |
| include/xrpl/protocol/TER.h | Formatting-only changes to trailing return type formatting/wrapping. |
| include/xrpl/protocol/STVector256.h | Formatting-only changes to conversion operator definition line breaks. |
| include/xrpl/protocol/STObject.h | Formatting-only changes to method declarations and proxy conversion operators layout. |
| include/xrpl/protocol/STInteger.h | Formatting-only changes to conversion operator definition line breaks. |
| include/xrpl/protocol/STBitString.h | Formatting-only changes to conversion operator definition line breaks. |
| include/xrpl/protocol/STAmount.h | Formatting-only changes to conversion operator definition line breaks. |
| include/xrpl/protocol/MultiApiJson.h | Formatting-only indentation alignment in requires clauses. |
| include/xrpl/protocol/MPTAmount.h | Formatting-only changes to conversion operator definition line breaks. |
| include/xrpl/protocol/IOUAmount.h | Formatting-only changes to conversion operators definition line breaks. |
| include/xrpl/protocol/Feature.h | Formatting-only brace spacing in FeatureBitset{rhs}. |
| include/xrpl/basics/SlabAllocator.h | Formatting-only adjustment of clang-format on comment indentation. |
| .pre-commit-config.yaml | Bumps clang-format hook pin to v21.1.8. |
| .gitignore | Ignores repo-root /.cache directory (clangd cache). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
144ca2c to
d97eb3c
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 53 out of 60 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #6352 +/- ##
=======================================
Coverage 79.9% 79.9%
=======================================
Files 842 842
Lines 65538 65553 +15
Branches 7253 7245 -8
=======================================
+ Hits 52380 52401 +21
+ Misses 13158 13152 -6
🚀 New features to boost your workflow:
|
High Level Overview of Change
Updating clang-format to the latest version 21.1.8.
Context of Change
Type of Change
.gitignore, formatting, dropping support for older tooling)API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)