This revision was automatically updated to reflect the committed changes.
Closed by commit rC331630: [ASTImporter] Support importing
UnresolvedMemberExpr, DependentNameType… (authored by szepet, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D38845?vs=145159=145447#toc
a.sidorin accepted this revision.
a.sidorin added a comment.
This revision is now accepted and ready to land.
LGTM!
https://reviews.llvm.org/D38845
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
szepet updated this revision to Diff 145159.
szepet added a comment.
Format changes added based on comments.
https://reviews.llvm.org/D38845
Files:
lib/AST/ASTImporter.cpp
unittests/AST/ASTImporterTest.cpp
Index: unittests/AST/ASTImporterTest.cpp
a.sidorin added a comment.
Hello Peter! This looks almost OK, just some minor formatting issues.
Comment at: unittests/AST/ASTImporterTest.cpp:1509
+ MatchVerifier Verifier;
+ testImport("template struct S {static T foo;};"
+ "template void declToImport()
martong added inline comments.
Comment at: unittests/AST/ASTImporterTest.cpp:1532
+dependentNameType;
+TEST(ImportExpr, DependentNameType) {
+ MatchVerifier Verifier;
Perhaps a newline before would make it more independent from the Matcher, as
you did it
martong accepted this revision.
martong added a comment.
LGTM!
Comment at: unittests/AST/ASTImporterTest.cpp:1505
::testing::Values(ArgVector(), ArgVector{"-fdelayed-template-parsing"}),);
+const internal::VariadicDynCastAllOfMatcher
+
szepet updated this revision to Diff 144842.
szepet marked an inline comment as done.
szepet added a comment.
Yepp, good point, Aleksei, rewritten the tests using explicit instantiation.
https://reviews.llvm.org/D38845
Files:
lib/AST/ASTImporter.cpp
unittests/AST/ASTImporterTest.cpp
a.sidorin requested changes to this revision.
a.sidorin added inline comments.
This revision now requires changes to proceed.
Comment at: unittests/AST/ASTImporterTest.cpp:1569
+FirstDeclMatcher().match(*TB, Pattern);
+if (!FromDSDRE)
+ return;
szepet marked an inline comment as done.
szepet added inline comments.
Comment at: unittests/AST/ASTImporterTest.cpp:1569
+FirstDeclMatcher().match(*TB, Pattern);
+if (!FromDSDRE)
+ return;
martong wrote:
> I think, this `if` would be needed
martong added inline comments.
Comment at: unittests/AST/ASTImporterTest.cpp:1556
+ // Converting code texts into TUs
+ std::transform(Codes.begin(), Codes.end(), std::back_inserter(FromTUs),
+ [this](StringRef Code) {
Instead of having 4
szepet updated this revision to Diff 143925.
szepet added a comment.
Rewritten the tests using the newly added TEST_P method.
This patch failed earlier when -fdelayed-template-parsing flag was enabled,
however, the actual import process was OK but the original AST havent included
the checked
szepet marked an inline comment as done.
szepet added a comment.
Hello Aleksei,
Thanks for carrying the ASTImporter improvements (in general)! I will rebase it
and upload for sure, but probably just next week. (After EuroLLVM.)
https://reviews.llvm.org/D38845
a.sidorin added a comment.
Herald added a subscriber: martong.
Hi Peter,
The changes needed for rebase are too large - they contain both fixes for
compilation failures and fixes for test errors. Could you please upgrade the
patch?
https://reviews.llvm.org/D38845
xazax.hun added a comment.
This should be rebased to latest master.
https://reviews.llvm.org/D38845
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
a.sidorin added a comment.
Hello Peter. Please set the dependencies for the patch - it cannot be applied
clearly and even if I add ImportTemplateArgumentListInfo, tests still fail -
looks like FunctionTemplateDecl patch should be applied first.
https://reviews.llvm.org/D38845
szepet marked an inline comment as done.
szepet added inline comments.
Comment at: unittests/AST/ASTImporterTest.cpp:611
+ EXPECT_TRUE(testImport("template struct S;"
+ "template void declToImport() {"
+ " S::foo;"
a.sidorin accepted this revision.
a.sidorin added a comment.
This revision is now accepted and ready to land.
Hello Peter,
This looks good to me. But could you please check if test works if we add
`-fms-compatibility` and `-fdelayed-template-parsing` to `Args`?
Comment at:
szepet updated this revision to Diff 124119.
szepet marked 6 inline comments as done.
szepet added a comment.
Herald added a subscriber: rnkovacs.
Updated based on review comments.
Hello Aleksei,
Thank for the review and the code snippet as well!
https://reviews.llvm.org/D38845
Files:
a.sidorin added a comment.
Hello Peter,
Looks mostly good, but there are some minor comments.
Comment at: lib/AST/ASTImporter.cpp:5500
+
+ TemplateArgumentListInfo ToTAInfo;
+ TemplateArgumentListInfo *ResInfo = nullptr;
xazax.hun wrote:
> szepet wrote:
> >
xazax.hun added inline comments.
Comment at: lib/AST/ASTImporter.cpp:5500
+
+ TemplateArgumentListInfo ToTAInfo;
+ TemplateArgumentListInfo *ResInfo = nullptr;
szepet wrote:
> xazax.hun wrote:
> > According to phabricator this code is very similar to a snippet
szepet added inline comments.
Comment at: lib/AST/ASTImporter.cpp:5500
+
+ TemplateArgumentListInfo ToTAInfo;
+ TemplateArgumentListInfo *ResInfo = nullptr;
xazax.hun wrote:
> According to phabricator this code is very similar to a snippet starting from
>
xazax.hun added inline comments.
Comment at: lib/AST/ASTImporter.cpp:5500
+
+ TemplateArgumentListInfo ToTAInfo;
+ TemplateArgumentListInfo *ResInfo = nullptr;
According to phabricator this code is very similar to a snippet starting from
line 4524 and some
szepet created this revision.
The visit callback implementations for the 3 C++ AST Node added to the
ASTImporter.
Note: Based on:
https://github.com/haoNoQ/clang/blob/summary-ipa-draft/lib/AST/ASTImporter.cpp
https://reviews.llvm.org/D38845
Files:
lib/AST/ASTImporter.cpp
23 matches
Mail list logo