Skip to content

Instantly share code, notes, and snippets.

@halby24
Last active February 16, 2024 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halby24/263620321d0b3637e4788983e68c6cbc to your computer and use it in GitHub Desktop.
Save halby24/263620321d0b3637e4788983e68c6cbc to your computer and use it in GitHub Desktop.
.clang-format
BasedOnStyle: Google
PointerAlignment: Left
IndentWidth: 4
# ColumnLimit: 200
BinPackArguments: true
BinPackParameters: true
AlignAfterOpenBracket: Align
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AlignTrailingComments: true
AlwaysBreakAfterReturnType: None
IndentPPDirectives: BeforeHash
BreakBeforeBraces: Custom
AlignEscapedNewlines: DontAlign
BraceWrapping:
AfterClass: true
AfterEnum: true
AfterStruct: true
AfterFunction: true
AfterNamespace: true
AfterUnion: true
AfterExternBlock: true
AfterControlStatement: true
SplitEmptyFunction: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment