Last active
March 11, 2023 11:03
-
-
Save kjk/298216da8cb4c665075b to your computer and use it in GitHub Desktop.
clang-format styles
This file contains 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
kjkmacpro:sumatrapdf kjk$ clang-format -dump-config -style=Chromium | |
--- | |
Language: Cpp | |
# BasedOnStyle: Chromium | |
AccessModifierOffset: -1 | |
ConstructorInitializerIndentWidth: 4 | |
AlignEscapedNewlinesLeft: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: Inline | |
AlwaysBreakTemplateDeclarations: true | |
AlwaysBreakBeforeMultilineStrings: true | |
BreakBeforeBinaryOperators: false | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: false | |
BinPackParameters: false | |
ColumnLimit: 80 | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
DerivePointerAlignment: false | |
ExperimentalAutoDetectBinPacking: false | |
IndentCaseLabels: true | |
IndentWrappedFunctionNames: false | |
IndentFunctionDeclarationAfterType: false | |
MaxEmptyLinesToKeep: 1 | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
NamespaceIndentation: None | |
ObjCSpaceAfterProperty: false | |
ObjCSpaceBeforeProtocolList: false | |
PenaltyBreakBeforeFirstCallParameter: 1 | |
PenaltyBreakComment: 300 | |
PenaltyBreakString: 1000 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 200 | |
PointerAlignment: Left | |
SpacesBeforeTrailingComments: 2 | |
Cpp11BracedListStyle: true | |
Standard: Cpp03 | |
IndentWidth: 2 | |
TabWidth: 8 | |
UseTab: Never | |
BreakBeforeBraces: Attach | |
SpacesInParentheses: false | |
SpacesInAngles: false | |
SpaceInEmptyParentheses: false | |
SpacesInCStyleCastParentheses: false | |
SpacesInContainerLiterals: true | |
SpaceBeforeAssignmentOperators: true | |
ContinuationIndentWidth: 4 | |
CommentPragmas: '^ IWYU pragma:' | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
SpaceBeforeParens: ControlStatements | |
DisableFormat: false | |
... |
This file contains 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
kjkmacpro:sumatrapdf kjk$ clang-format -dump-config -style=Google | |
--- | |
Language: Cpp | |
# BasedOnStyle: Google | |
AccessModifierOffset: -1 | |
ConstructorInitializerIndentWidth: 4 | |
AlignEscapedNewlinesLeft: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: true | |
AllowShortLoopsOnASingleLine: true | |
AllowShortFunctionsOnASingleLine: All | |
AlwaysBreakTemplateDeclarations: true | |
AlwaysBreakBeforeMultilineStrings: true | |
BreakBeforeBinaryOperators: false | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: false | |
BinPackParameters: true | |
ColumnLimit: 80 | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
DerivePointerAlignment: true | |
ExperimentalAutoDetectBinPacking: false | |
IndentCaseLabels: true | |
IndentWrappedFunctionNames: false | |
IndentFunctionDeclarationAfterType: false | |
MaxEmptyLinesToKeep: 1 | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
NamespaceIndentation: None | |
ObjCSpaceAfterProperty: false | |
ObjCSpaceBeforeProtocolList: false | |
PenaltyBreakBeforeFirstCallParameter: 1 | |
PenaltyBreakComment: 300 | |
PenaltyBreakString: 1000 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 200 | |
PointerAlignment: Left | |
SpacesBeforeTrailingComments: 2 | |
Cpp11BracedListStyle: true | |
Standard: Auto | |
IndentWidth: 2 | |
TabWidth: 8 | |
UseTab: Never | |
BreakBeforeBraces: Attach | |
SpacesInParentheses: false | |
SpacesInAngles: false | |
SpaceInEmptyParentheses: false | |
SpacesInCStyleCastParentheses: false | |
SpacesInContainerLiterals: true | |
SpaceBeforeAssignmentOperators: true | |
ContinuationIndentWidth: 4 | |
CommentPragmas: '^ IWYU pragma:' | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
SpaceBeforeParens: ControlStatements | |
DisableFormat: false | |
... |
This file contains 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
kjkmacpro:sumatrapdf kjk$ clang-format -dump-config -style=LLVM | |
--- | |
Language: Cpp | |
# BasedOnStyle: LLVM | |
AccessModifierOffset: -2 | |
ConstructorInitializerIndentWidth: 4 | |
AlignEscapedNewlinesLeft: false | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AlwaysBreakTemplateDeclarations: false | |
AlwaysBreakBeforeMultilineStrings: false | |
BreakBeforeBinaryOperators: false | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: false | |
BinPackParameters: true | |
ColumnLimit: 80 | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
DerivePointerAlignment: false | |
ExperimentalAutoDetectBinPacking: false | |
IndentCaseLabels: false | |
IndentWrappedFunctionNames: false | |
IndentFunctionDeclarationAfterType: false | |
MaxEmptyLinesToKeep: 1 | |
KeepEmptyLinesAtTheStartOfBlocks: true | |
NamespaceIndentation: None | |
ObjCSpaceAfterProperty: false | |
ObjCSpaceBeforeProtocolList: true | |
PenaltyBreakBeforeFirstCallParameter: 19 | |
PenaltyBreakComment: 300 | |
PenaltyBreakString: 1000 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 60 | |
PointerAlignment: Right | |
SpacesBeforeTrailingComments: 1 | |
Cpp11BracedListStyle: true | |
Standard: Cpp11 | |
IndentWidth: 2 | |
TabWidth: 8 | |
UseTab: Never | |
BreakBeforeBraces: Attach | |
SpacesInParentheses: false | |
SpacesInAngles: false | |
SpaceInEmptyParentheses: false | |
SpacesInCStyleCastParentheses: false | |
SpacesInContainerLiterals: true | |
SpaceBeforeAssignmentOperators: true | |
ContinuationIndentWidth: 4 | |
CommentPragmas: '^ IWYU pragma:' | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
SpaceBeforeParens: ControlStatements | |
DisableFormat: false |
This file contains 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
kjkmacpro:sumatrapdf kjk$ clang-format -dump-config -style=Mozilla | |
--- | |
Language: Cpp | |
# BasedOnStyle: Mozilla | |
AccessModifierOffset: -2 | |
ConstructorInitializerIndentWidth: 4 | |
AlignEscapedNewlinesLeft: false | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AlwaysBreakTemplateDeclarations: false | |
AlwaysBreakBeforeMultilineStrings: false | |
BreakBeforeBinaryOperators: false | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: false | |
BinPackParameters: true | |
ColumnLimit: 80 | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
DerivePointerAlignment: true | |
ExperimentalAutoDetectBinPacking: false | |
IndentCaseLabels: true | |
IndentWrappedFunctionNames: false | |
IndentFunctionDeclarationAfterType: false | |
MaxEmptyLinesToKeep: 1 | |
KeepEmptyLinesAtTheStartOfBlocks: true | |
NamespaceIndentation: None | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: false | |
PenaltyBreakBeforeFirstCallParameter: 19 | |
PenaltyBreakComment: 300 | |
PenaltyBreakString: 1000 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 200 | |
PointerAlignment: Left | |
SpacesBeforeTrailingComments: 1 | |
Cpp11BracedListStyle: false | |
Standard: Cpp03 | |
IndentWidth: 2 | |
TabWidth: 8 | |
UseTab: Never | |
BreakBeforeBraces: Attach | |
SpacesInParentheses: false | |
SpacesInAngles: false | |
SpaceInEmptyParentheses: false | |
SpacesInCStyleCastParentheses: false | |
SpacesInContainerLiterals: true | |
SpaceBeforeAssignmentOperators: true | |
ContinuationIndentWidth: 4 | |
CommentPragmas: '^ IWYU pragma:' | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
SpaceBeforeParens: ControlStatements | |
DisableFormat: false | |
... |
This file contains 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
kjkmacpro:sumatrapdf kjk$ clang-format -dump-config -style=WebKit | |
--- | |
Language: Cpp | |
# BasedOnStyle: WebKit | |
AccessModifierOffset: -4 | |
ConstructorInitializerIndentWidth: 4 | |
AlignEscapedNewlinesLeft: false | |
AlignTrailingComments: false | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AlwaysBreakTemplateDeclarations: false | |
AlwaysBreakBeforeMultilineStrings: false | |
BreakBeforeBinaryOperators: true | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: true | |
BinPackParameters: true | |
ColumnLimit: 0 | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
DerivePointerAlignment: false | |
ExperimentalAutoDetectBinPacking: false | |
IndentCaseLabels: false | |
IndentWrappedFunctionNames: false | |
IndentFunctionDeclarationAfterType: false | |
MaxEmptyLinesToKeep: 1 | |
KeepEmptyLinesAtTheStartOfBlocks: true | |
NamespaceIndentation: Inner | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: true | |
PenaltyBreakBeforeFirstCallParameter: 19 | |
PenaltyBreakComment: 300 | |
PenaltyBreakString: 1000 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 60 | |
PointerAlignment: Left | |
SpacesBeforeTrailingComments: 1 | |
Cpp11BracedListStyle: false | |
Standard: Cpp03 | |
IndentWidth: 4 | |
TabWidth: 8 | |
UseTab: Never | |
BreakBeforeBraces: Stroustrup | |
SpacesInParentheses: false | |
SpacesInAngles: false | |
SpaceInEmptyParentheses: false | |
SpacesInCStyleCastParentheses: false | |
SpacesInContainerLiterals: true | |
SpaceBeforeAssignmentOperators: true | |
ContinuationIndentWidth: 4 | |
CommentPragmas: '^ IWYU pragma:' | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
SpaceBeforeParens: ControlStatements | |
DisableFormat: false | |
... |
This file contains 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
C:\Users\kjk\src\sumatrapdf [master +1 ~0 -0 !]> clang-format --dump-config -style=Chromium | |
--- | |
Language: Cpp | |
# BasedOnStyle: Chromium | |
AccessModifierOffset: -1 | |
AlignAfterOpenBracket: true | |
AlignConsecutiveAssignments: false | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: Inline | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterDefinitionReturnType: None | |
AlwaysBreakBeforeMultilineStrings: true | |
AlwaysBreakTemplateDeclarations: true | |
BinPackArguments: true | |
BinPackParameters: false | |
BreakBeforeBinaryOperators: None | |
BreakBeforeBraces: Attach | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: false | |
ColumnLimit: 80 | |
CommentPragmas: '^ IWYU pragma:' | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: true | |
DerivePointerAlignment: false | |
DisableFormat: false | |
ExperimentalAutoDetectBinPacking: false | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
IndentCaseLabels: true | |
IndentWidth: 2 | |
IndentWrappedFunctionNames: false | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
MacroBlockBegin: '^IPC_END_MESSAGE_MAP$' | |
MacroBlockEnd: '' | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: None | |
ObjCBlockIndentWidth: 2 | |
ObjCSpaceAfterProperty: false | |
ObjCSpaceBeforeProtocolList: false | |
PenaltyBreakBeforeFirstCallParameter: 1 | |
PenaltyBreakComment: 300 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyBreakString: 1000 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 200 | |
PointerAlignment: Left | |
SpaceAfterCStyleCast: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeParens: ControlStatements | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 2 | |
SpacesInAngles: false | |
SpacesInContainerLiterals: true | |
SpacesInCStyleCastParentheses: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: Auto | |
TabWidth: 8 | |
UseTab: Never | |
... |
This file contains 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
C:\Users\kjk\src\sumatrapdf [master +1 ~0 -0 !]> clang-format --dump-config -style=Google | |
--- | |
Language: Cpp | |
# BasedOnStyle: Google | |
AccessModifierOffset: -1 | |
AlignAfterOpenBracket: true | |
AlignConsecutiveAssignments: false | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortIfStatementsOnASingleLine: true | |
AllowShortLoopsOnASingleLine: true | |
AlwaysBreakAfterDefinitionReturnType: None | |
AlwaysBreakBeforeMultilineStrings: true | |
AlwaysBreakTemplateDeclarations: true | |
BinPackArguments: true | |
BinPackParameters: true | |
BreakBeforeBinaryOperators: None | |
BreakBeforeBraces: Attach | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: false | |
ColumnLimit: 80 | |
CommentPragmas: '^ IWYU pragma:' | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: true | |
DerivePointerAlignment: true | |
DisableFormat: false | |
ExperimentalAutoDetectBinPacking: false | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
IndentCaseLabels: true | |
IndentWidth: 2 | |
IndentWrappedFunctionNames: false | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
MacroBlockBegin: '' | |
MacroBlockEnd: '' | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: None | |
ObjCBlockIndentWidth: 2 | |
ObjCSpaceAfterProperty: false | |
ObjCSpaceBeforeProtocolList: false | |
PenaltyBreakBeforeFirstCallParameter: 1 | |
PenaltyBreakComment: 300 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyBreakString: 1000 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 200 | |
PointerAlignment: Left | |
SpaceAfterCStyleCast: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeParens: ControlStatements | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 2 | |
SpacesInAngles: false | |
SpacesInContainerLiterals: true | |
SpacesInCStyleCastParentheses: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: Auto | |
TabWidth: 8 | |
UseTab: Never | |
... |
This file contains 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
C:\Users\kjk\src\sumatrapdf [master +1 ~0 -0 !]> clang-format --dump-config -style=LLVM | |
--- | |
Language: Cpp | |
# BasedOnStyle: LLVM | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: true | |
AlignConsecutiveAssignments: false | |
AlignEscapedNewlinesLeft: false | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterDefinitionReturnType: None | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: false | |
BinPackArguments: true | |
BinPackParameters: true | |
BreakBeforeBinaryOperators: None | |
BreakBeforeBraces: Attach | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: false | |
ColumnLimit: 80 | |
CommentPragmas: '^ IWYU pragma:' | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: true | |
DerivePointerAlignment: false | |
DisableFormat: false | |
ExperimentalAutoDetectBinPacking: false | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
IndentCaseLabels: false | |
IndentWidth: 2 | |
IndentWrappedFunctionNames: false | |
KeepEmptyLinesAtTheStartOfBlocks: true | |
MacroBlockBegin: '' | |
MacroBlockEnd: '' | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: None | |
ObjCBlockIndentWidth: 2 | |
ObjCSpaceAfterProperty: false | |
ObjCSpaceBeforeProtocolList: true | |
PenaltyBreakBeforeFirstCallParameter: 19 | |
PenaltyBreakComment: 300 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyBreakString: 1000 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 60 | |
PointerAlignment: Right | |
SpaceAfterCStyleCast: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeParens: ControlStatements | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 1 | |
SpacesInAngles: false | |
SpacesInContainerLiterals: true | |
SpacesInCStyleCastParentheses: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: Cpp11 | |
TabWidth: 8 | |
UseTab: Never | |
... |
This file contains 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
C:\Users\kjk\src\sumatrapdf [master +1 ~0 -0 !]> clang-format --dump-config -style=Mozilla | |
--- | |
Language: Cpp | |
# BasedOnStyle: Mozilla | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: true | |
AlignConsecutiveAssignments: false | |
AlignEscapedNewlinesLeft: false | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: Inline | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterDefinitionReturnType: TopLevel | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: true | |
BinPackArguments: true | |
BinPackParameters: true | |
BreakBeforeBinaryOperators: None | |
BreakBeforeBraces: Mozilla | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: true | |
ColumnLimit: 80 | |
CommentPragmas: '^ IWYU pragma:' | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
ConstructorInitializerIndentWidth: 2 | |
ContinuationIndentWidth: 2 | |
Cpp11BracedListStyle: false | |
DerivePointerAlignment: false | |
DisableFormat: false | |
ExperimentalAutoDetectBinPacking: false | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
IndentCaseLabels: true | |
IndentWidth: 2 | |
IndentWrappedFunctionNames: false | |
KeepEmptyLinesAtTheStartOfBlocks: true | |
MacroBlockBegin: '' | |
MacroBlockEnd: '' | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: None | |
ObjCBlockIndentWidth: 2 | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: false | |
PenaltyBreakBeforeFirstCallParameter: 19 | |
PenaltyBreakComment: 300 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyBreakString: 1000 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 200 | |
PointerAlignment: Left | |
SpaceAfterCStyleCast: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeParens: ControlStatements | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 1 | |
SpacesInAngles: false | |
SpacesInContainerLiterals: true | |
SpacesInCStyleCastParentheses: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: Cpp11 | |
TabWidth: 8 | |
UseTab: Never | |
... |
This file contains 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
C:\Users\kjk\src\sumatrapdf [master +1 ~0 -0 !]> clang-format --dump-config -style=WebKit | |
--- | |
Language: Cpp | |
# BasedOnStyle: WebKit | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: false | |
AlignConsecutiveAssignments: false | |
AlignEscapedNewlinesLeft: false | |
AlignOperands: false | |
AlignTrailingComments: false | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterDefinitionReturnType: None | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: false | |
BinPackArguments: true | |
BinPackParameters: true | |
BreakBeforeBinaryOperators: All | |
BreakBeforeBraces: Stroustrup | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: true | |
ColumnLimit: 0 | |
CommentPragmas: '^ IWYU pragma:' | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: false | |
DerivePointerAlignment: false | |
DisableFormat: false | |
ExperimentalAutoDetectBinPacking: false | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
IndentCaseLabels: false | |
IndentWidth: 4 | |
IndentWrappedFunctionNames: false | |
KeepEmptyLinesAtTheStartOfBlocks: true | |
MacroBlockBegin: '' | |
MacroBlockEnd: '' | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: Inner | |
ObjCBlockIndentWidth: 4 | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: true | |
PenaltyBreakBeforeFirstCallParameter: 19 | |
PenaltyBreakComment: 300 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyBreakString: 1000 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 60 | |
PointerAlignment: Left | |
SpaceAfterCStyleCast: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeParens: ControlStatements | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 1 | |
SpacesInAngles: false | |
SpacesInContainerLiterals: true | |
SpacesInCStyleCastParentheses: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: Cpp03 | |
TabWidth: 8 | |
UseTab: Never | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment