summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-07-15 21:05:19 +0200
committerThomas Schmucker <ts@its1.de>2026-07-15 21:05:19 +0200
commit4f3760fc3b647fa166da4ab777eb612b14ac500b (patch)
tree2f9faece24cac31f8dcb842572cdd9a486402637 /.clang-format
parent0cf833840b19e603f480dead5ca211f947503f9b (diff)
downloadexpat++-4f3760fc3b647fa166da4ab777eb612b14ac500b.tar.gz
expat++-4f3760fc3b647fa166da4ab777eb612b14ac500b.tar.bz2
expat++-4f3760fc3b647fa166da4ab777eb612b14ac500b.zip
Umbau auf modernes C++
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format46
1 files changed, 46 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..67bca59
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,46 @@
1---
2AccessModifierOffset: -4
3AlignConsecutiveAssignments: 'true'
4AlignConsecutiveDeclarations: 'true'
5AlignEscapedNewlines: Left
6AlignTrailingComments: 'true'
7AlwaysBreakAfterReturnType: TopLevelDefinitions
8BreakBeforeBraces: Stroustrup
9BreakConstructorInitializers: BeforeComma
10BreakInheritanceList: BeforeComma
11ColumnLimit: '0'
12CompactNamespaces: 'false'
13Cpp11BracedListStyle: 'false'
14FixNamespaceComments: 'true'
15IncludeBlocks: Regroup
16IncludeCategories:
17 - Regex: '^.*(precomp|pch|stdafx)'
18 Priority: -1
19 - Regex: '^<.*>'
20 Priority: 1
21 - Regex: '^".*"'
22 Priority: 2
23 - Regex: '.*'
24 Priority: 3
25IndentCaseLabels: 'false'
26IndentPPDirectives: AfterHash
27IndentWidth: '4'
28IndentWrappedFunctionNames: 'false'
29KeepEmptyLinesAtTheStartOfBlocks: 'false'
30PointerAlignment: Left
31SortIncludes: 'true'
32SpaceAfterCStyleCast: 'true'
33SpaceAfterTemplateKeyword: 'false'
34SpaceBeforeAssignmentOperators: 'true'
35SpaceBeforeParens: ControlStatements
36SpaceBeforeRangeBasedForLoopColon: 'false'
37SpaceInEmptyParentheses: 'false'
38SpacesInAngles: 'false'
39SpacesInCStyleCastParentheses: 'false'
40SpacesInConditionalStatement: 'true'
41SpacesInParentheses: 'false'
42Standard: Auto
43TabWidth: '4'
44UseTab: ForIndentation
45...
46