| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- ---
- Language: Cpp
- BasedOnStyle: Google
- # Indentation
- IndentWidth: 4
- TabWidth: 4
- UseTab: Never
- AccessModifierOffset: -4
- IndentCaseLabels: true
- IndentPPDirectives: BeforeHash
- NamespaceIndentation: None
- # Line length
- ColumnLimit: 120
- # Braces
- BreakBeforeBraces: Attach
- BraceWrapping:
- AfterCaseLabel: false
- AfterClass: false
- AfterControlStatement: Never
- AfterEnum: false
- AfterFunction: false
- AfterNamespace: false
- AfterStruct: false
- AfterUnion: false
- BeforeCatch: false
- BeforeElse: false
- BeforeLambdaBody: false
- IndentBraces: false
- SplitEmptyFunction: false
- SplitEmptyRecord: false
- SplitEmptyNamespace: false
- # Alignment
- AlignAfterOpenBracket: Align
- AlignConsecutiveAssignments: None
- AlignConsecutiveBitFields: None
- AlignConsecutiveDeclarations: None
- AlignConsecutiveMacros: None
- AlignEscapedNewlines: Left
- AlignOperands: Align
- AlignTrailingComments: true
- # Arguments and parameters
- AllowAllArgumentsOnNextLine: true
- AllowAllParametersOfDeclarationOnNextLine: true
- BinPackArguments: true
- BinPackParameters: true
- # Short forms
- AllowShortBlocksOnASingleLine: Empty
- AllowShortCaseLabelsOnASingleLine: false
- AllowShortEnumsOnASingleLine: false
- AllowShortFunctionsOnASingleLine: Inline
- AllowShortIfStatementsOnASingleLine: Never
- AllowShortLambdasOnASingleLine: All
- AllowShortLoopsOnASingleLine: false
- # Breaks
- AlwaysBreakAfterReturnType: None
- AlwaysBreakBeforeMultilineStrings: false
- AlwaysBreakTemplateDeclarations: Yes
- BreakBeforeBinaryOperators: None
- BreakBeforeConceptDeclarations: true
- BreakBeforeTernaryOperators: true
- BreakConstructorInitializers: BeforeColon
- BreakInheritanceList: BeforeColon
- BreakStringLiterals: true
- # Constructors and initializers
- ConstructorInitializerIndentWidth: 4
- PackConstructorInitializers: NextLine
- # Includes
- IncludeBlocks: Regroup
- IncludeCategories:
- - Regex: '^<.*\.h>'
- Priority: 1
- - Regex: '^<.*>'
- Priority: 2
- - Regex: '^".*"'
- Priority: 3
- SortIncludes: CaseSensitive
- # Pointers and references
- DerivePointerAlignment: false
- PointerAlignment: Left
- ReferenceAlignment: Left
- # Spaces
- SpaceAfterCStyleCast: false
- SpaceAfterLogicalNot: false
- SpaceAfterTemplateKeyword: true
- SpaceAroundPointerQualifiers: Default
- SpaceBeforeAssignmentOperators: true
- SpaceBeforeCaseColon: false
- SpaceBeforeCpp11BracedList: false
- SpaceBeforeCtorInitializerColon: true
- SpaceBeforeInheritanceColon: true
- SpaceBeforeParens: ControlStatements
- SpaceBeforeRangeBasedForLoopColon: true
- SpaceBeforeSquareBrackets: false
- SpaceInEmptyBlock: false
- SpaceInEmptyParentheses: false
- SpacesBeforeTrailingComments: 2
- SpacesInAngles: Never
- SpacesInCStyleCastParentheses: false
- SpacesInConditionalStatement: false
- SpacesInContainerLiterals: false
- SpacesInParentheses: false
- SpacesInSquareBrackets: false
- # Miscellaneous
- Cpp11BracedListStyle: true
- EmptyLineAfterAccessModifier: Never
- EmptyLineBeforeAccessModifier: LogicalBlock
- FixNamespaceComments: true
- InsertBraces: false
- InsertTrailingCommas: None
- MaxEmptyLinesToKeep: 1
- QualifierAlignment: Leave
- ReflowComments: true
- SeparateDefinitionBlocks: Leave
- SortUsingDeclarations: true
- Standard: c++20
- ...
|