Skip to contentSkip to conversation

clang-format update

DISCUSSION Patrick Williams 1 participant 1 message May 28, 2020

lore
Share & tools
lore
#0 lore raw

All,

There was an update to clang pushed into CI last week[1]. We are now running clang-10 on the repository-level unit-tests.

There was one change to clang-format that added a new BraceWrapping option called AfterCaseLabel. If your .clang-format file doesn't have it set to true, this new version will likely reformat your case statements in a way you don't desire.

I have put a fix into the common .clang-format file in docs[2]. My suggestion is that the maintainers sync their local .clang-format files with the one in docs[3].

1. https://github.com/openbmc/openbmc-build-scripts/commit/80d0728e6d5d3d623cda26a1bfe93d2eac4a8d3e
2. https://github.com/openbmc/docs/commit/b6de1960d9b896f2b48e6b0c676035afa0e432a6
3. https://github.com/openbmc/docs/blob/b6de1960d9b896f2b48e6b0c676035afa0e432a6/style/cpp/.clang-format

Signature · 1 line
Patrick Williams