---
BasedOnStyle: Google
Language: Cpp
Standard: c++20

# Indentation and spacing
IndentWidth: 2
TabWidth: 2
UseTab: Never
ColumnLimit: 100

AccessModifierOffset: -2
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4

# Pointer alignment (Type* ptr, Type& ref)
DerivePointerAlignment: false
PointerAlignment: Left

# Control statements and brackets
AllowShortFunctionsOnASingleLine: Inline
AllowShortBlocksOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false

# Header sorting
SortIncludes: CaseSensitive
IncludeBlocks: Regroup

# Spacing rules
SpacesBeforeTrailingComments: 2
SpaceAfterCStyleCast: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeParens: ControlStatements
