Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2015-02-17 13:11:20 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:37:29 +0300
commitc1937dd76ba0741fbf205dc926b9a4712c89c332 (patch)
tree6d693b0d166eca8ac9cdaa6bb3d26edfa3572778 /.clang-format
parentc9c8d1d611d7e35ccc7f3b79b0b4c63f33c5c5f3 (diff)
[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.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format19
1 files changed, 19 insertions, 0 deletions
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