aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2026-11-03 20:01:42 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2026-11-03 20:01:42 +0000
commit098bd37f355a77abbb5751fc55a91f7ebe74cc6b (patch)
treed3bc93cb427276a4936d79903b62e156d5c538e7 /.clang-format
parent64c349eb1dc0fde65fd4e6ddf525faa0a4c64a91 (diff)
downloadsteamvr-patches-master.tar.gz
steamvr-patches-master.tar.xz
steamvr-patches-master.zip
use patch generator to build patchersHEADmaster
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format77
1 files changed, 77 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..1616256
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,77 @@
+# SPDX-FileCopyrightText: 2026 Tomasz Kramkowski <tomasz@kramkow.ski>
+# SPDX-License-Identifier: CC0-1.0
+
+---
+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
+# Preserve for now, to avoid problems, will be changed later.
+IncludeBlocks: Regroup
+IncludeCategories:
+ - Regex: '^<Python\.h>$'
+ Priority: -1
+ - 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: Leave
+ReflowComments: false
+# Never for now, to avoid problems, will be changed later.
+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
+...