mirror of
https://github.com/microsoft/GSL.git
synced 2025-02-21 08:52:53 -05:00
To apply .clang-format to the codebase, the following command can be run: git ls-files -- *.cpp *.h | xargs clang-format -i -style=file
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
AccessModifierOffset: 0
|
|
AlignEscapedNewlinesLeft: true
|
|
AlignTrailingComments: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowShortFunctionsOnASingleLine: false
|
|
AllowShortIfStatementsOnASingleLine: true
|
|
AllowShortLoopsOnASingleLine: false
|
|
AlwaysBreakBeforeMultilineStrings: false
|
|
AlwaysBreakTemplateDeclarations: false
|
|
BinPackParameters: false
|
|
BreakBeforeBinaryOperators: false
|
|
BreakBeforeBraces: Allman
|
|
BreakBeforeTernaryOperators: false
|
|
BreakConstructorInitializersBeforeComma: false
|
|
ColumnLimit: 100
|
|
CommentPragmas: ''
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
|
ConstructorInitializerIndentWidth: 0
|
|
ContinuationIndentWidth: 0
|
|
Cpp11BracedListStyle: false
|
|
DerivePointerBinding: false
|
|
IndentCaseLabels: false
|
|
IndentFunctionDeclarationAfterType: false
|
|
IndentWidth: 4
|
|
Language: Cpp
|
|
MaxEmptyLinesToKeep: 2
|
|
NamespaceIndentation: None
|
|
ObjCSpaceAfterProperty: true
|
|
ObjCSpaceBeforeProtocolList: true
|
|
PenaltyBreakBeforeFirstCallParameter: 100
|
|
PenaltyBreakComment: 100
|
|
PenaltyBreakFirstLessLess: 0
|
|
PenaltyBreakString: 100
|
|
PenaltyExcessCharacter: 1
|
|
PenaltyReturnTypeOnItsOwnLine: 20
|
|
PointerBindsToType: true
|
|
SpaceBeforeAssignmentOperators: true
|
|
SpaceBeforeParens: ControlStatements
|
|
SpaceInEmptyParentheses: false
|
|
SpacesBeforeTrailingComments: 1
|
|
SpacesInAngles: false
|
|
SpacesInCStyleCastParentheses: false
|
|
SpacesInContainerLiterals: false
|
|
SpacesInParentheses: false
|
|
Standard: Cpp11
|
|
TabWidth: 4
|
|
UseTab: Never
|