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
19using namespace clang;
20
21ExternalASTSource::~ExternalASTSource() { }
22
23void ExternalASTSource::PrintStats() { }
24
25Decl *ExternalASTSource::GetExternalDecl(uint32_t ID) {
26  return 0;
27}
28
29Selector ExternalASTSource::GetExternalSelector(uint32_t ID) {
30  return Selector();
31}
32
33uint32_t ExternalASTSource::GetNumExternalSelectors() {
34   return 0;
35}
36
37Stmt *ExternalASTSource::GetExternalDeclStmt(uint64_t Offset) {
38  return 0;
39}
40
41CXXBaseSpecifier *
42ExternalASTSource::GetExternalCXXBaseSpecifiers(uint64_t Offset) {
43  return 0;
44}
45
46bool
47ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC,
48                                                  DeclarationName Name) {
49  return false;
50}
51
52void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) {
53}
54
55ExternalLoadResult
56ExternalASTSource::FindExternalLexicalDecls(const DeclContext *DC,
57                                            bool (*isKindWeWant)(Decl::Kind),
58                                         SmallVectorImpl<Decl*> &Result) {
59  return ELR_AlreadyLoaded;
60}
61
62void ExternalASTSource::getMemoryBufferSizes(MemoryBufferSizes &sizes) const { }
63