BasedOnStyle: LLVM Language: Cpp # ────────────────────────────────── # Indentation # ────────────────────────────────── IndentWidth: 4 TabWidth: 4 UseTab: Never ContinuationIndentWidth: 0 IndentWrappedFunctionNames: true IndentCaseLabels: true IndentGotoLabels: true IndentPPDirectives: None IndentExternBlock: false # ────────────────────────────────── # Line breaking # ────────────────────────────────── ColumnLimit: 0 AlwaysBreakAfterReturnType: All AlwaysBreakTemplateDeclarations: No AllowShortFunctionsOnASingleLine: false AllowShortIfStatementsOnASingleLine: Never AllowShortLoopsOnASingleLine: false AllowShortBlocksOnASingleLine: Never AllowShortCaseLabelsOnASingleLine: false BreakBeforeBinaryOperators: None # ────────────────────────────────── # Braces (Allman) # ────────────────────────────────── BreakBeforeBraces: Allman BraceWrapping: AfterCaseLabel: true BeforeElse: true BeforeCatch: true SplitEmptyFunction: true SplitEmptyRecord: true SplitEmptyNamespace: true # ────────────────────────────────── # Spacing # ────────────────────────────────── SpaceBeforeParens: ControlStatements SpaceBeforeAssignmentOperators: true SpaceBeforeRangeBasedForLoopColon: true SpacesInParentheses: false SpacesInSquareBrackets: false SpacesInAngles: false SpaceInEmptyParentheses: false SpacesBeforeTrailingComments: 1 PointerAlignment: Right DerivePointerAlignment: false # ────────────────────────────────── # Alignment (explicit, controlled) # ────────────────────────────────── AlignOperands: true AlignTrailingComments: true AlignConsecutiveAssignments: true AlignConsecutiveDeclarations: true AlignEscapedNewlines: DontAlign # Disable parameter / argument columns AlignAfterOpenBracket: false BinPackParameters: false BinPackArguments: false # ────────────────────────────────── # Comments # ────────────────────────────────── ReflowComments: false CommentPragmas: '^ dont touch:' KeepEmptyLinesAtTheStartOfBlocks: false MaxEmptyLinesToKeep: 1 # ────────────────────────────────── # Includes # ────────────────────────────────── SortIncludes: Never IncludeBlocks: Preserve # ────────────────────────────────── # Macros # ────────────────────────────────── MacroBlockBegin: '' MacroBlockEnd: '' SpaceAfterCStyleCast: false # ────────────────────────────────── # C++ specifics # ────────────────────────────────── Cpp11BracedListStyle: true DisableFormat: false