This is an archive of the discontinued LLVM Phabricator instance.

[ASTImporter] Add support for BuiltinTemplateDecl
ClosedPublic

Authored by teemperor on Oct 29 2019, 7:54 AM.

Details

Summary

That decl kind is currently not implemented. BuiltinTemplateDecl is for decls that are hardcoded in the
ASTContext, so we can import them like we do other builtin decls by just taking the equivalent
decl from the target ASTContext.

Diff Detail

Event Timeline

teemperor created this revision.Oct 29 2019, 7:54 AM
Herald added a project: Restricted Project. · View Herald Transcript
martong accepted this revision.Oct 29 2019, 9:23 AM

LGTM! Thanks!

clang/lib/AST/ASTImporter.cpp
4479

Nit: perhaps llvm_unreachable is more appropriate here.

This revision is now accepted and ready to land.Oct 29 2019, 9:23 AM
shafik accepted this revision.Oct 29 2019, 10:00 AM
This revision was automatically updated to reflect the committed changes.