Axel Naumann | c304d90 | 2011-02-28 11:22:50 +0000 | [diff] [blame] | 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 | |
Richard Smith | 3646c68 | 2013-02-07 03:30:24 +0000 | [diff] [blame] | 46 | bool |
Axel Naumann | c304d90 | 2011-02-28 11:22:50 +0000 | [diff] [blame] | 47 | ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC, |
| 48 | DeclarationName Name) { |
Richard Smith | 3646c68 | 2013-02-07 03:30:24 +0000 | [diff] [blame] | 49 | return false; |
Axel Naumann | c304d90 | 2011-02-28 11:22:50 +0000 | [diff] [blame] | 50 | } |
| 51 | |
Nick Lewycky | b346d2f | 2012-04-16 02:51:46 +0000 | [diff] [blame] | 52 | void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) { |
| 53 | } |
| 54 | |
| 55 | ExternalLoadResult |
Axel Naumann | c304d90 | 2011-02-28 11:22:50 +0000 | [diff] [blame] | 56 | ExternalASTSource::FindExternalLexicalDecls(const DeclContext *DC, |
| 57 | bool (*isKindWeWant)(Decl::Kind), |
Chris Lattner | 5f9e272 | 2011-07-23 10:55:15 +0000 | [diff] [blame] | 58 | SmallVectorImpl<Decl*> &Result) { |
Douglas Gregor | ba6ffaf | 2011-07-15 21:46:17 +0000 | [diff] [blame] | 59 | return ELR_AlreadyLoaded; |
Axel Naumann | c304d90 | 2011-02-28 11:22:50 +0000 | [diff] [blame] | 60 | } |
Axel Naumann | 69d891d | 2011-05-04 12:59:24 +0000 | [diff] [blame] | 61 | |
| 62 | void ExternalASTSource::getMemoryBufferSizes(MemoryBufferSizes &sizes) const { } |