[ASTImporter] Refactor ASTImporter to support custom downstream tests
authorVince Bridgers <vince.a.bridgers@gmail.com>
Thu, 16 Jul 2020 17:55:32 +0000 (12:55 -0500)
committereinvbri <vince.a.bridgers@ericsson.com>
Tue, 21 Jul 2020 15:34:17 +0000 (10:34 -0500)
commit20157410862d376c624cc24bffd9730290a16142
tree666fe943f6a988ffbbb8b90152575ee44b087954
parent8c6d48baf67bcd4e351ab32ef2fc801523db05db
[ASTImporter] Refactor ASTImporter to support custom downstream tests

Summary:
The purpose of this change is to do a small refactoring of code in
ASTImporterTest.cpp by moving it to ASTImporterFixtures.h in order to
support tests of downstream custom types and minimize the "living
downstream burden" of frequent integrations from community to a
downstream repo that implements custom AST import tests.

Reviewers: martong, a.sidorin, shafik

Reviewed By: martong

Subscribers: balazske, dkrupp, bjope, rnkovacs, teemperor, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D83970
clang/unittests/AST/ASTImporterFixtures.h
clang/unittests/AST/ASTImporterTest.cpp