From ab4f89d9f3eccf384ed4ef7dfec1363fbd4d697c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 23 Nov 2019 00:05:24 -0800 Subject: Updated .clang-format --- .clang-format | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/.clang-format b/.clang-format index 006edfc5..89ceb27b 100644 --- a/.clang-format +++ b/.clang-format @@ -84,17 +84,40 @@ AllowAllConstructorInitializersOnNextLine: true # member0(0), member1(2) {} -AllowAllParametersOfDeclarationOnNextLine: true -AllowShortBlocksOnASingleLine: Never -AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: None -AllowShortLambdasOnASingleLine: All +# If the function declaration doesn't fit on a line, allow putting all parameters +# of a function declaration onto the next line even if BinPackParameters is false. +AllowAllParametersOfDeclarationOnNextLine: false +#false: +#void myFunction(int a, +# int b, +# int c); + + +AllowShortBlocksOnASingleLine: Always +# Always: +# while (true) {} +# while (true) {continue;} + + +AllowShortCaseLabelsOnASingleLine: true +# true: +# switch (a) +# { +# case 1: x = 1; break; + + +AllowShortFunctionsOnASingleLine: All +AllowShortLambdasOnASingleLine: Inline AllowShortIfStatementsOnASingleLine: Never -AllowShortLoopsOnASingleLine: false +AllowShortLoopsOnASingleLine: true + +# The function definition return type breaking style to use. +# This option is deprecated and is retained for backwards compatibility. AlwaysBreakAfterDefinitionReturnType: None + AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: MultiLine +AlwaysBreakTemplateDeclarations: No # If false, a function call's arguments will either be all on the same line or will have one line each. BinPackArguments: true -- cgit v1.2.3