Ton
/
.clang-format
88 строк · 2.6 Кб
1---
2Language: Cpp3# BasedOnStyle: Google
4AccessModifierOffset: -15AlignAfterOpenBracket: Align6AlignConsecutiveAssignments: false7AlignConsecutiveDeclarations: false8AlignEscapedNewlinesLeft: true9AlignOperands: true10AlignTrailingComments: true11AllowAllParametersOfDeclarationOnNextLine: true12AllowShortBlocksOnASingleLine: false13AllowShortCaseLabelsOnASingleLine: false14AllowShortFunctionsOnASingleLine: None # All15AllowShortIfStatementsOnASingleLine: false # true16AllowShortLoopsOnASingleLine: false # true17AlwaysBreakAfterDefinitionReturnType: None18AlwaysBreakAfterReturnType: None19AlwaysBreakBeforeMultilineStrings: true20AlwaysBreakTemplateDeclarations: true21BinPackArguments: true22BinPackParameters: true23BraceWrapping:24AfterClass: false25AfterControlStatement: false26AfterEnum: false27AfterFunction: false28AfterNamespace: false29AfterObjCDeclaration: false30AfterStruct: false31AfterUnion: false32BeforeCatch: false33BeforeElse: false34IndentBraces: false35BreakBeforeBinaryOperators: None36BreakBeforeBraces: Attach37BreakBeforeTernaryOperators: true38BreakConstructorInitializersBeforeComma: true # false39# BreakAfterJavaFieldAnnotations: false
40BreakStringLiterals: true41ColumnLimit: 120 # 8042CommentPragmas: '^ IWYU pragma:'43ConstructorInitializerAllOnOneLineOrOnePerLine: true44ConstructorInitializerIndentWidth: 445ContinuationIndentWidth: 446Cpp11BracedListStyle: true47DerivePointerAlignment: true48DisableFormat: false49ExperimentalAutoDetectBinPacking: false50FixNamespaceComments: true51# ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
52IndentCaseLabels: true53IndentWidth: 254IndentWrappedFunctionNames: false55# JavaScriptQuotes: Leave
56# JavaScriptWrapImports: true
57KeepEmptyLinesAtTheStartOfBlocks: false58MacroBlockBegin: ''59MacroBlockEnd: ''60MaxEmptyLinesToKeep: 161NamespaceIndentation: None62# ObjCBlockIndentWidth: 2
63# ObjCSpaceAfterProperty: false
64# ObjCSpaceBeforeProtocolList: false
65PenaltyBreakBeforeFirstCallParameter: 166PenaltyBreakComment: 30067PenaltyBreakFirstLessLess: 12068PenaltyBreakString: 100069PenaltyExcessCharacter: 100000070PenaltyReturnTypeOnItsOwnLine: 20071PointerAlignment: Left72ReflowComments: false # true73SortIncludes: false # disabled, because we need case insensitive sort74SpaceAfterCStyleCast: false75SpaceAfterTemplateKeyword: true76SpaceBeforeAssignmentOperators: true77SpaceBeforeParens: ControlStatements78SpaceInEmptyParentheses: false79SpacesBeforeTrailingComments: 280SpacesInAngles: false81SpacesInContainerLiterals: true82SpacesInCStyleCastParentheses: false83SpacesInParentheses: false84SpacesInSquareBrackets: false85Standard: Auto86TabWidth: 100 # 887UseTab: Never88...
89