clang-format: enable sorting includes

Include files are now grouped and sorted in following order:
1. Header file of the class the current file implements
2. Project files
3. Third party files
4. Standard library

Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2019-02-27 11:39:32 +01:00
parent 3eb10d0cc2
commit 8b57d28116
1208 changed files with 3921 additions and 4072 deletions

View File

@ -48,13 +48,24 @@ DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|isl|json)/)'
Priority: 3
- Regex: '.*'
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^.(common|documentation|elf|manifests|offline_compiler|public|runtime|scripts|unit_tests)/'
Priority: 1
- Regex: '^"test\.h"$'
Priority: 1
- Regex: '(d3d9types|d3d10_1)\.h'
Priority: 4
- Regex: '(gfxEscape|windows)\.h'
Priority: 5
- Regex: '^.(third_party|llvm|llvm-c|clang|clang-c|gtest|isl|json)/'
Priority: 5
- Regex: '^.(gmock|cl|gl|d3d)'
Priority: 5
- Regex: '^<.*>$'
Priority: 10
- Regex: '.*'
Priority: 5
IndentCaseLabels: false
IndentWidth: 4
IndentWrappedFunctionNames: false
@ -74,7 +85,7 @@ PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: true
SortIncludes: false
SortIncludes: true
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements