]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/llvm/tools/clang/lib/AST/ExternalASTSource.cpp
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / llvm / tools / clang / lib / AST / ExternalASTSource.cpp
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
21 ExternalASTSource::~ExternalASTSource() { }
22
23 void ExternalASTSource::PrintStats() { }
24
25 Decl *ExternalASTSource::GetExternalDecl(uint32_t ID) {
26   return 0;
27 }
28
29 Selector ExternalASTSource::GetExternalSelector(uint32_t ID) {
30   return Selector();
31 }
32
33 uint32_t ExternalASTSource::GetNumExternalSelectors() {
34    return 0;
35 }
36
37 Stmt *ExternalASTSource::GetExternalDeclStmt(uint64_t Offset) {
38   return 0;
39 }
40
41 CXXBaseSpecifier *
42 ExternalASTSource::GetExternalCXXBaseSpecifiers(uint64_t Offset) {
43   return 0;
44 }
45
46 bool
47 ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC,
48                                                   DeclarationName Name) {
49   return false;
50 }
51
52 void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) {
53 }
54
55 ExternalLoadResult
56 ExternalASTSource::FindExternalLexicalDecls(const DeclContext *DC,
57                                             bool (*isKindWeWant)(Decl::Kind),
58                                          SmallVectorImpl<Decl*> &Result) {
59   return ELR_AlreadyLoaded;
60 }
61
62 void ExternalASTSource::getMemoryBufferSizes(MemoryBufferSizes &sizes) const { }