1 //===- ExternalASTSource.cpp - Abstract External AST Interface --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file provides the default implementation of the ExternalASTSource
11 // interface, which enables construction of AST nodes from some external
14 //===----------------------------------------------------------------------===//
16 #include "clang/AST/ExternalASTSource.h"
17 #include "clang/AST/DeclarationName.h"
19 using namespace clang;
21 ExternalASTSource::~ExternalASTSource() { }
23 void ExternalASTSource::PrintStats() { }
25 Decl *ExternalASTSource::GetExternalDecl(uint32_t ID) {
29 Selector ExternalASTSource::GetExternalSelector(uint32_t ID) {
33 uint32_t ExternalASTSource::GetNumExternalSelectors() {
37 Stmt *ExternalASTSource::GetExternalDeclStmt(uint64_t Offset) {
42 ExternalASTSource::GetExternalCXXBaseSpecifiers(uint64_t Offset) {
47 ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC,
48 DeclarationName Name) {
52 void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) {
56 ExternalASTSource::FindExternalLexicalDecls(const DeclContext *DC,
57 bool (*isKindWeWant)(Decl::Kind),
58 SmallVectorImpl<Decl*> &Result) {
59 return ELR_AlreadyLoaded;
62 void ExternalASTSource::getMemoryBufferSizes(MemoryBufferSizes &sizes) const { }