[PATCH] D53475: Create ConstantExpr class

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 20 15:50:13 PDT 2018


rsmith added a comment.

Looks fine as far as it goes, but we're going to need to change all the places that skip past ExprWithCleanups to also step over this node. Since both nodes represent the boundary of a particular kind of full-expression, it'd make sense to me for them to at least have a common base class for such "skipping" purposes.



================
Comment at: lib/AST/StmtProfile.cpp:1001
+  VisitExpr(S);
+  VisitExpr(S->getSubExpr());
+}
----------------
This is unnecessary: this visitor visits the children of the node for you.


Repository:
  rC Clang

https://reviews.llvm.org/D53475





More information about the cfe-commits mailing list