1 //===- ExternalASTSource.cpp - Abstract External AST Interface --*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // This file provides the default implementation of the ExternalASTSource 11 // interface, which enables construction of AST nodes from some external 12 // source. 13 // 14 //===----------------------------------------------------------------------===// 15 16 #include "clang/AST/ExternalASTSource.h" 17 #include "clang/AST/DeclarationName.h" 18 19 using namespace clang; 20 ~ExternalASTSource()21ExternalASTSource::~ExternalASTSource() { } 22 PrintStats()23void ExternalASTSource::PrintStats() { } 24 GetExternalDecl(uint32_t ID)25Decl *ExternalASTSource::GetExternalDecl(uint32_t ID) { 26 return 0; 27 } 28 GetExternalSelector(uint32_t ID)29Selector ExternalASTSource::GetExternalSelector(uint32_t ID) { 30 return Selector(); 31 } 32 GetNumExternalSelectors()33uint32_t ExternalASTSource::GetNumExternalSelectors() { 34 return 0; 35 } 36 GetExternalDeclStmt(uint64_t Offset)37Stmt *ExternalASTSource::GetExternalDeclStmt(uint64_t Offset) { 38 return 0; 39 } 40 41 CXXBaseSpecifier * GetExternalCXXBaseSpecifiers(uint64_t Offset)42ExternalASTSource::GetExternalCXXBaseSpecifiers(uint64_t Offset) { 43 return 0; 44 } 45 46 DeclContextLookupResult FindExternalVisibleDeclsByName(const DeclContext * DC,DeclarationName Name)47ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC, 48 DeclarationName Name) { 49 return DeclContext::lookup_result(); 50 } 51 completeVisibleDeclsMap(const DeclContext * DC)52void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) { 53 } 54 55 ExternalLoadResult FindExternalLexicalDecls(const DeclContext * DC,bool (* isKindWeWant)(Decl::Kind),SmallVectorImpl<Decl * > & Result)56ExternalASTSource::FindExternalLexicalDecls(const DeclContext *DC, 57 bool (*isKindWeWant)(Decl::Kind), 58 SmallVectorImpl<Decl*> &Result) { 59 return ELR_AlreadyLoaded; 60 } 61 getMemoryBufferSizes(MemoryBufferSizes & sizes) const62void ExternalASTSource::getMemoryBufferSizes(MemoryBufferSizes &sizes) const { } 63