Skip to content

Commit 4600448

Browse files
committed
clang-format: Don't sort includes.
Add a priority for the pre-compiled header for the future.
1 parent d0726ca commit 4600448

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/.clang-format

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ DerivePointerAlignment: false
4545
DisableFormat: false
4646
ForEachMacros: []
4747
IncludeCategories:
48+
- Regex: 'stdafx.h'
49+
Priority: -1
4850
- Regex: '^<'
4951
Priority: 1
5052
- Regex: '^"'
@@ -68,7 +70,7 @@ PenaltyExcessCharacter: 1000000
6870
PenaltyReturnTypeOnItsOwnLine: 60
6971
PointerAlignment: Left
7072
ReflowComments: true
71-
SortIncludes: true
73+
SortIncludes: false
7274
SpaceAfterCStyleCast: false
7375
SpaceBeforeAssignmentOperators: true
7476
SpaceBeforeParens: ControlStatements

0 commit comments

Comments
 (0)