Skip to content

Commit e80e59c

Browse files
committed
[IDE] Add some FIXMEs
1 parent 3b97fed commit e80e59c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lib/IDE/Formatting.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,9 @@ class FormatWalker : public ASTWalker {
14051405
return Action::SkipNode();
14061406
}
14071407

1408+
// FIXME: We ought to be able to use Action::VisitChildrenIf here, but we'd
1409+
// need to ensure the AST is walked in source order (currently not the case
1410+
// for things like postfix operators).
14081411
return Action::VisitNodeIf(Action.shouldVisitChildren());
14091412
}
14101413

@@ -1414,6 +1417,9 @@ class FormatWalker : public ASTWalker {
14141417
if (auto IndentCtx = getIndentContextFrom(S, Action.Trailing))
14151418
InnermostCtx = IndentCtx;
14161419
}
1420+
// FIXME: We ought to be able to use Action::VisitChildrenIf here, but we'd
1421+
// need to ensure the AST is walked in source order (currently not the case
1422+
// for things like postfix operators).
14171423
return Action::VisitNodeIf(Action.shouldVisitChildren(), S);
14181424
}
14191425

@@ -1433,6 +1439,9 @@ class FormatWalker : public ASTWalker {
14331439
if (auto Ctx = getIndentContextFrom(Args, Action.Trailing, ContextLoc))
14341440
InnermostCtx = Ctx;
14351441
}
1442+
// FIXME: We ought to be able to use Action::VisitChildrenIf here, but we'd
1443+
// need to ensure the AST is walked in source order (currently not the case
1444+
// for things like postfix operators).
14361445
return Action::VisitNodeIf(Action.shouldVisitChildren(), Args);
14371446
}
14381447

@@ -1506,6 +1515,9 @@ class FormatWalker : public ASTWalker {
15061515
}
15071516
}
15081517

1518+
// FIXME: We ought to be able to use Action::VisitChildrenIf here, but we'd
1519+
// need to ensure the AST is walked in source order (currently not the case
1520+
// for things like postfix operators).
15091521
return Action::VisitNodeIf(Action.shouldVisitChildren(), E);
15101522
}
15111523

@@ -1515,6 +1527,9 @@ class FormatWalker : public ASTWalker {
15151527
if (auto IndentCtx = getIndentContextFrom(P, Action.Trailing))
15161528
InnermostCtx = IndentCtx;
15171529
}
1530+
// FIXME: We ought to be able to use Action::VisitChildrenIf here, but we'd
1531+
// need to ensure the AST is walked in source order (currently not the case
1532+
// for things like postfix operators).
15181533
return Action::VisitNodeIf(Action.shouldVisitChildren(), P);
15191534
}
15201535

@@ -1524,6 +1539,9 @@ class FormatWalker : public ASTWalker {
15241539
if (auto IndentCtx = getIndentContextFrom(T, Action.Trailing))
15251540
InnermostCtx = IndentCtx;
15261541
}
1542+
// FIXME: We ought to be able to use Action::VisitChildrenIf here, but we'd
1543+
// need to ensure the AST is walked in source order (currently not the case
1544+
// for things like postfix operators).
15271545
return Action::VisitNodeIf(Action.shouldVisitChildren());
15281546
}
15291547

0 commit comments

Comments
 (0)