I am trying to get clang-format to leave if-statements with one statement on the same line.
Example input:
if(is_finished) break;
if(foo) {
// do something
}
clang-format output:
if(is_finished)
break;
if(foo) {
// do something
}
Wanted output:
if(is_finished) break;
if(foo) {
// do something
}
None of the space related options seem to match this style.
current config:
---
Language: Cpp
BasedOnStyle: LLVM
IndentWidth: 8
UseTab: ForIndentation
SpaceBeforeParens: Never
BraceWrapping:
AfterControlStatement: false