On 7 December 2016 at 17:56, Richard Smith <rich...@metafoo.co.uk> wrote: > On 7 Dec 2016 9:49 am, "Malcolm Parsons via cfe-commits" > <cfe-commits@lists.llvm.org> wrote: > > Author: malcolm.parsons > Date: Wed Dec 7 11:39:04 2016 > New Revision: 288923 > > URL: http://llvm.org/viewvc/llvm-project?rev=288923&view=rev > Log: > [RecursiveASTVisitor] Fix post-order traversal of UnaryOperator > > Reviewers: aaron.ballman, klimek, doug.gregor, teemperor, rsmith > > Subscribers: cfe-commits > > Differential Revision: https://reviews.llvm.org/D26742 > > @@ -87,7 +92,7 @@ TEST(RecursiveASTVisitor, PostOrderTrave > Visitor.TraverseTranslationUnitDecl(TU); > > std::vector<std::string> expected = { > - "4", "9", "i", "1", "3", "+", "2", "+", "return", "A::B::foo", "A::B", > "A" > + "4", "9", "i", "-",
> Why does "i" not show up here twice? Do we not include DeclRefExprs in this > list? It looks like we're not testing the relative order of the unary > operator and its operand here. The test doesn't define VisitDeclRefExpr. I can add it if you like. -- Malcolm Parsons _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits