diff options
| -rw-r--r-- | .clang-format | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000000..7895ada36da --- /dev/null +++ b/.clang-format | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | Language: Cpp | ||
| 2 | BasedOnStyle: LLVM | ||
| 3 | AlignEscapedNewlinesLeft: true | ||
| 4 | AlwaysBreakAfterReturnType: TopLevelDefinitions | ||
| 5 | BreakBeforeBinaryOperators: All | ||
| 6 | BreakBeforeBraces: GNU | ||
| 7 | ColumnLimit: 80 | ||
| 8 | ContinuationIndentWidth: 2 | ||
| 9 | ForEachMacros: [FOR_EACH_TAIL, FOR_EACH_TAIL_SAFE] | ||
| 10 | IncludeCategories: | ||
| 11 | - Regex: '^<config\.h>$' | ||
| 12 | Priority: -1 | ||
| 13 | - Regex: '^<' | ||
| 14 | Priority: 1 | ||
| 15 | - Regex: '^"lisp\.h"$' | ||
| 16 | Priority: 2 | ||
| 17 | - Regex: '.*' | ||
| 18 | Priority: 3 | ||
| 19 | KeepEmptyLinesAtTheStartOfBlocks: false | ||
| 20 | MaxEmptyLinesToKeep: 1 | ||
| 21 | PenaltyBreakBeforeFirstCallParameter: 2000 | ||
| 22 | SpaceAfterCStyleCast: true | ||
| 23 | SpaceBeforeParens: Always | ||
| 24 | |||
| 25 | # Local Variables: | ||
| 26 | # mode: yaml | ||
| 27 | # End: | ||