blob: 96ebe92ce3ab29e91fdd84442fc2e6b30c5a6e61 [file] [log] [blame]
Axel Naumannc304d902011-02-28 11:22:50 +00001//===- 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
Richard Smith3646c682013-02-07 03:30:24 +000046bool
Axel Naumannc304d902011-02-28 11:22:50 +000047ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC,
48 DeclarationName Name) {
Richard Smith3646c682013-02-07 03:30:24 +000049 return false;
Axel Naumannc304d902011-02-28 11:22:50 +000050}
51
Nick Lewyckyb346d2f2012-04-16 02:51:46 +000052void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) {
53}
54
55ExternalLoadResult
Axel Naumannc304d902011-02-28 11:22:50 +000056ExternalASTSource::FindExternalLexicalDecls(const DeclContext *DC,
57 bool (*isKindWeWant)(Decl::Kind),
Chris Lattner5f9e2722011-07-23 10:55:15 +000058 SmallVectorImpl<Decl*> &Result) {
Douglas Gregorba6ffaf2011-07-15 21:46:17 +000059 return ELR_AlreadyLoaded;
Axel Naumannc304d902011-02-28 11:22:50 +000060}
Axel Naumann69d891d2011-05-04 12:59:24 +000061
62void ExternalASTSource::getMemoryBufferSizes(MemoryBufferSizes &sizes) const { }