File tree Expand file tree Collapse file tree 3 files changed +3803
-4216
lines changed
Expand file tree Collapse file tree 3 files changed +3803
-4216
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ # Modern C++ style guide based on LLVM/Google/Mozilla guidelines
3+ BasedOnStyle : LLVM
4+ Language : Cpp
5+ Standard : c++17
6+
7+ # Modern indentation
8+ IndentWidth : 4
9+ TabWidth : 4
10+ UseTab : Never
11+ ContinuationIndentWidth : 4
12+ NamespaceIndentation : None
13+ AccessModifierOffset : -4
14+
15+ # Modern code layout
16+ ColumnLimit : 120
17+ MaxEmptyLinesToKeep : 2
18+ KeepEmptyLinesAtTheStartOfBlocks : false
19+
20+ # Modern brace style
21+ BreakBeforeBraces : Custom
22+ BraceWrapping :
23+ AfterClass : false
24+ AfterControlStatement : false
25+ AfterEnum : false
26+ AfterFunction : false
27+ AfterNamespace : false
28+ AfterStruct : false
29+ AfterUnion : false
30+ BeforeCatch : false
31+ BeforeElse : false
32+ IndentBraces : false
33+
34+ # Modern switch/case style
35+ IndentCaseLabels : true
36+ IndentCaseBlocks : false
37+ AllowShortCaseLabelsOnASingleLine : false
38+
39+ # Modern alignment
40+ PointerAlignment : Left
41+ AlignAfterOpenBracket : Align # Changed from AlignOrBreak to Align
42+ AlignOperands : true
43+ AlignTrailingComments : true
44+ AlignConsecutiveAssignments : true
45+ AlignConsecutiveDeclarations : true
46+
47+ # Modern breaking rules
48+ AllowAllParametersOfDeclarationOnNextLine : true
49+ AllowShortBlocksOnASingleLine : Empty
50+ AllowShortFunctionsOnASingleLine : Empty
51+ AllowShortIfStatementsOnASingleLine : Never
52+ AllowShortLoopsOnASingleLine : false
53+ AlwaysBreakAfterReturnType : None
54+ IncludeBlocks : Preserve
You can’t perform that action at this time.
0 commit comments