Skip to content

Instantly share code, notes, and snippets.

@ziteh
Last active February 3, 2024 03:42
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 ziteh/fa306266a4a559c288b38684687eb5a8 to your computer and use it in GitHub Desktop.
Save ziteh/fa306266a4a559c288b38684687eb5a8 to your computer and use it in GitHub Desktop.
clang-format
---
Language: Cpp
BasedOnStyle: LLVM
TabWidth: 4
IndentWidth: 4
AccessModifierOffset: -4
UseTab: Never
AlignAfterOpenBracket: Align
AllowShortBlocksOnASingleLine: Always
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Allman
ColumnLimit: 0
FixNamespaceComments: false
IndentPPDirectives: BeforeHash
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
SortIncludes: false
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment