Skip to content

reflow c++ comments using 100 char line limit, plus corrections#48337

Merged
jkarneges merged 3 commits intomainfrom
jkarneges/reflow-cpp-comments
Apr 30, 2026
Merged

reflow c++ comments using 100 char line limit, plus corrections#48337
jkarneges merged 3 commits intomainfrom
jkarneges/reflow-cpp-comments

Conversation

@jkarneges
Copy link
Copy Markdown
Member

@jkarneges jkarneges commented Apr 30, 2026

When I performed the mass reformatting of C++ files in this repo, I first ran clang-format with an 80 char line limit which split comment lines. Then I ran it again with a 100 char line limit but the comments stayed split at 80 chars. It seems clang-format doesn't "reflow" comments if the limit is increased. To repair this, I used a script to merge sequential comment lines into single lines and then used clang-format to reformat all the files again. This properly split the comments at 100 chars. I also manually cleaned up some comments that weren't quite right.

@jkarneges jkarneges requested a review from a team April 30, 2026 18:24
@jkarneges jkarneges merged commit d38f553 into main Apr 30, 2026
19 checks passed
@jkarneges jkarneges deleted the jkarneges/reflow-cpp-comments branch April 30, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants