-
-
Save tsuyoshicho/735dc179e3cc70de8e2a672b4e09a1a8 to your computer and use it in GitHub Desktop.
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
| --- | |
| BasedOnStyle: 'Google' | |
| AccessModifierOffset: -2 | |
| AlignEscapedNewlinesLeft: true | |
| AlignConsecutiveAssignments: false | |
| AlignEscapedNewlinesLeft: true | |
| AlignTrailingComments: true, | |
| AllowShortBlocksOnASingleLine: true | |
| AllowShortCaseLabelsOnASingleLine: false | |
| AllowShortFunctionsOnASingleLine: 'Inline' | |
| AllowShortIfStatementsOnASingleLine: false | |
| AllowShortLoopsOnASingleLine: false | |
| AlwaysBreakAfterDefinitionReturnType: false | |
| AlwaysBreakBeforeMultilineStrings: true | |
| AlwaysBreakTemplateDeclarations: true | |
| BinPackArguments: true | |
| BinPackParameters: true | |
| BreakBeforeBinaryOperators: 'None' | |
| BreakBeforeBraces: 'Allman' | |
| BreakConstructorInitializersBeforeComma: true | |
| ColumnLimit: 80 | |
| ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
| ConstructorInitializerIndentWidth: 2 | |
| ContinuationIndentWidth: 2 | |
| Cpp11BracedListStyle: true | |
| DerivePointerBinding: true | |
| IndentCaseLabels: true | |
| IndentWidth: 2 | |
| IndentWrappedFunctionNames: false | |
| KeepEmptyLinesAtTheStartOfBlocks: true | |
| MaxEmptyLinesToKeep: 1 | |
| NamespaceIndentation: 'None' | |
| PointerAlignment: 'Left' | |
| SpaceBeforeAssignmentOperators: true | |
| SpaceBeforeParens: 'ControlStatements' | |
| SpaceInEmptyParentheses: false | |
| SpacesBeforeTrailingComments: 1 | |
| SpacesInAngles: false | |
| SpacesInCStyleCastParentheses: false | |
| SpacesInParentheses: false | |
| Standard: 'Cpp11' | |
| TabWidth: 4 | |
| UseTab: 'Never' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment