Skip to content

Instantly share code, notes, and snippets.

@qlyoung
Created July 17, 2017 18:37
Show Gist options
  • Save qlyoung/242ba15238ba417cb7721c45a3201497 to your computer and use it in GitHub Desktop.
Save qlyoung/242ba15238ba417cb7721c45a3201497 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
Copy link

ghost commented Jul 14, 2018

clang-format 3.8.0 complains about BreakStringLiterals: false. Anybody knows why?

@qlyoung
Copy link
Author

qlyoung commented Nov 1, 2019

Probably doesn't know about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment