| 1 |
--- |
| 2 |
Language: Cpp |
| 3 |
BasedOnStyle: Google |
| 4 |
AlignTrailingComments: false |
| 5 |
AllowShortIfStatementsOnASingleLine: false |
| 6 |
AllowShortLoopsOnASingleLine: false |
| 7 |
|
| 8 |
# A separate 'Other libraries' grouping is added before libwebm's headers for |
| 9 |
# gtest and gmock includes. This is based on the suggested grouping in the |
| 10 |
# Google C++ Style Guide: |
| 11 |
# https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes |
| 12 |
# The other categories come from `clang-format-14 --dump-config --style=Google`. |
| 13 |
# See the clang-format documentation for more information on this option: |
| 14 |
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#includecategories |
| 15 |
IncludeCategories: |
| 16 |
- Regex: '^<ext/.*\.h>' |
| 17 |
Priority: 2 |
| 18 |
SortPriority: 0 |
| 19 |
CaseSensitive: false |
| 20 |
- Regex: '^<.*\.h>' |
| 21 |
Priority: 1 |
| 22 |
SortPriority: 0 |
| 23 |
CaseSensitive: false |
| 24 |
- Regex: '^<.*' |
| 25 |
Priority: 2 |
| 26 |
SortPriority: 0 |
| 27 |
CaseSensitive: false |
| 28 |
- Regex: '^((<|")(gtest|gmock)/)' |
| 29 |
Priority: 3 |
| 30 |
SortPriority: 0 |
| 31 |
CaseSensitive: false |
| 32 |
- Regex: '.*' |
| 33 |
Priority: 4 |
| 34 |
SortPriority: 0 |
| 35 |
CaseSensitive: false |