Sponsored Content
Skip to content

style: Set ColumnLimit to 120 in clang-format - #6288

Merged
bthomee merged 2 commits into
XRPLF:developfrom
mathbunnyru:clang_format_120
Jan 28, 2026
Merged

style: Set ColumnLimit to 120 in clang-format#6288
bthomee merged 2 commits into
XRPLF:developfrom
mathbunnyru:clang_format_120

Conversation

@mathbunnyru

@mathbunnyru mathbunnyru commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

High Level Overview of Change

This only changes 80 -> 120 for ColumnLimit and reruns clang-format, no manual changes were done.

Context of Change

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Performance (increase or change in throughput and/or latency)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)
  • Documentation update
  • Chore (no impact to binary, e.g. .gitignore, formatting, dropping support for older tooling)
  • Release

API Impact

  • Public API: New feature (new methods and/or new fields)
  • Public API: Breaking change (in general, breaking changes should only impact the next api_version)
  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)
  • Peer protocol change (must be backward compatible or bump the peer protocol version)

@mathbunnyru
mathbunnyru requested review from a team and Copilot January 28, 2026 16:58

Copilot AI 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.

Pull request overview

This PR updates the clang-format configuration to increase the ColumnLimit from 80 to 120 characters, and applies this formatting change across the entire codebase. This allows longer lines of code to remain on a single line rather than being broken across multiple lines.

Changes:

  • Updated .clang-format to set ColumnLimit: 120
  • Reformatted all affected source and header files to comply with the new 120-character line limit

Reviewed changes

Copilot reviewed 245 out of 1016 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.clang-format Updated ColumnLimit from 80 to 120
src/libxrpl/ledger/*.cpp Consolidated multi-line function signatures and statements to single lines where appropriate
src/libxrpl/json/*.cpp Reformatted to fit within 120 character limit
src/libxrpl/crypto/*.cpp Consolidated function calls to single lines
src/libxrpl/core/detail/*.cpp Reformatted constructor initializer lists and function signatures
src/libxrpl/beast/**/*.cpp Applied 120 character formatting throughout beast library sources
src/libxrpl/basics/*.cpp Consolidated multi-line expressions and function calls
include/xrpl/**/*.h Reformatted header files to comply with new line limit

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bthomee bthomee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Once merged we probably should add the commit hash to .git-blame-ignore-revs.

@legleux
legleux self-requested a review January 28, 2026 17:24
@codecov

codecov Bot commented Jan 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.09700% with 169 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.9%. Comparing base (9204678) to head (3ce7b84).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
src/libxrpl/beast/insight/StatsDCollector.cpp 0.0% 27 Missing ⚠️
include/xrpl/nodestore/detail/codec.h 29.4% 12 Missing ⚠️
src/libxrpl/json/json_reader.cpp 55.6% 12 Missing ⚠️
include/xrpl/server/detail/Door.h 64.0% 9 Missing ⚠️
include/xrpl/net/AutoSocket.h 46.2% 7 Missing ⚠️
include/xrpl/net/HTTPClientSSLContext.h 0.0% 7 Missing ⚠️
include/xrpl/resource/detail/Logic.h 53.3% 7 Missing ⚠️
src/libxrpl/basics/Archive.cpp 0.0% 7 Missing ⚠️
include/xrpl/server/detail/BaseWSPeer.h 76.0% 6 Missing ⚠️
src/libxrpl/basics/make_SSLContext.cpp 53.8% 6 Missing ⚠️
... and 40 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #6288     +/-   ##
=========================================
+ Coverage     79.4%   79.9%   +0.5%     
=========================================
  Files          839     839             
  Lines        71625   65528   -6097     
  Branches      8236    7268    -968     
=========================================
- Hits         56854   52331   -4523     
+ Misses       14771   13197   -1574     
Files with missing lines Coverage Δ
include/xrpl/basics/Buffer.h 100.0% <100.0%> (ø)
include/xrpl/basics/DecayingSample.h 87.9% <100.0%> (-0.7%) ⬇️
include/xrpl/basics/Expected.h 100.0% <100.0%> (ø)
include/xrpl/basics/IntrusivePointer.h 91.7% <ø> (ø)
include/xrpl/basics/IntrusivePointer.ipp 86.6% <100.0%> (-0.1%) ⬇️
include/xrpl/basics/IntrusiveRefCounts.h 92.6% <100.0%> (-0.2%) ⬇️
include/xrpl/basics/LocalValue.h 100.0% <100.0%> (ø)
include/xrpl/basics/Log.h 71.4% <ø> (ø)
include/xrpl/basics/Number.h 98.7% <100.0%> (-0.1%) ⬇️
include/xrpl/basics/Resolver.h 100.0% <ø> (ø)
... and 250 more

... and 367 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.

@mathbunnyru mathbunnyru 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 Jan 28, 2026
@bthomee
bthomee merged commit 5f638f5 into XRPLF:develop Jan 28, 2026
3 checks 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
This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
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.

5 participants