Current Path : /compat/linux/proc/68247/root/usr/src/contrib/llvm/tools/clang/include/clang/Serialization/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/root/usr/src/contrib/llvm/tools/clang/include/clang/Serialization/ASTDeserializationListener.h |
//===- ASTDeserializationListener.h - Decl/Type PCH Read Events -*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file defines the ASTDeserializationListener class, which is notified // by the ASTReader whenever a type or declaration is deserialized. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_AST_DESERIALIZATION_LISTENER_H #define LLVM_CLANG_FRONTEND_AST_DESERIALIZATION_LISTENER_H #include "clang/Serialization/ASTBitCodes.h" namespace clang { class Decl; class ASTReader; class QualType; class MacroDefinition; class Module; class ASTDeserializationListener { protected: virtual ~ASTDeserializationListener(); public: /// \brief The ASTReader was initialized. virtual void ReaderInitialized(ASTReader *Reader) { } /// \brief An identifier was deserialized from the AST file. virtual void IdentifierRead(serialization::IdentID ID, IdentifierInfo *II) { } /// \brief A type was deserialized from the AST file. The ID here has the /// qualifier bits already removed, and T is guaranteed to be locally /// unqualified. virtual void TypeRead(serialization::TypeIdx Idx, QualType T) { } /// \brief A decl was deserialized from the AST file. virtual void DeclRead(serialization::DeclID ID, const Decl *D) { } /// \brief A selector was read from the AST file. virtual void SelectorRead(serialization::SelectorID iD, Selector Sel) { } /// \brief A macro definition was read from the AST file. virtual void MacroDefinitionRead(serialization::PreprocessedEntityID, MacroDefinition *MD) { } /// \brief A macro definition that had previously been deserialized /// (and removed via IdentifierRead) has now been made visible. virtual void MacroVisible(IdentifierInfo *II) { } /// \brief A module definition was read from the AST file. virtual void ModuleRead(serialization::SubmoduleID ID, Module *Mod) { } }; } #endif