You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
3.7 KiB
138 lines
3.7 KiB
# ROCm Clang Format Standard |
|
|
|
# Common settings |
|
BasedOnStyle: WebKit |
|
TabWidth: 4 |
|
IndentWidth: 4 |
|
UseTab: Never |
|
ColumnLimit: 100 |
|
UseCRLF: false |
|
|
|
# Other languages JavaScript, Proto |
|
|
|
--- |
|
Language: Cpp |
|
|
|
# http://releases.llvm.org/6.0.1/tools/clang/docs/ClangFormatStyleOptions.html#disabling-formatting-on-a-piece-of-code |
|
# int formatted_code; |
|
# // clang-format off |
|
# void unformatted_code ; |
|
# // clang-format on |
|
# void formatted_code_again; |
|
|
|
DisableFormat: false |
|
Standard: Cpp11 |
|
|
|
AccessModifierOffset: -4 |
|
AlignAfterOpenBracket: true |
|
AlignArrayOfStructures: Right |
|
AlignConsecutiveAssignments: true |
|
AlignConsecutiveDeclarations: true |
|
AlignEscapedNewlines: Left |
|
AlignOperands: true |
|
AlignTrailingComments: false |
|
AllowAllArgumentsOnNextLine: false |
|
AllowAllParametersOfDeclarationOnNextLine: true |
|
AllowShortBlocksOnASingleLine: Never |
|
AllowShortCaseLabelsOnASingleLine: true |
|
AllowShortFunctionsOnASingleLine: Empty |
|
AllowShortIfStatementsOnASingleLine: false |
|
AllowShortLoopsOnASingleLine: false |
|
AlwaysBreakAfterReturnType: None |
|
AlwaysBreakBeforeMultilineStrings: false |
|
AlwaysBreakTemplateDeclarations: Yes |
|
AttributeMacros: [] |
|
BinPackArguments: false |
|
BinPackParameters: false |
|
BitFieldColonSpacing: Both |
|
|
|
# Configure each individual brace in BraceWrapping |
|
BreakBeforeBraces: Custom |
|
# Control of individual brace wrapping cases |
|
BraceWrapping: |
|
AfterCaseLabel: true |
|
AfterClass: true |
|
AfterControlStatement: Always |
|
AfterEnum: true |
|
AfterFunction: true |
|
AfterNamespace: true |
|
AfterStruct: true |
|
AfterUnion: true |
|
AfterExternBlock: false |
|
BeforeCatch: true |
|
BeforeElse: true |
|
BeforeLambdaBody: true |
|
BeforeWhile: true |
|
IndentBraces: false |
|
SplitEmptyFunction: false |
|
SplitEmptyRecord: false |
|
SplitEmptyNamespace: false |
|
|
|
BreakBeforeBinaryOperators: All |
|
BreakBeforeTernaryOperators: true |
|
BreakConstructorInitializers: BeforeComma |
|
BreakInheritanceList: BeforeComma |
|
BreakStringLiterals: true |
|
CommentPragmas: '^ IWYU pragma:' |
|
CompactNamespaces: false |
|
ConstructorInitializerIndentWidth: 4 |
|
ContinuationIndentWidth: 4 |
|
Cpp11BracedListStyle: true |
|
DeriveLineEnding: false |
|
DerivePointerAlignment: false |
|
EmptyLineAfterAccessModifier: Never |
|
EmptyLineBeforeAccessModifier: Always |
|
ExperimentalAutoDetectBinPacking: false |
|
FixNamespaceComments: true |
|
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
|
IfMacros: [] |
|
IncludeBlocks: Preserve |
|
IndentAccessModifiers: false |
|
IndentCaseBlocks: true |
|
IndentCaseLabels: true |
|
IndentExternBlock: NoIndent |
|
IndentPPDirectives: BeforeHash |
|
IndentWrappedFunctionNames: true |
|
KeepEmptyLinesAtTheStartOfBlocks: true |
|
LambdaBodyIndentation: Signature |
|
MacroBlockBegin: '' |
|
MacroBlockEnd: '' |
|
MaxEmptyLinesToKeep: 1 |
|
NamespaceIndentation: None |
|
PPIndentWidth: -1 |
|
PackConstructorInitializers: NextLine |
|
PenaltyBreakBeforeFirstCallParameter: 19 |
|
PenaltyBreakComment: 300 |
|
PenaltyBreakFirstLessLess: 120 |
|
PenaltyBreakString: 1000 |
|
PenaltyExcessCharacter: 1000000 |
|
PenaltyReturnTypeOnItsOwnLine: 60 |
|
PointerAlignment: Left |
|
QualifierAlignment: Leave |
|
ReferenceAlignment: Pointer |
|
ReflowComments: false |
|
ShortNamespaceLines: 0 |
|
SortIncludes: CaseSensitive |
|
SortUsingDeclarations: true |
|
SpaceAfterCStyleCast: false |
|
SpaceAfterLogicalNot: false |
|
SpaceAfterTemplateKeyword: false |
|
SpaceAroundPointerQualifiers: Default |
|
SpaceBeforeAssignmentOperators: true |
|
SpaceBeforeCaseColon: false |
|
SpaceBeforeCpp11BracedList: false |
|
SpaceBeforeCtorInitializerColon: true |
|
SpaceBeforeInheritanceColon: true |
|
SpaceBeforeParens: Never |
|
SpaceBeforeRangeBasedForLoopColon: true |
|
SpaceBeforeSquareBrackets: false |
|
SpaceInEmptyBlock: false |
|
SpaceInEmptyParentheses: false |
|
SpacesBeforeTrailingComments: 1 |
|
SpacesInAngles: Never |
|
SpacesInCStyleCastParentheses: false |
|
SpacesInConditionalStatement: false |
|
SpacesInContainerLiterals: true |
|
SpacesInParentheses: false |
|
SpacesInSquareBrackets: false |
|
---
|
|
|