Lines Matching defs:ASTImporter

1 //===- ASTImporter.cpp - Importing ASTs from other Contexts ---------------===//
9 // This file defines the ASTImporter class which imports AST nodes from one
14 #include "clang/AST/ASTImporter.h"
181 ASTImporter &Importer;
198 // Call the import function of ASTImporter for a baseclass of type `T` and
215 // Call the import function of ASTImporter for type `T`.
363 explicit ASTNodeImporter(ASTImporter &Importer) : Importer(Importer) {}
2028 // FIXME Clients of the ASTImporter should be able to choose an
2085 // call ASTImporter::Import(). This is because the ExternalASTSource
2086 // interface in LLDB is implemented by the means of the ASTImporter. However,
2200 ASTImporter &Importer) {
2425 getStructuralEquivalenceKind(const ASTImporter &Importer) {
4124 ASTImporter::getFieldIndex(D) !=
4125 ASTImporter::getFieldIndex(FoundField))
4228 ASTImporter::getFieldIndex(D) !=
4229 ASTImporter::getFieldIndex(FoundField))
4289 static bool IsEquivalentFriend(ASTImporter &Importer, FriendDecl *FD1,
4298 ASTImporter::NonEquivalentDeclSet NonEquivalentDecls;
4306 static FriendCountAndPosition getFriendCountAndPosition(ASTImporter &Importer,
6033 // The ASTImporter strategy is to map existing forward declarations to
8961 ASTImporter::ASTImporter(ASTContext &ToContext, FileManager &ToFileManager,
8978 ASTImporter::~ASTImporter() = default;
8980 std::optional<unsigned> ASTImporter::getFieldIndex(Decl *F) {
9002 ASTImporter::FoundDeclsTy
9003 ASTImporter::findDeclsInToCtx(DeclContext *DC, DeclarationName Name) {
9035 void ASTImporter::AddToLookupTable(Decl *ToD) {
9039 Expected<Decl *> ASTImporter::ImportImpl(Decl *FromD) {
9045 void ASTImporter::RegisterImportedDecl(Decl *FromD, Decl *ToD) {
9050 ASTImporter::Import(ExprWithCleanups::CleanupObject From) {
9061 ExpectedTypePtr ASTImporter::Import(const Type *FromT) {
9083 Expected<QualType> ASTImporter::Import(QualType FromT) {
9094 Expected<TypeSourceInfo *> ASTImporter::Import(TypeSourceInfo *FromTSI) {
9158 ASTImporter &Importer;
9162 AttrImporter(ASTImporter &I) : Importer(I), NImporter(I) {}
9247 Expected<Attr *> ASTImporter::Import(const Attr *FromAttr) {
9393 Decl *ASTImporter::GetAlreadyImportedOrNull(const Decl *FromD) const {
9397 TranslationUnitDecl *ASTImporter::GetFromTU(Decl *ToD) {
9404 Error ASTImporter::ImportAttrs(Decl *ToD, Decl *FromD) {
9417 Expected<Decl *> ASTImporter::Import(Decl *FromD) {
9543 // ASTImporter object) and with an error.
9562 ASTImporter::Import(const InheritedConstructor &From) {
9566 Expected<DeclContext *> ASTImporter::ImportContext(DeclContext *FromDC) {
9633 Expected<Expr *> ASTImporter::Import(Expr *FromE) {
9640 Expected<Stmt *> ASTImporter::Import(Stmt *FromS) {
9670 ASTImporter::Import(NestedNameSpecifier *FromNNS) {
9724 ASTImporter::Import(NestedNameSpecifierLoc FromNNS) {
9809 Expected<TemplateName> ASTImporter::Import(TemplateName From) {
9909 Expected<SourceLocation> ASTImporter::Import(SourceLocation FromLoc) {
9924 Expected<SourceRange> ASTImporter::Import(SourceRange FromRange) {
9934 Expected<FileID> ASTImporter::Import(FileID FromID, bool IsBuiltin) {
10021 Expected<CXXCtorInitializer *> ASTImporter::Import(CXXCtorInitializer *From) {
10086 ASTImporter::Import(const CXXBaseSpecifier *BaseSpec) {
10107 llvm::Expected<APValue> ASTImporter::Import(const APValue &FromValue) {
10112 Error ASTImporter::ImportDefinition(Decl *From) {
10155 Expected<DeclarationName> ASTImporter::Import(DeclarationName FromName) {
10219 IdentifierInfo *ASTImporter::Import(const IdentifierInfo *FromId) {
10231 Expected<Selector> ASTImporter::Import(Selector FromSel) {
10403 Expected<DeclarationName> ASTImporter::HandleNameConflict(DeclarationName Name,
10416 DiagnosticBuilder ASTImporter::ToDiag(SourceLocation Loc, unsigned DiagID) {
10424 DiagnosticBuilder ASTImporter::FromDiag(SourceLocation Loc, unsigned DiagID) {
10432 void ASTImporter::CompleteDecl (Decl *D) {
10452 Decl *ASTImporter::MapImported(Decl *From, Decl *To) {
10471 ASTImporter::getImportDeclErrorIfAny(Decl *FromD) const {
10479 void ASTImporter::setImportDeclError(Decl *From, ASTImportError Error) {
10487 bool ASTImporter::IsStructurallyEquivalent(QualType From, QualType To,