@@ -1405,6 +1405,9 @@ class FormatWalker : public ASTWalker {
1405
1405
return Action::SkipNode ();
1406
1406
}
1407
1407
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).
1408
1411
return Action::VisitNodeIf (Action.shouldVisitChildren ());
1409
1412
}
1410
1413
@@ -1414,6 +1417,9 @@ class FormatWalker : public ASTWalker {
1414
1417
if (auto IndentCtx = getIndentContextFrom (S, Action.Trailing ))
1415
1418
InnermostCtx = IndentCtx;
1416
1419
}
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).
1417
1423
return Action::VisitNodeIf (Action.shouldVisitChildren (), S);
1418
1424
}
1419
1425
@@ -1433,6 +1439,9 @@ class FormatWalker : public ASTWalker {
1433
1439
if (auto Ctx = getIndentContextFrom (Args, Action.Trailing , ContextLoc))
1434
1440
InnermostCtx = Ctx;
1435
1441
}
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).
1436
1445
return Action::VisitNodeIf (Action.shouldVisitChildren (), Args);
1437
1446
}
1438
1447
@@ -1506,6 +1515,9 @@ class FormatWalker : public ASTWalker {
1506
1515
}
1507
1516
}
1508
1517
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).
1509
1521
return Action::VisitNodeIf (Action.shouldVisitChildren (), E);
1510
1522
}
1511
1523
@@ -1515,6 +1527,9 @@ class FormatWalker : public ASTWalker {
1515
1527
if (auto IndentCtx = getIndentContextFrom (P, Action.Trailing ))
1516
1528
InnermostCtx = IndentCtx;
1517
1529
}
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).
1518
1533
return Action::VisitNodeIf (Action.shouldVisitChildren (), P);
1519
1534
}
1520
1535
@@ -1524,6 +1539,9 @@ class FormatWalker : public ASTWalker {
1524
1539
if (auto IndentCtx = getIndentContextFrom (T, Action.Trailing ))
1525
1540
InnermostCtx = IndentCtx;
1526
1541
}
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).
1527
1545
return Action::VisitNodeIf (Action.shouldVisitChildren ());
1528
1546
}
1529
1547
0 commit comments