···11+# Based on LLVM coding standards
22+BasedOnStyle: LLVM
33+44+# Use 4 spaces for indentation
55+IndentWidth: 4
66+77+# Use 4 spaces for continuations
88+ContinuationIndentWidth: 4
99+1010+# Allow short functions to be on a single line
1111+AllowShortFunctionsOnASingleLine: false
1212+1313+# Brace wrapping
1414+BraceWrapping:
1515+ AfterClass: false
1616+ AfterControlStatement: true
1717+ AfterEnum: false
1818+ AfterFunction: true
1919+ AfterNamespace: false
2020+ AfterStruct: false
2121+ AfterUnion: false
2222+ BeforeCatch: false
2323+ BeforeElse: true
2424+ IndentBraces: false
2525+ SplitEmptyFunction: false
2626+ SplitEmptyRecord: false
2727+ SplitEmptyNamespace: false
2828+2929+# Column limit for wrapping
3030+ColumnLimit: 0
3131+3232+# Break before braces for functions and classes
3333+BreakBeforeBraces: Allman
3434+3535+# Function declaration return type alignment
3636+AlignTrailingComments: true
3737+AlignAfterOpenBracket: true
3838+AlignEscapedNewlines: Left
3939+AlignOperands: true
4040+AlignConsecutiveAssignments: false
4141+AlignConsecutiveDeclarations: false
4242+4343+# Control statements
4444+AllowShortIfStatementsOnASingleLine: true
4545+AllowShortLoopsOnASingleLine: false
4646+IndentCaseLabels: true
4747+4848+# Pointer alignment
4949+PointerAlignment: Left
5050+5151+# Space before and after operators
5252+SpaceBeforeParens: ControlStatements
5353+SpaceBeforeRangeBasedForLoopColon: true
5454+SpacesBeforeTrailingComments: 1
5555+SpacesInCStyleCastParentheses: false
5656+SpacesInContainerLiterals: false
5757+SpacesInParentheses: false
5858+5959+# Namespace indentation
6060+NamespaceIndentation: None
6161+6262+# Empty line before access modifiers in classes
6363+EmptyLineBeforeAccessModifier: LogicalBlock
6464+6565+# Add space between statements
6666+SpaceBeforeAssignmentOperators: true
6767+6868+# No space before opening brackets
6969+SpaceBeforeSquareBrackets: false
7070+7171+# No space before or after '<' and '>' in template argument lists
7272+SpacesInAngles: false
7373+7474+# Handling include statements
7575+IncludeBlocks: Preserve
7676+IncludeCategories:
7777+ - Regex: '^<.*\.h>'
7878+ Priority: 1
7979+ - Regex: '^".*\.h"'
8080+ Priority: 2
8181+8282+# Keep empty lines at the start of blocks
8383+KeepEmptyLinesAtTheStartOfBlocks: true
8484+8585+# Indentation style for preprocessor directives
8686+IndentPPDirectives: AfterHash
8787+8888+# Wrap comments to fit within column limit
8989+ReflowComments: false