clang API Documentation
00001 //===- ExternalASTSource.cpp - Abstract External AST Interface --*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file provides the default implementation of the ExternalASTSource 00011 // interface, which enables construction of AST nodes from some external 00012 // source. 00013 // 00014 //===----------------------------------------------------------------------===// 00015 00016 #include "clang/AST/ExternalASTSource.h" 00017 #include "clang/AST/DeclarationName.h" 00018 00019 using namespace clang; 00020 00021 ExternalASTSource::~ExternalASTSource() { } 00022 00023 void ExternalASTSource::PrintStats() { } 00024 00025 Decl *ExternalASTSource::GetExternalDecl(uint32_t ID) { 00026 return 0; 00027 } 00028 00029 Selector ExternalASTSource::GetExternalSelector(uint32_t ID) { 00030 return Selector(); 00031 } 00032 00033 uint32_t ExternalASTSource::GetNumExternalSelectors() { 00034 return 0; 00035 } 00036 00037 Stmt *ExternalASTSource::GetExternalDeclStmt(uint64_t Offset) { 00038 return 0; 00039 } 00040 00041 CXXBaseSpecifier * 00042 ExternalASTSource::GetExternalCXXBaseSpecifiers(uint64_t Offset) { 00043 return 0; 00044 } 00045 00046 DeclContextLookupResult 00047 ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC, 00048 DeclarationName Name) { 00049 return DeclContext::lookup_result(); 00050 } 00051 00052 void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) { 00053 } 00054 00055 ExternalLoadResult 00056 ExternalASTSource::FindExternalLexicalDecls(const DeclContext *DC, 00057 bool (*isKindWeWant)(Decl::Kind), 00058 SmallVectorImpl<Decl*> &Result) { 00059 return ELR_AlreadyLoaded; 00060 } 00061 00062 void ExternalASTSource::getMemoryBufferSizes(MemoryBufferSizes &sizes) const { }