I'd like to use clang-format to indent braces like so,
for(...)
{
[...]
[...]
}
Clang-format can do this with BreakBeforeBraces: Whitesmiths, but I would like to customise that. The manual seems to suggest that IndentBraces does the trick, but that produces
for(...)
{
[...]
[...]
}
and other weird things. Am I using this wrong or is this a bug? (tested with clang-format-13).
I don't know really how but I succeeded with this configuration bellow for clang-format-17 to have braces indended with code like this