From 5c0f11970cd6de85948d8327bdc88267882a01ce Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 8 Mar 2016 08:38:45 -0500 Subject: add an untested, but likely usable clang-format configuration file (from matthias buhr) --- tools/clang-format | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tools/clang-format (limited to 'tools') diff --git a/tools/clang-format b/tools/clang-format new file mode 100644 index 0000000000..e014125497 --- /dev/null +++ b/tools/clang-format @@ -0,0 +1,25 @@ +--- + +Language: Cpp +AlignAfterOpenBracket: 'true' +AlignTrailingComments: 'true' +AlwaysBreakTemplateDeclarations: 'true' +AllowShortBlocksOnASingleLine: 'false' +AllowShortCaseLabelsOnASingleLine: 'false' +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: 'false' +AllowShortLoopsOnASingleLine: 'false' +AlwaysBreakAfterDefinitionReturnType: 'true' +BasedOnStyle: LLVM +BreakBeforeBraces: 'Linux' +BreakConstructorInitializersBeforeComma: 'true' +ColumnLimit: '100' +ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' +IndentCaseLabels: 'false' +NamespaceIndentation: 'None' +PenaltyReturnTypeOnItsOwnLine: '1' +PointerAlignment: Left +SpaceBeforeParens: Always +TabWidth: '2' +UseTab: ForIndentation + -- cgit v1.2.3