Skip to content

Instantly share code, notes, and snippets.

@jakergrossman
Last active February 26, 2024 06:10
Show Gist options
  • Select an option

  • Save jakergrossman/b9cfd70032be276a1df09cc9c4f1d5d5 to your computer and use it in GitHub Desktop.

Select an option

Save jakergrossman/b9cfd70032be276a1df09cc9c4f1d5d5 to your computer and use it in GitHub Desktop.
Preferred Formatting for clang-format
BasedOnStyle: LLVM
BreakBeforeBraces: Linux
UseTab: Always
IndentWidth: 4
TabWidth: 4
LineEnding: LF
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortIfStatementsOnASingleLine: Never
AllowShortFunctionsOnASingleLine: Empty
IndentCaseLabels: 'false'
IndentCaseBlocks: 'false'
DerivePointerAlignment: 'true'
PointerAlignment: Left
BreakAfterAttributes: Leave
SortIncludes: 'false'
SortUsingDeclarations: Never
AlignAfterOpenBracket: BlockIndent
PenaltyBreakBeforeFirstCallParameter: 9999
AlignEscapedNewlines: Left
AlwaysBreakTemplateDeclarations: Yes
AlwaysBreakAfterReturnType: All
BreakStringLiterals: 'false'
ReflowComments: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment