[PATCH] D14326: ASTImporter: expressions, pt.2

Aleksei Sidorin via cfe-commits cfe-commits at lists.llvm.org
Tue May 10 03:31:05 PDT 2016


a.sidorin marked 7 inline comments as done.

================
Comment at: lib/AST/ASTImporter.cpp:5859
@@ +5858,3 @@
+  Expr *ToQueried = Importer.Import(E->getQueriedExpression());
+  if (!ToQueried)
+    return nullptr;
----------------
I usually prefer allocation with required size at the start and avoid push_back() because it may lead to reallocations.

================
Comment at: lib/AST/ASTImporter.cpp:6002
@@ +6001,3 @@
+  }
+
+  CXXNamedCastExpr *Named = cast<CXXNamedCastExpr>(E);
----------------
Hm, that's may be true, but I'm not sure. Added a FIXME.


http://reviews.llvm.org/D14326





More information about the cfe-commits mailing list