diff options
Diffstat (limited to 'include/clang/Index/Handlers.h')
-rw-r--r-- | include/clang/Index/Handlers.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/clang/Index/Handlers.h b/include/clang/Index/Handlers.h new file mode 100644 index 0000000000..631e5bb340 --- /dev/null +++ b/include/clang/Index/Handlers.h @@ -0,0 +1,41 @@ +//===--- Handlers.h - Interfaces for receiving information ------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Abstract interfaces for receiving information. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_CLANG_INDEX_HANDLERS_H +#define LLVM_CLANG_INDEX_HANDLERS_H + +namespace clang { + +namespace idx { + class Entity; + class TranslationUnit; + +/// \brief Abstract interface for receiving Entities. +class EntityHandler { +public: + virtual ~EntityHandler(); + virtual void HandleEntity(Entity Ent) = 0; +}; + +/// \brief Abstract interface for receiving TranslationUnits. +class TranslationUnitHandler { +public: + virtual ~TranslationUnitHandler(); + virtual void Handle(TranslationUnit *TU) = 0; +}; + +} // namespace idx + +} // namespace clang + +#endif |