This is an archive of the discontinued LLVM Phabricator instance.

[Utils] Support class template specializations in update_cc_test_checks
ClosedPublic

Authored by jrtc27 on Jul 18 2021, 11:56 AM.

Details

Summary

ClassTemplateSpecializationDecl not within a ClassTemplateDecl
represents an explicit instatiation of a template and so should be
handled as if it were a normal CXXRecordDecl. Unfortunately, having an
equivalent for FunctionTemplateDecl remains a TODO in ASTDumper's
VisitFunctionTemplateDecl, with all the explicit instantiations just
being emitted inside the FunctionTemplateDecl along with all the other
specializations, meaning we can't easily support explicit function
instantiations in update_cc_test_checks.

Diff Detail

Event Timeline

jrtc27 requested review of this revision.Jul 18 2021, 11:56 AM
jrtc27 created this revision.
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 18 2021, 11:56 AM
jrtc27 updated this revision to Diff 359643.Jul 18 2021, 12:10 PM

Drop the --llvm-bin test; only basic-cplusplus.test does that (which happened to be the one I used as a reference), and that only needs to be done for one file as it has no relation to the input.

This revision is now accepted and ready to land.Jul 18 2021, 2:15 PM
This revision was landed with ongoing or failed builds.Jul 28 2021, 8:03 AM
This revision was automatically updated to reflect the committed changes.