clang API Documentation

IndexProvider.h
Go to the documentation of this file.
00001 //===--- IndexProvider.h - Maps information to translation units -*- C++ -*-==//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 //  Maps information to TranslationUnits.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef LLVM_CLANG_INDEX_INDEXPROVIDER_H
00015 #define LLVM_CLANG_INDEX_INDEXPROVIDER_H
00016 
00017 namespace clang {
00018 
00019 namespace idx {
00020   class Entity;
00021   class TranslationUnitHandler;
00022   class GlobalSelector;
00023 
00024 /// \brief Maps information to TranslationUnits.
00025 class IndexProvider {
00026 public:
00027   virtual ~IndexProvider();
00028   virtual void GetTranslationUnitsFor(Entity Ent,
00029                                       TranslationUnitHandler &Handler) = 0;
00030   virtual void GetTranslationUnitsFor(GlobalSelector Sel,
00031                                       TranslationUnitHandler &Handler) = 0;
00032 };
00033 
00034 } // namespace idx
00035 
00036 } // namespace clang
00037 
00038 #endif