Skip to content

Commit 2ef9526

Browse files
[gardening] Use the preferred form "#ifdef 0" instead of "/*".
1 parent 3334a82 commit 2ef9526

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/IDE/Formatting.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,18 +550,19 @@ class FormatWalker : public SourceEntityWalker {
550550
// FIXME: We are going to revisit the behavior and the indentation we
551551
// want for dictionary/array literals.
552552
//
553-
/* SourceLoc LBracketLoc = AE->getLBracketLoc();
553+
#ifdef 0
554+
SourceLoc LBracketLoc = AE->getLBracketLoc();
554555
if (isTargetImmediateAfter(LBracketLoc) &&
555556
!sameLineWithTarget(LBracketLoc)) {
556557
FoundSibling = LBracketLoc;
557558
NeedExtraIndentation = true;
558-
}*/
559+
}
560+
#endif
559561
for (unsigned I = 0, N = AE->getNumElements(); I < N; I++) {
560562
addPair(AE->getElement(I)->getEndLoc(),
561563
FindAlignLoc(AE->getElement(I)->getStartLoc()), tok::comma);
562564
}
563565
}
564-
565566
// Case label items in a case statement are siblings.
566567
if (auto CS = dyn_cast_or_null<CaseStmt>(Node.dyn_cast<Stmt *>())) {
567568
for (const CaseLabelItem& Item : CS->getCaseLabelItems()) {

0 commit comments

Comments
 (0)