Skip to content

Hopefully uncontroversial clang format changes#339

Open
jjuhl wants to merge 3 commits intotexus:1.xfrom
jjuhl:hopefully-uncontroversial-clang-format-changes
Open

Hopefully uncontroversial clang format changes#339
jjuhl wants to merge 3 commits intotexus:1.xfrom
jjuhl:hopefully-uncontroversial-clang-format-changes

Conversation

@jjuhl
Copy link
Contributor

@jjuhl jjuhl commented Mar 26, 2026

Hi Texus

Here are some fairly trivial changes to .clang-format for you.
I really should have caught these initially, but for some reason I overlooked them (I guess I was too focused on just landing the change that I neglected some of the minor details).
In any case, these cause no actual formatting changes and should be rather uncontroversial to merge.

:-)

jjuhl added 3 commits March 26, 2026 19:00
There's not currently any Objective C code in the tree, but if any
ever shows up it should be indented in a way to match the C++ code.
I should have set this to four in the initial commit of the
.clang-format file, but I missed it.
This doesn't cause any actual formatting changes currently.
Some rules used 1 space after ':', some used multiple. Some tried to
line up values vertically, some didn't.
Make the file consistently use 1 space after ':' everywhere.
These options are for a LLVM internal format, not relevant to C++ code
and they are conditionally supported based on clang-format build
options, so some builds may support them, some builds will not. Also,
old clang-format versions may error on encountering an unknown option
while newer versions may just ignore them.
In any case, these do nothing for us and they may cause problems for
some users, so just remove them.
@jjuhl jjuhl force-pushed the hopefully-uncontroversial-clang-format-changes branch from 1229f7e to b7c66a7 Compare March 26, 2026 18:01
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.

1 participant