[ASTImporter] Add support for BuiltinTemplateDecl
authorRaphael Isemann <teemperor@gmail.com>
Wed, 30 Oct 2019 13:50:35 +0000 (14:50 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 30 Oct 2019 13:53:35 +0000 (14:53 +0100)
commitba7bde65dcfff543cefc1de9adcda7f503ffffde
treeac185817e0abbd9585596a375b099aa117d18d4d
parent43144ffa91a2c250cab453b6abd2d1913db3e4d4
[ASTImporter] Add support for BuiltinTemplateDecl

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.

Reviewers: martong, a.sidorin, shafik

Reviewed By: martong, shafik

Subscribers: rnkovacs, kristina, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D69566
clang/lib/AST/ASTImporter.cpp
clang/test/Import/builtin-template/Inputs/S.cpp [new file with mode: 0644]
clang/test/Import/builtin-template/test.cpp [new file with mode: 0644]