Skip to content

Apply standard formatting with clang-format - #86

Merged
newville merged 3 commits into
epics-modules:masterfrom
ericonr:clang-format
Jul 16, 2026
Merged

newville merged 3 commits into
epics-modules:masterfrom
ericonr:clang-format

Conversation

@ericonr

@ericonr ericonr commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

The current code has many problems with wonky formatting and indentation, which makes reading and maintaining the code more complicated. Instead of fixing these manually, simply apply a standard code style.

In order to avoid such a commit polluting history investigations, after merging it can be added to the .git-blame-ignore-revs file:
https://gist.github.com/kateinoigakukun/b0bc920e587851bfffa98b9e279175f2

ericonr added 3 commits July 16, 2026 11:23
basic formatting style to standardize formatting across files and fix
broken formatting in some files.

pre-commit configuration is added to enforce this formatting.
@newville
newville merged commit e82f50c into epics-modules:master Jul 16, 2026
1 check passed
@newville

Copy link
Copy Markdown
Contributor

@ericonr Thanks -- I agree with you that the formatting is sort of a mess, and that using pre-commit with some convention is a good idea.

Not working in C++very much myself, I have no strong opinion on formatting conventions, and am probably more likely to not follow common conventions instinctively. So, having a pre-commit format checker should help.

I'll merge this, and hope that makes #87 easier to review.

@ericonr
ericonr deleted the clang-format branch July 16, 2026 15:57
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