diff --git a/.clang-format b/.clang-format index e93c306..d96fdb2 100644 --- a/.clang-format +++ b/.clang-format @@ -51,7 +51,7 @@ CompactNamespaces: false Cpp11BracedListStyle: true EmptyLineBeforeAccessModifier: Always FixNamespaceComments: true -IncludeBlocks: Preserve +IncludeBlocks: Regroup IndentCaseBlocks: true IndentCaseLabels: false IndentPPDirectives: None @@ -119,4 +119,24 @@ SpaceAroundPointerQualifiers: Default SpaceBeforeCpp11BracedList: true SpaceInEmptyBlock: true PenaltyBreakAssignment: 200 -KeepEmptyLinesAtTheStartOfBlocks: false \ No newline at end of file +KeepEmptyLinesAtTheStartOfBlocks: false +IncludeCategories: + - Regex: '^' + Priority: 7 + - Regex: '^<[a-zA-Z0-9_/]+\.hpp>' + Priority: 7 + - Regex: '^<[a-zA-Z0-9_/]+>' + Priority: 8 +MainIncludeChar: AngleBracket \ No newline at end of file