summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2024-11-12 13:36:10 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2024-11-12 13:36:10 +0000
commit8d51757e02818146b05c805b81e167f118fca7dc (patch)
treeda5d2ae457f7255a403d9665a2777f6c225ba304 /.clang-format
parent1fc39c620f2a9737851ef45ec77b2461ce1b7c30 (diff)
downloadcquine-master.tar.gz
cquine-master.tar.xz
cquine-master.zip
The quineHEADmaster
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format71
1 files changed, 71 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..b58356f
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,71 @@
+---
+AlignAfterOpenBracket: BlockIndent
+AlignConsecutiveAssignments: false
+AlignConsecutiveDeclarations: false
+AlignEscapedNewlines: Left
+AlignOperands: Align
+AlignTrailingComments: false
+AllowShortBlocksOnASingleLine: Always
+AllowShortCaseLabelsOnASingleLine: true
+AllowShortEnumsOnASingleLine: true
+AllowShortFunctionsOnASingleLine: None
+AllowShortIfStatementsOnASingleLine: WithoutElse
+AllowShortLoopsOnASingleLine: true
+AlwaysBreakBeforeMultilineStrings: false
+BinPackArguments: true
+BinPackParameters: true
+BitFieldColonSpacing: Both
+AlwaysBreakAfterReturnType: None
+BreakBeforeBinaryOperators: None
+BreakBeforeBraces: Linux
+BreakBeforeTernaryOperators: true
+BreakStringLiterals: false
+ColumnLimit: 85
+ContinuationIndentWidth: 8
+DerivePointerAlignment: false
+DisableFormat: false
+IncludeBlocks: Regroup
+IncludeCategories:
+ - Regex: '^"'
+ Priority: 1
+ - Regex: '^<'
+ Priority: 2
+IncludeIsMainRegex: '$'
+IndentCaseBlocks: true
+IndentCaseLabels: false
+IndentGotoLabels: false # maybe ...
+IndentPPDirectives: None
+IndentWidth: 8
+IndentWrappedFunctionNames: false
+InsertBraces: false
+KeepEmptyLinesAtTheStartOfBlocks: false
+Language: Cpp
+MaxEmptyLinesToKeep: 1
+PenaltyBreakAssignment: 10
+PenaltyBreakBeforeFirstCallParameter: 30
+PenaltyBreakComment: 10
+PenaltyBreakFirstLessLess: 0
+PenaltyBreakOpenParenthesis: 10
+PenaltyBreakString: 10
+PenaltyExcessCharacter: 60
+PenaltyReturnTypeOnItsOwnLine: 40
+PointerAlignment: Right
+QualifierAlignment: Custom
+QualifierOrder: [ 'static', 'inline', 'const', 'restrict', 'volatile', 'type' ]
+ReflowComments: false
+SortIncludes: CaseInsensitive
+SpaceAfterCStyleCast: false
+SpaceAfterLogicalNot: false
+SpaceAroundPointerQualifiers: Both
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeCaseColon: false
+SpaceBeforeParens: ControlStatementsExceptForEachMacros
+SpaceBeforeSquareBrackets: false
+SpaceInEmptyBlock: false
+SpacesBeforeTrailingComments: 1
+SpacesInParentheses: false
+SpacesInSquareBrackets: false
+TabWidth: 8
+UseCRLF: false
+UseTab: ForContinuationAndIndentation
+...