From 8c74059fac6f352b276c6a837103f45506569efc Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Tue, 19 Nov 2024 17:13:50 +0100 Subject: [PATCH] Add `.clang-format` file from CMSSW This makes sure you're pickig up the right code style also when cloning combine outside the CMSSW environment. --- .clang-format | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000000..2b4410ebc59 --- /dev/null +++ b/.clang-format @@ -0,0 +1,17 @@ +--- +Language: Cpp +BasedOnStyle: Google +ColumnLimit: 120 +NamespaceIndentation: All +SortIncludes: false +IndentWidth: 2 +AccessModifierOffset: -2 +PenaltyBreakComment: 30 +PenaltyExcessCharacter: 100 +AlignAfterOpenBracket: Align +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakTemplateDeclarations: Yes +ReflowComments: false +BinPackArguments: false +BinPackParameters: false