Add new .clang-format with Microsoft base style

This commit is contained in:
Eduardo Almeida
2022-06-24 19:25:48 +01:00
parent 39cc8431e1
commit e99d0a8550

View File

@@ -1,54 +1,29 @@
--- ---
Language: Cpp Language: Cpp
AccessModifierOffset: -2 BasedOnStyle: Microsoft
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false AllowAllArgumentsOnNextLine: false
AlignConsecutiveDeclarations: false AllowAllParametersOfDeclarationOnNextLine: false
AlignEscapedNewlinesLeft: true AlwaysBreakAfterReturnType: TopLevelDefinitions
AlignOperands: true AlwaysBreakTemplateDeclarations: Yes
AlignTrailingComments: false BinPackArguments: false
AllowAllParametersOfDeclarationOnNextLine: true BinPackParameters: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: AllDefinitions
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterFunction: true
AfterNamespace: false
AfterStruct: true
IndentBraces: true
BeforeElse: true
BeforeCatch: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
ColumnLimit: 100 ColumnLimit: 100
ConstructorInitializerAllOnOneLineOrOnePerLine: true DeriveLineEnding: false
Cpp11BracedListStyle: true IncludeBlocks: Regroup
DerivePointerAlignment: false IncludeCategories:
IndentCaseLabels: false - Regex: '^(<|")ns3/'
IndentWidth: 2 Priority: 2
NamespaceIndentation: None SortPriority: 0
PointerAlignment: Right - Regex: "^<"
ReflowComments: false Priority: 3
SortIncludes: false SortPriority: 0
SpaceAfterCStyleCast: true - Regex: ".*"
SpaceAfterTemplateKeyword: true Priority: 1
SpaceBeforeAssignmentOperators: true SortPriority: 0
SpaceBeforeParens: Always KeepEmptyLinesAtTheStartOfBlocks: false
SpaceInEmptyParentheses: false PackConstructorInitializers: Never
SpacesInAngles: false PointerAlignment: Left
SpacesInCStyleCastParentheses: false QualifierAlignment: Left
SpacesInParentheses: false SeparateDefinitionBlocks: Always
SpacesInSquareBrackets: false Standard: "c++17"
Standard: 'Cpp11'
UseTab: Never
...