//===- PCHDeserializationListener.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 PCHDeserializationListener class, which is notified
//  by the PCHReader whenever a type or declaration is deserialized.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_FRONTEND_PCH_DESERIALIZATION_LISTENER_H
#define LLVM_CLANG_FRONTEND_PCH_DESERIALIZATION_LISTENER_H

#include "clang/Frontend/PCHBitCodes.h"

namespace clang {

class Decl;
class QualType;

class PCHDeserializationListener {
protected:
  ~PCHDeserializationListener() {}

public:
  /// \brief A type was deserialized from the PCH. The ID here has the qualifier
  ///        bits already removed, and T is guaranteed to be locally unqualified
  virtual void TypeRead(pch::TypeID ID, QualType T) = 0;
  /// \brief A decl was deserialized from the PCH.
  virtual void DeclRead(pch::DeclID ID, const Decl *D) = 0;
};

}

#endif

//===- PCHDeserializationListener.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 PCHDeserializationListener class, which is notified
//  by the PCHReader whenever a type or declaration is deserialized.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_FRONTEND_PCH_DESERIALIZATION_LISTENER_H
#define LLVM_CLANG_FRONTEND_PCH_DESERIALIZATION_LISTENER_H

#include "clang/Frontend/PCHBitCodes.h"

namespace clang {

class Decl;
class QualType;

class PCHDeserializationListener {
protected:
  virtual ~PCHDeserializationListener() {}

public:
  /// \brief A type was deserialized from the PCH. The ID here has the qualifier
  ///        bits already removed, and T is guaranteed to be locally unqualified
  virtual void TypeRead(pch::TypeID ID, QualType T) = 0;
  /// \brief A decl was deserialized from the PCH.
  virtual void DeclRead(pch::DeclID ID, const Decl *D) = 0;
};

}

#endif

Make this destructor virtual to placate GCC's warnings.
Make this destructor virtual to placate GCC's warnings.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@108534 91177308-0d34-0410-b5e6-96231b3b80d8
