]> granicus.if.org Git - clang/commit
[ASTImporter] Use InjectedClassNameType at import of templated record.
authorGabor Marton <martongabesz@gmail.com>
Tue, 26 Jun 2018 13:44:24 +0000 (13:44 +0000)
committerGabor Marton <martongabesz@gmail.com>
Tue, 26 Jun 2018 13:44:24 +0000 (13:44 +0000)
commit109df809f086d717e89b81cad4458f7055e8f10b
treeec0039996353b50d04304bd51bbef72e47aafca8
parenta8fca7b41c7c42dcbceb46f1a0fb70cd9dbd016f
[ASTImporter] Use InjectedClassNameType at import of templated record.

Summary:
At import of a record describing a template set its type to
InjectedClassNameType (instead of RecordType).

Reviewers: a.sidorin, martong, r.stahl

Reviewed By: a.sidorin, martong, r.stahl

Subscribers: a_sidorin, rnkovacs, martong, cfe-commits

Differential Revision: https://reviews.llvm.org/D47450

Patch by Balazs Keri!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335600 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTImporter.cpp
test/ASTMerge/injected-class-name-decl/Inputs/inject1.cpp [new file with mode: 0644]
test/ASTMerge/injected-class-name-decl/Inputs/inject2.cpp [new file with mode: 0644]
test/ASTMerge/injected-class-name-decl/test.cpp [new file with mode: 0644]