martong added inline comments.
Comment at: clang/lib/AST/ASTImporter.cpp:3336
+if (Fun->getExplicitSpecifier().getExpr()) {
+ ExplicitExpr = importChecked(Err, Fun->getExplicitSpecifier().getExpr());
+ if (Err)
rnk wrote:
> GCC 5.3 complained about
rnk added inline comments.
Comment at: clang/lib/AST/ASTImporter.cpp:3336
+if (Fun->getExplicitSpecifier().getExpr()) {
+ ExplicitExpr = importChecked(Err, Fun->getExplicitSpecifier().getExpr());
+ if (Err)
GCC 5.3 complained about this, so I rewrot
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG70eb2ce395be: [ASTImporter] Support import of
CXXDeductionGuideDecl (authored by martong).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST
martong added inline comments.
Comment at: clang/unittests/AST/ASTImporterTest.cpp:5900
+ ASSERT_TRUE(ToD);
+ EXPECT_EQ(FromD->isCopyDeductionCandidate(),
ToD->isCopyDeductionCandidate());
+ // Check that the deduced class template is also imported.
teemperor
martong updated this revision to Diff 307988.
martong marked 2 inline comments as done.
martong added a comment.
- Update test to match the copy deduction guide
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92109/new/
https://reviews.llvm.org/D9210
teemperor accepted this revision.
teemperor added a comment.
This revision is now accepted and ready to land.
I think the test could be made a bit stricter (see inline comment), but
otherwise this LGTM. Thanks!
Comment at: clang/unittests/AST/ASTImporterTest.cpp:5900
+ ASSERT
martong added a comment.
Thanks for the review! Your comment made me think about whether we handle the
deduced template class properly (`getDeducedTemplate`). Then I realized we do
import that when we import the `DeclarationName`. Anyway I added a check for
that in the test.
Repository:
rG
martong updated this revision to Diff 307848.
martong added a comment.
- Add test for user-defined ctad
- Handle IsCopyDeductionCandidate
- Fix typo
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92109/new/
https://reviews.llvm.org/D92109
Files:
teemperor requested changes to this revision.
teemperor added a comment.
This revision now requires changes to proceed.
You think it's worth it to have a test for a user-specified deduction guide? I
think this is missing an 'explicit' deduction guide test, so maybe we could
test both things in a
martong created this revision.
martong added reviewers: teemperor, shafik, balazske.
Herald added subscribers: cfe-commits, gamesh411, Szelethus, dkrupp, rnkovacs.
Herald added a reviewer: a.sidorin.
Herald added a project: clang.
martong requested review of this revision.
CXXDeductionGuideDecl is
10 matches
Mail list logo