[ASTImporter] Propagate errors during import of overridden methods.
authorBalazs Keri <1.int32@gmail.com>
Fri, 30 Aug 2019 10:12:14 +0000 (10:12 +0000)
committerBalazs Keri <1.int32@gmail.com>
Fri, 30 Aug 2019 10:12:14 +0000 (10:12 +0000)
commitb4fd7d4258589c52539043c0806fd2a143a2c15d
tree381c5c7fcafd34139954f6e7e7ea19776f07a794
parent6381b143f6cc3607a1a96442aa06dc469ea1fc79
[ASTImporter] Propagate errors during import of overridden methods.

Summary:
If importing overridden methods fails for a method it can be seen
incorrectly as non-virtual. To avoid this inconsistency the method
is marked with import error to avoid later use of it.

Reviewers: martong, a.sidorin, shafik, a_sidorin

Reviewed By: martong, shafik

Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits

Tags: #clang

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

llvm-svn: 370457
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp