[PATCH 2/3] Reenable ForEachMacros in .clang-format

K. "pestophagous" Heller pestophagous at gmail.com
Sat Oct 17 17:05:35 PDT 2015


The use of ForEachMacros is working as expected when
used with clang-format version 3.5.0-10.

Also add ConstructorInitializerIndentWidth: 8, which
slightly helps with ctor style, but still does not
enforce the full subsurface ctor guidelines.

Signed-off-by: K. Heller <pestophagous at gmail.com>
---
 .clang-format | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.clang-format b/.clang-format
index c441d9e..81c4278 100644
--- a/.clang-format
+++ b/.clang-format
@@ -8,8 +8,9 @@ BreakBeforeTernaryOperators: false
 BreakConstructorInitializersBeforeComma: false
 ColumnLimit: 0
 ConstructorInitializerAllOnOneLineOrOnePerLine: true
+ConstructorInitializerIndentWidth: 8
 ContinuationIndentWidth: 8
-# ForEachMacros doesn't work, yet -> ForEachMacros: "Q_FOREACH"
+ForEachMacros: [ 'foreach', 'for_each_dc', 'for_each_dive', 'for_each_line', 'Q_FOREACH', 'BOOST_FOREACH' ]
 IndentFunctionDeclarationAfterType: false #personal taste, good for long methods
 IndentWidth: 8
 MaxEmptyLinesToKeep: 2
-- 
2.5.0



More information about the subsurface mailing list