Skip to content

Commit

Permalink
Reenable ForEachMacros in .clang-format
Browse files Browse the repository at this point in the history
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@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
  • Loading branch information
pestophagous authored and dirkhh committed Oct 19, 2015
1 parent 9710b2a commit efaf697
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .clang-format
Expand Up @@ -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
Expand Down

0 comments on commit efaf697

Please sign in to comment.