Skip to content

Commit f7257c2

Browse files
committed
Merge pull request #1017 from mteper/patch-2
[AST] Formatting consistency in conditional compilation output
2 parents 1d61e31 + 5491505 commit f7257c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,14 +952,16 @@ namespace {
952952
OS.indent(Indent) << "(#if_decl\n";
953953
Indent += 2;
954954
for (auto &Clause : ICD->getClauses()) {
955-
OS.indent(Indent) << (Clause.Cond ? "(#if:\n" : "#else");
955+
OS.indent(Indent) << (Clause.Cond ? "(#if:\n" : "\n(#else:\n");
956956
if (Clause.Cond)
957957
printRec(Clause.Cond);
958958

959959
for (auto D : Clause.Members) {
960960
OS << '\n';
961961
printRec(D);
962962
}
963+
964+
OS << ')';
963965
}
964966

965967
Indent -= 2;

0 commit comments

Comments
 (0)