]> granicus.if.org Git - clang/commit
[ASTImporter] Import implicit methods of existing class.
authorBalazs Keri <1.int32@gmail.com>
Mon, 16 Jul 2018 12:16:39 +0000 (12:16 +0000)
committerBalazs Keri <1.int32@gmail.com>
Mon, 16 Jul 2018 12:16:39 +0000 (12:16 +0000)
commit90809faeea5a4cf6c25dcff6a55a74248a7cac83
tree92c4ece59bbb9cfe81839e4ecc24f769b785f8d4
parentfd9658b9daae8d49632f151dce9354765ea2b190
[ASTImporter] Import implicit methods of existing class.

Summary:
When an already existing class is encountered during import,
check if it has implicit methods that are missing in the existing one,
and import these.
The to-be-imported code may use the same class in different way than the
existing (before the import) code. This may result in that there are
implicit methods that are not generated for the existing code.

Reviewers: a.sidorin, a_sidorin

Reviewed By: a_sidorin

Subscribers: a_sidorin, martong, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337162 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTImporter.cpp
unittests/AST/ASTImporterTest.cpp