Last active
August 19, 2020 01:27
-
-
Save the-moonwitch/e9cc73c847243b102792515b5a989049 to your computer and use it in GitHub Desktop.
Default clang format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| Language: Cpp | |
| # BasedOnStyle: Mozilla | |
| AccessModifierOffset: 0 | |
| AlignAfterOpenBracket: AlwaysBreak | |
| AlignConsecutiveMacros: false | |
| AlignConsecutiveAssignments: false | |
| AlignConsecutiveDeclarations: false | |
| AlignEscapedNewlines: Right | |
| AlignOperands: Align | |
| AlignTrailingComments: true | |
| AllowAllArgumentsOnNextLine: true | |
| AllowAllConstructorInitializersOnNextLine: true | |
| AllowAllParametersOfDeclarationOnNextLine: true | |
| AllowShortBlocksOnASingleLine: Empty | |
| AllowShortCaseLabelsOnASingleLine: false | |
| AllowShortFunctionsOnASingleLine: Inline | |
| AllowShortLambdasOnASingleLine: All | |
| AllowShortIfStatementsOnASingleLine: Never | |
| AllowShortLoopsOnASingleLine: false | |
| AlwaysBreakAfterDefinitionReturnType: None | |
| AlwaysBreakAfterReturnType: None | |
| AlwaysBreakBeforeMultilineStrings: false | |
| AlwaysBreakTemplateDeclarations: Yes | |
| BinPackArguments: false | |
| BinPackParameters: false | |
| BraceWrapping: | |
| AfterCaseLabel: false | |
| AfterClass: true | |
| AfterControlStatement: Never | |
| AfterEnum: true | |
| AfterFunction: true | |
| AfterNamespace: false | |
| AfterObjCDeclaration: false | |
| AfterStruct: false | |
| AfterUnion: false | |
| AfterExternBlock: false | |
| BeforeCatch: false | |
| BeforeElse: false | |
| BeforeLambdaBody: false | |
| BeforeWhile: false | |
| IndentBraces: false | |
| SplitEmptyFunction: false | |
| SplitEmptyRecord: false | |
| SplitEmptyNamespace: true | |
| BreakBeforeBinaryOperators: NonAssignment | |
| BreakBeforeBraces: Attach | |
| BreakBeforeInheritanceComma: false | |
| BreakInheritanceList: AfterColon | |
| BreakBeforeTernaryOperators: true | |
| BreakConstructorInitializersBeforeComma: false | |
| BreakConstructorInitializers: BeforeComma | |
| BreakAfterJavaFieldAnnotations: false | |
| BreakStringLiterals: true | |
| ColumnLimit: 79 | |
| CommentPragmas: '^ IWYU pragma:' | |
| CompactNamespaces: false | |
| ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
| ConstructorInitializerIndentWidth: 2 | |
| ContinuationIndentWidth: 2 | |
| Cpp11BracedListStyle: true | |
| DeriveLineEnding: true | |
| DerivePointerAlignment: false | |
| DisableFormat: false | |
| ExperimentalAutoDetectBinPacking: false | |
| FixNamespaceComments: true | |
| ForEachMacros: | |
| - foreach | |
| - Q_FOREACH | |
| - BOOST_FOREACH | |
| IncludeBlocks: Regroup | |
| IncludeCategories: | |
| - Regex: '^"(llvm|llvm-c|clang|clang-c)/' | |
| Priority: 2 | |
| SortPriority: 0 | |
| - Regex: '^(<|"(SDL2|spdlog|bgfx)/)' | |
| Priority: 3 | |
| SortPriority: 0 | |
| - Regex: '<[[:alnum:].]+>' | |
| Priority: 4 | |
| - Regex: '.*' | |
| Priority: 1 | |
| SortPriority: 0 | |
| IncludeIsMainRegex: '(Test)?$' | |
| IncludeIsMainSourceRegex: '' | |
| IndentCaseLabels: true | |
| IndentGotoLabels: true | |
| IndentPPDirectives: None | |
| IndentWidth: 2 | |
| IndentWrappedFunctionNames: true | |
| JavaScriptQuotes: Leave | |
| JavaScriptWrapImports: true | |
| KeepEmptyLinesAtTheStartOfBlocks: false | |
| MacroBlockBegin: '' | |
| MacroBlockEnd: '' | |
| MaxEmptyLinesToKeep: 1 | |
| NamespaceIndentation: None | |
| ObjCBinPackProtocolList: Auto | |
| ObjCBlockIndentWidth: 2 | |
| ObjCSpaceAfterProperty: true | |
| ObjCSpaceBeforeProtocolList: false | |
| PenaltyBreakAssignment: 2 | |
| PenaltyBreakBeforeFirstCallParameter: 19 | |
| PenaltyBreakComment: 300 | |
| PenaltyBreakFirstLessLess: 120 | |
| PenaltyBreakString: 1000 | |
| PenaltyBreakTemplateDeclaration: 10 | |
| PenaltyExcessCharacter: 2000000000 | |
| PenaltyReturnTypeOnItsOwnLine: 200 | |
| PointerAlignment: Left | |
| ReflowComments: true | |
| SortIncludes: true | |
| SortUsingDeclarations: true | |
| SpaceAfterCStyleCast: true | |
| SpaceAfterLogicalNot: false | |
| SpaceAfterTemplateKeyword: false | |
| SpaceBeforeAssignmentOperators: true | |
| SpaceBeforeCpp11BracedList: true | |
| SpaceBeforeCtorInitializerColon: false | |
| SpaceBeforeInheritanceColon: false | |
| SpaceBeforeParens: ControlStatements | |
| SpaceBeforeRangeBasedForLoopColon: true | |
| SpaceInEmptyBlock: false | |
| SpaceInEmptyParentheses: false | |
| SpacesBeforeTrailingComments: 2 | |
| SpacesInAngles: false | |
| SpacesInConditionalStatement: false | |
| SpacesInContainerLiterals: false | |
| SpacesInCStyleCastParentheses: false | |
| SpacesInParentheses: false | |
| SpacesInSquareBrackets: false | |
| SpaceBeforeSquareBrackets: false | |
| Standard: c++11 | |
| StatementMacros: | |
| - Q_UNUSED | |
| - QT_REQUIRE_VERSION | |
| TabWidth: 4 | |
| UseCRLF: false | |
| UseTab: Never | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment