#include "ASTImporterFixtures.h"
#include "clang/AST/ASTImporter.h"
#include "clang/AST/ASTImporterSharedState.h"
#include "clang/Frontend/ASTUnit.h"
#include "clang/Tooling/Tooling.h"
namespace clang {
namespace ast_matchers {
void createVirtualFileIfNeeded(ASTUnit *ToAST, StringRef FileName,
std::unique_ptr<llvm::MemoryBuffer> &&Buffer) { … }
void createVirtualFileIfNeeded(ASTUnit *ToAST, StringRef FileName,
StringRef Code) { … }
ASTImporterTestBase::TU::TU(StringRef Code, StringRef FileName,
std::vector<std::string> Args,
ImporterConstructor C,
ASTImporter::ODRHandlingType ODRHandling)
: … { … }
ASTImporterTestBase::TU::~TU() { … }
void ASTImporterTestBase::TU::lazyInitImporter(
const std::shared_ptr<ASTImporterSharedState> &SharedState,
ASTUnit *ToAST) { … }
Decl *ASTImporterTestBase::TU::import(
const std::shared_ptr<ASTImporterSharedState> &SharedState, ASTUnit *ToAST,
Decl *FromDecl) { … }
llvm::Expected<Decl *> ASTImporterTestBase::TU::importOrError(
const std::shared_ptr<ASTImporterSharedState> &SharedState, ASTUnit *ToAST,
Decl *FromDecl) { … }
QualType ASTImporterTestBase::TU::import(
const std::shared_ptr<ASTImporterSharedState> &SharedState, ASTUnit *ToAST,
QualType FromType) { … }
void ASTImporterTestBase::lazyInitSharedState(TranslationUnitDecl *ToTU) { … }
void ASTImporterTestBase::lazyInitToAST(TestLanguage ToLang,
StringRef ToSrcCode,
StringRef FileName) { … }
ASTImporterTestBase::TU *ASTImporterTestBase::findFromTU(Decl *From) { … }
std::tuple<Decl *, Decl *> ASTImporterTestBase::getImportedDecl(
StringRef FromSrcCode, TestLanguage FromLang, StringRef ToSrcCode,
TestLanguage ToLang, StringRef Identifier) { … }
TranslationUnitDecl *ASTImporterTestBase::getTuDecl(StringRef SrcCode,
TestLanguage Lang,
StringRef FileName) { … }
TranslationUnitDecl *ASTImporterTestBase::getToTuDecl(StringRef ToSrcCode,
TestLanguage ToLang) { … }
Decl *ASTImporterTestBase::Import(Decl *From, TestLanguage ToLang) { … }
llvm::Expected<Decl *> ASTImporterTestBase::importOrError(Decl *From,
TestLanguage ToLang) { … }
QualType ASTImporterTestBase::ImportType(QualType FromType, Decl *TUDecl,
TestLanguage ToLang) { … }
ASTImporterTestBase::~ASTImporterTestBase() { … }
}
}