summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernie Innocenti2018-06-07 05:49:59 -0500
committerBernie Innocenti2018-06-07 05:57:57 -0500
commit68ba3c3d9a5eba70812099cfc31c534142f696e9 (patch)
tree56a3efb164fadfb673e1c43e8e6e7f2ef99da953 /.clang-format-4
parent5c1d56dffa0c05ad6332ea6d9d31606ac782da44 (diff)
downloadplatform-system-core-68ba3c3d9a5eba70812099cfc31c534142f696e9.tar.gz
platform-system-core-68ba3c3d9a5eba70812099cfc31c534142f696e9.tar.xz
platform-system-core-68ba3c3d9a5eba70812099cfc31c534142f696e9.zip
clang-format: Double-indent continuation lines
The default value for ContinuationIndentWidth inherited from the Google style is 4. Since .clang-format-4 doubles the value of IndentWidth from 2 to 4, it should also double ContinuationIndentWidth to retain Google's double-indent style. Before: void forEachInterface( const std::string& dirname, const std::function<void(const std::string& path)) { fn(dirname, "default"); DIR* dir = opendir(dirname.c_str()); After this patch: void forEachInterface( const std::string& dirname, const std::function<void(const std::string& path)) { fn(dirname, "default"); DIR* dir = opendir(dirname.c_str()); Test: applied to libsysutils/src/*.cpp and compared output. Change-Id: I75c50fa9becd5291a17047933f443cc6db77838a
Diffstat (limited to '.clang-format-4')
-rw-r--r--.clang-format-41
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-format-4 b/.clang-format-4
index ae4a45135..912716375 100644
--- a/.clang-format-4
+++ b/.clang-format-4
@@ -5,6 +5,7 @@ ColumnLimit: 100
5CommentPragmas: NOLINT:.* 5CommentPragmas: NOLINT:.*
6DerivePointerAlignment: false 6DerivePointerAlignment: false
7IndentWidth: 4 7IndentWidth: 4
8ContinuationIndentWidth: 8
8PointerAlignment: Left 9PointerAlignment: Left
9TabWidth: 4 10TabWidth: 4
10UseTab: Never 11UseTab: Never