This revision was automatically updated to reflect the committed changes.
Closed by commit rC322091: [ASTImporter] Support importing
CXXUnresolvedConstructExpr and… (authored by a.sidorin, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D38694?vs=127283=129095#toc
a.sidorin updated this revision to Diff 127283.
a.sidorin added a comment.
Fixed sanity check.
Repository:
rC Clang
https://reviews.llvm.org/D38694
Files:
lib/AST/ASTImporter.cpp
unittests/AST/ASTImporterTest.cpp
Index: unittests/AST/ASTImporterTest.cpp
a.sidorin added inline comments.
Comment at: lib/AST/ASTImporter.cpp:5877
+ DeclarationName Name = Importer.Import(E->getName());
+ if (E->getName().isEmpty() && Name.isEmpty())
+return nullptr;
xazax.hun wrote:
> Is this condition correct?
Looks like it
xazax.hun added inline comments.
Comment at: lib/AST/ASTImporter.cpp:5877
+ DeclarationName Name = Importer.Import(E->getName());
+ if (E->getName().isEmpty() && Name.isEmpty())
+return nullptr;
Is this condition correct?
https://reviews.llvm.org/D38694
szepet updated this revision to Diff 124123.
szepet added a comment.
Updating the usage of `ImportTemplateArgumentListInfo`.
https://reviews.llvm.org/D38694
Files:
lib/AST/ASTImporter.cpp
unittests/AST/ASTImporterTest.cpp
Index: unittests/AST/ASTImporterTest.cpp
szepet added a comment.
Hello Aleksei,
Thank you for the review! (and sorry for the late update)
Comment at: lib/AST/ASTImporter.cpp:5510
+ UnresolvedSet<8> ToDecls;
+ for (Decl *D : E->decls()) {
+if (NamedDecl *To = cast_or_null(Importer.Import(D)))
szepet updated this revision to Diff 124115.
szepet marked 7 inline comments as done.
szepet added a comment.
Herald added a subscriber: rnkovacs.
Updates based on review comments.
https://reviews.llvm.org/D38694
Files:
lib/AST/ASTImporter.cpp
unittests/AST/ASTImporterTest.cpp
Index:
a.sidorin added a comment.
Hi Peter,
Thank you for the patch. You can find some comments inline.
Comment at: lib/AST/ASTImporter.cpp:5476
+
+ for (unsigned ai = 0, ae = NumArgs; ai != ae; ++ai) {
+Expr *FromArg = CE->getArg(ai);
xazax.hun wrote:
> Use
xazax.hun added inline comments.
Comment at: lib/AST/ASTImporter.cpp:5476
+
+ for (unsigned ai = 0, ae = NumArgs; ai != ae; ++ai) {
+Expr *FromArg = CE->getArg(ai);
Use uppercase variable names.
Comment at: lib/AST/ASTImporter.cpp:5477
+
szepet created this revision.
This patch adds support for importing two different kind of C++ AST Node.
Note: This solution is based on
https://github.com/haoNoQ/clang/blob/summary-ipa-draft/lib/AST/ASTImporter.cpp#L7605
.
https://reviews.llvm.org/D38694
Files:
lib/AST/ASTImporter.cpp
10 matches
Mail list logo