From c1937dd76ba0741fbf205dc926b9a4712c89c332 Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Tue, 17 Feb 2015 13:11:20 +0300 Subject: [coding-style] Added configuration file for clang-format. By default, clang-format tool performs lookup for configuration file named .clang-format in each directory on the way to the /. Thus, when clang-format will be invoked from the omim/ directory, this configuration file will be used. --- .clang-format | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..53bf0b2606 --- /dev/null +++ b/.clang-format @@ -0,0 +1,19 @@ +# Configuration file for clang-format, based on docs/cpp_coding_standard.txt. + +--- +BasedOnStyle: Google +IndentWidth: 2 + +--- +Language: Cpp +AccessModifierOffset: -2 +AllowShortBlocksOnASingleLine: false +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +BreakBeforeBraces: Allman +BreakConstructorInitializersBeforeComma: false +ColumnLimit: 100 +DerivePointerAlignment: false +NamespaceIndentation: All +PointerAlignment: Middle -- cgit v1.2.3