Michael Kruse | 54f3713 | 2025-02-16 12:25:31 | [diff] [blame] | 1 | --- |
| 2 | # See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html |
| 3 | BasedOnStyle: LLVM |
| 4 | AlignAfterOpenBracket: DontAlign |
| 5 | AlignEscapedNewlines: DontAlign |
| 6 | AlignConsecutiveAssignments: false |
| 7 | AlignConsecutiveDeclarations: false |
| 8 | AlignOperands: false |
| 9 | AlignTrailingComments: false |
| 10 | IncludeCategories: |
| 11 | - Regex: '^<' |
| 12 | Priority: 6 |
| 13 | - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| 14 | Priority: 5 |
| 15 | - Regex: '^"flang/' # Headers shared with Flang |
| 16 | Priority: 4 |
| 17 | - Regex: '^"flang-rt/' # Public Flang-RT headers |
| 18 | Priority: 3 |
| 19 | - Regex: '^[^/]*$' # Private headers from same library |
| 20 | Priority: 1 |
| 21 | - Regex: '.*' # Private headers from sibling libraries |
| 22 | Priority: 2 |
| 23 | ... |
| 24 | |
| 25 | # vim:set filetype=yaml: |