1+ # ================================
2+ # Language and Base Style Settings
3+ # ================================
4+ Language : Cpp
5+ BasedOnStyle : LLVM
6+
7+ # ================================
8+ # Indentation and Tabs
9+ # ================================
10+ IndentWidth : 2 # Indent size in spaces
11+ TabWidth : 2 # Width of tab character
12+ UseTab : Never # Use spaces instead of tabs
13+
14+ # ================================
15+ # Line Length and Wrapping
16+ # ================================
17+ ColumnLimit : 150 # Maximum allowed line length
18+
19+ # ================================
20+ # Brace Wrapping Style
21+ # ================================
22+ BreakBeforeBraces : Attach # Put opening braces on the same line
23+
24+ # ================================
25+ # Short Statements Handling
26+ # ================================
27+ AllowShortIfStatementsOnASingleLine : true
28+ AllowShortFunctionsOnASingleLine : Inline
29+ AllowShortLoopsOnASingleLine : true
30+ AllowShortCaseLabelsOnASingleLine : true
31+
32+ # ================================
33+ # Comment Formatting
34+ # ================================
35+ SpacesBeforeTrailingComments : 1
36+ AlignTrailingComments : true
37+ BreakBeforeComments : true
38+ ReflowComments : false # Avoid reformatting comment text
39+
40+ # ================================
41+ # Spacing Rules
42+ # ================================
43+ SpaceBeforeParens : ControlStatements # Space before parens in if, for, while, etc.
44+
45+ # ================================
46+ # Alignment and Sorting
47+ # ================================
48+ AlignConsecutiveAssignments : false
49+ AlignConsecutiveDeclarations : false
50+ SortIncludes : false # Disable automatic sorting of includes
51+
52+ # ================================
53+ # Function and Constructor Formatting
54+ # ================================
55+ AllowAllConstructorInitializersOnNextLine : false
56+ BinPackArguments : false # Do not pack multiple function arguments on the same line
57+ BinPackParameters : false # Do not pack multiple function parameters on the same line
0 commit comments