Make clang-format indent nested preprocessor directives

Since clang-format 6 there is support to indent preprocessor directives,
enabling formatting like

```
 #if foo
 #  define bar
 #endif
```
This commit is contained in:
Michael Tautschnig 2019-03-30 12:48:15 +00:00
parent d460249423
commit 98f619f5b1
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ ForEachMacros: [
'forall_subtypes',
'Forall_subtypes']
IndentCaseLabels: 'false'
IndentPPDirectives: AfterHash
IndentWidth: '2'
IndentWrappedFunctionNames: 'false'
KeepEmptyLinesAtTheStartOfBlocks: 'false'