Skip to content

Instantly share code, notes, and snippets.

@cengiz-io
Forked from qlyoung/linux-clang-format
Last active July 23, 2020 11:16
Show Gist options
  • Save cengiz-io/c59ae32009a5b160d571ea5f2317aaa2 to your computer and use it in GitHub Desktop.
Save cengiz-io/c59ae32009a5b160d571ea5f2317aaa2 to your computer and use it in GitHub Desktop.
Linux kernel style .clang-format
---
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AlwaysBreakBeforeMultilineStrings: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
IndentCaseLabels: false
AlignEscapedNewlinesLeft: false
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AlignAfterOpenBracket: true
SpaceAfterCStyleCast: false
MaxEmptyLinesToKeep: 2
BreakBeforeBinaryOperators: NonAssignment
BreakStringLiterals: false
SortIncludes: false
ContinuationIndentWidth: 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment