Skip to content

Instantly share code, notes, and snippets.

@notpidgey
Created July 8, 2025 15:45
Show Gist options
  • Save notpidgey/98b8eda4c0cb12ae467135b4cca1d2ae to your computer and use it in GitHub Desktop.
Save notpidgey/98b8eda4c0cb12ae467135b4cca1d2ae to your computer and use it in GitHub Desktop.
---
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignOperands: false
AlignTrailingComments: false
AlwaysBreakTemplateDeclarations: Yes
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBraces: Custom
BreakConstructorInitializers: AfterColon
BreakConstructorInitializersBeforeComma: false
ColumnLimit: 150
ConstructorInitializerAllOnOneLineOrOnePerLine: false
Cpp11BracedListStyle: false
IncludeCategories:
- Regex: "^<.*"
Priority: 1
- Regex: '^".*'
Priority: 2
- Regex: ".*"
Priority: 3
IncludeIsMainRegex: "([-_](test|unittest))?$"
IndentCaseLabels: true
IndentWidth: 4
InsertNewlineAtEOF: true
MacroBlockBegin: ""
MacroBlockEnd: ""
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
SpaceInEmptyParentheses: true
SpacesInAngles: false
SpacesInConditionalStatement: true
SpacesInCStyleCastParentheses: true
SpacesInParentheses: true
SpacesInSquareBrackets: true
TabWidth: 4
PointerAlignment: Left
LambdaBodyIndentation: OuterScope
AllowShortLambdasOnASingleLine: Inline
FixNamespaceComments: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment