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