aboutsummaryrefslogtreecommitdiff
path: root/source/.clang-format
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2023-08-17 12:32:50 +0200
committerFelix Morgner <felix.morgner@gmail.com>2023-08-17 12:32:50 +0200
commit375799fa79d1af76f33299acc20a11a167a021f8 (patch)
tree8f91b982ec96225c33a2f4871730ababffe5cab0 /source/.clang-format
parentaf471b9b780869915d3217b228e24d025892de47 (diff)
downloadwanda-375799fa79d1af76f33299acc20a11a167a021f8.tar.xz
wanda-375799fa79d1af76f33299acc20a11a167a021f8.zip
project: restructure libraries and build env
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