librashader/.clang-format

96 lines
2.7 KiB
Plaintext
Raw Normal View History

2023-01-14 11:17:57 +11:00
---
Language: Cpp
2023-01-14 17:38:59 +11:00
# BasedOnStyle: Google
AccessModifierOffset: -1
2023-01-14 11:17:57 +11:00
AlignAfterOpenBracket: Align
2023-01-14 17:38:59 +11:00
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: true
AlignOperands: true
2023-01-14 11:17:57 +11:00
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
2023-01-14 17:38:59 +11:00
AllowShortBlocksOnASingleLine: false
2023-01-14 11:17:57 +11:00
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
2023-01-14 17:38:59 +11:00
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
2023-01-14 11:17:57 +11:00
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
2023-01-14 17:38:59 +11:00
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
2023-01-14 11:17:57 +11:00
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
2023-01-14 17:38:59 +11:00
AfterControlStatement: false
2023-01-14 11:17:57 +11:00
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
2023-01-14 17:38:59 +11:00
ConstructorInitializerAllOnOneLineOrOnePerLine: true
2023-01-14 11:17:57 +11:00
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
2023-01-14 17:38:59 +11:00
DerivePointerAlignment: true
2023-01-14 11:17:57 +11:00
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
2023-01-14 17:38:59 +11:00
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
2023-01-14 11:17:57 +11:00
IncludeCategories:
2023-01-14 17:38:59 +11:00
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
2023-01-14 11:17:57 +11:00
Priority: 2
- Regex: '.*'
2023-01-14 17:38:59 +11:00
Priority: 3
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true
IndentWidth: 4
2023-01-14 11:17:57 +11:00
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
2023-01-14 17:38:59 +11:00
KeepEmptyLinesAtTheStartOfBlocks: false
2023-01-14 11:17:57 +11:00
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
2023-01-14 17:38:59 +11:00
ObjCBlockIndentWidth: 4
2023-01-14 11:17:57 +11:00
ObjCSpaceAfterProperty: false
2023-01-14 17:38:59 +11:00
ObjCSpaceBeforeProtocolList: false
PenaltyBreakBeforeFirstCallParameter: 1
2023-01-14 11:17:57 +11:00
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
2023-01-14 17:38:59 +11:00
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
2023-01-14 11:17:57 +11:00
ReflowComments: true
2023-01-14 17:38:59 +11:00
SortIncludes: true
2023-01-14 11:17:57 +11:00
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
2023-01-14 17:38:59 +11:00
SpacesBeforeTrailingComments: 4
SpacesInAngles: false
2023-01-14 11:17:57 +11:00
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
2023-01-14 17:38:59 +11:00
Standard: Auto
2023-01-14 11:17:57 +11:00
TabWidth: 8
UseTab: Never
...