6c772ac40b
Includes like "../dir/file.h" should sort after local includes. This change fixes that and applies the new formatting. Now the order (in reverse) is: - system includes - includes from llvm or clang (this is from the default IncludeCategories) - includes of ../something - everything else Original-commit: flang-compiler/f18@324643d63a Reviewed-on: https://github.com/flang-compiler/f18/pull/52
26 lines
735 B
YAML
26 lines
735 B
YAML
---
|
|
# See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
|
BasedOnStyle: LLVM
|
|
AlignAfterOpenBracket: DontAlign
|
|
AlignEscapedNewlines: DontAlign
|
|
AllowShortCaseLabelsOnASingleLine: true
|
|
AllowShortIfStatementsOnASingleLine: true
|
|
AlignConsecutiveAssignments: false
|
|
AlignConsecutiveDeclarations: false
|
|
AlignOperands: false
|
|
AlignTrailingComments: false
|
|
ConstructorInitializerIndentWidth: 2
|
|
SpaceAfterTemplateKeyword: false
|
|
SpacesBeforeTrailingComments: 2
|
|
IncludeCategories:
|
|
- Regex: '^<'
|
|
Priority: 4
|
|
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
|
|
Priority: 3
|
|
- Regex: '^"\.\./'
|
|
Priority: 2
|
|
- Regex: '.*'
|
|
Priority: 1
|
|
...
|
|
|
|
# vim:set filetype=yaml:
|