CCF/.clang-format

137 строки
3.7 KiB
Plaintext
Исходник Обычный вид История

2019-04-26 18:27:27 +03:00
---
Language: Cpp
2019-04-26 18:27:27 +03:00
AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveMacros: false
2019-04-26 18:27:27 +03:00
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: DontAlign
AlignOperands: false
2019-04-26 18:27:27 +03:00
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: false
2019-04-26 18:27:27 +03:00
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Never
2019-04-26 18:27:27 +03:00
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
2019-04-26 18:27:27 +03:00
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
2019-04-26 18:27:27 +03:00
BinPackArguments: false
BinPackParameters: false
2020-11-10 13:57:56 +03:00
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
2019-04-26 18:27:27 +03:00
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
2019-04-26 18:27:27 +03:00
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
2019-04-26 18:27:27 +03:00
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
2019-04-26 18:27:27 +03:00
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakInheritanceList: BeforeColon
2019-04-26 18:27:27 +03:00
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: AfterColon
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
2019-04-26 18:27:27 +03:00
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
Cpp11BracedListStyle: true
DeriveLineEnding: true
2019-04-26 18:27:27 +03:00
DerivePointerAlignment: false
DisableFormat: false
2019-04-26 18:27:27 +03:00
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false
ForEachMacros:
- FOREACH
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Regroup
2020-11-10 13:57:56 +03:00
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
SortPriority: 0
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
SortPriority: 0
- Regex: '.*'
Priority: 1
SortPriority: 0
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainSourceRegex: ''
2019-04-26 18:27:27 +03:00
IndentCaseLabels: true
IndentGotoLabels: true
2019-04-26 18:27:27 +03:00
IndentPPDirectives: AfterHash
IndentWidth: 2
2019-04-26 18:27:27 +03:00
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
2019-04-26 18:27:27 +03:00
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
ObjCBinPackProtocolList: Auto
2019-04-26 18:27:27 +03:00
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
2019-04-26 18:27:27 +03:00
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 600
PointerAlignment: Left
ReflowComments: true
SortIncludes: true
2019-04-26 18:27:27 +03:00
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
2019-04-26 18:27:27 +03:00
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
2019-04-26 18:27:27 +03:00
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
2019-04-26 18:27:27 +03:00
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInConditionalStatement: false
2019-04-26 18:27:27 +03:00
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
Standard: c++20
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 2
UseCRLF: false
UseTab: Never
---
Language: Proto
IndentWidth: 2
UseTab: Never
BreakBeforeBraces: Stroustrup
...