aboutsummaryrefslogtreecommitdiff
path: root/source/.clang-format
diff options
context:
space:
mode:
Diffstat (limited to 'source/.clang-format')
-rw-r--r--source/.clang-format16
1 files changed, 13 insertions, 3 deletions
diff --git a/source/.clang-format b/source/.clang-format
index b99e359..a1b0b91 100644
--- a/source/.clang-format
+++ b/source/.clang-format
@@ -33,12 +33,22 @@ BraceWrapping:
BreakBeforeInheritanceComma: 'false'
BreakConstructorInitializers: BeforeComma
BreakStringLiterals: 'true'
-ColumnLimit: '0'
+ColumnLimit: '120'
CompactNamespaces: 'false'
Cpp11BracedListStyle: 'true'
DerivePointerAlignment: 'false'
FixNamespaceComments: 'true'
-IncludeBlocks: Preserve
+IncludeBlocks: Regroup
+IncludeCategories:
+ # Local Headers
+ - Regex: '(<|")wanda/.+\.hpp(>|")'
+ Priority: 100
+ # STL Headers
+ - Regex: '<[[:alnum:]._]+(?!\.(h|hpp))>'
+ Priority: 400
+ # General System Headers
+ - Regex: '<([[:alnum:]._]/*)+\.(h|hpp)>'
+ Priority: 300
IndentCaseLabels: 'true'
IndentPPDirectives: None
IndentWidth: '2'
@@ -57,8 +67,8 @@ SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: 'false'
SpacesBeforeTrailingComments: '2'
SpacesInAngles: 'false'
-SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'false'
+SpacesInCStyleCastParentheses: 'false'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
Standard: Cpp11