]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/llvm/tools/clang/include/clang/Index/IndexProvider.h
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / contrib / llvm / tools / clang / include / clang / Index / IndexProvider.h
1 //===--- IndexProvider.h - Maps information to translation units -*- 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 //  Maps information to TranslationUnits.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_CLANG_INDEX_INDEXPROVIDER_H
15 #define LLVM_CLANG_INDEX_INDEXPROVIDER_H
16
17 namespace clang {
18
19 namespace idx {
20   class Entity;
21   class TranslationUnitHandler;
22   class GlobalSelector;
23
24 /// \brief Maps information to TranslationUnits.
25 class IndexProvider {
26 public:
27   virtual ~IndexProvider();
28   virtual void GetTranslationUnitsFor(Entity Ent,
29                                       TranslationUnitHandler &Handler) = 0;
30   virtual void GetTranslationUnitsFor(GlobalSelector Sel,
31                                       TranslationUnitHandler &Handler) = 0;
32 };
33
34 } // namespace idx
35
36 } // namespace clang
37
38 #endif