This is an archive of the discontinued LLVM Phabricator instance.

[ASTImporter] Import member specialization/instantiation of enum decls
ClosedPublic

Authored by martong on Mar 26 2021, 9:29 AM.

Details

Summary

We do the import of the member enum specialization similarly to as we do
with member CXXRecordDecl specialization.

Diff Detail

Unit TestsFailed

Event Timeline

martong created this revision.Mar 26 2021, 9:29 AM
martong requested review of this revision.Mar 26 2021, 9:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 26 2021, 9:29 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
martong updated this revision to Diff 333570.Mar 26 2021, 9:31 AM
  • Rename test case name to something meaningful
balazske added inline comments.Mar 29 2021, 6:45 AM
clang/unittests/AST/ASTImporterTest.cpp
6239
martong updated this revision to Diff 333858.Mar 29 2021, 7:04 AM
martong marked an inline comment as done.
  • Fix typo
clang/unittests/AST/ASTImporterTest.cpp
6239

Thanks, I fixed the typo now.

shafik accepted this revision.Mar 29 2021, 1:36 PM

LGTM

clang/unittests/AST/ASTImporterTest.cpp
6256

Is it worth also verifying the TemplateSpecializationKind?

This revision is now accepted and ready to land.Mar 29 2021, 1:36 PM
martong updated this revision to Diff 334086.Mar 30 2021, 2:20 AM
  • Add check for specialization kind

Thanks for the review guys! :)