Skip to content

Instantly share code, notes, and snippets.

@W4RH4WK
Last active November 4, 2020 09:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save W4RH4WK/16199050e645aa7a7b0abdada6a75aa7 to your computer and use it in GitHub Desktop.
Save W4RH4WK/16199050e645aa7a7b0abdada6a75aa7 to your computer and use it in GitHub Desktop.
Clang Format
---
Language: Cpp
BasedOnStyle: LLVM
ColumnLimit: 120
IndentWidth: 4
Standard: Latest
TabWidth: 4
UseTab: ForIndentation
AlignEscapedNewlines: Left
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakTemplateDeclarations: true
BreakBeforeBinaryOperators: NonAssignment
...
---
BasedOnStyle: LLVM
ColumnLimit: 80
IndentWidth: 8
UseTab: ForIndentation
BreakBeforeBraces: Linux
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
BinPackParameters: false
...
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{c,cpp,h,hpp}]
indent_style = tab
indent_size = 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment