AlignAfterOpenBracket is set to Align (instead of AlwaysBreak) as the old option would put a break after the opening bracket in a multiline if, which looks ugly
The formatting is turned off for regression tests, help, and CLI options list.
Instead of reformatting the entire codebase with clang-format, we use the git-clang-format tool to run the checks on changed lines only for each PR.
I've tested this on the array work which I'll post in a following PR, with the new style. At the moment, it's in my arrays branch (to preview the new style).
Using
.clang-format
from CBMC with one tweak:AlignAfterOpenBracket
is set toAlign
(instead ofAlwaysBreak
) as the old option would put a break after the opening bracket in a multiline if, which looks uglyThe formatting is turned off for regression tests, help, and CLI options list.
Instead of reformatting the entire codebase with
clang-format
, we use thegit-clang-format
tool to run the checks on changed lines only for each PR.I've tested this on the array work which I'll post in a following PR, with the new style. At the moment, it's in my arrays branch (to preview the new style).
Closes #165.