summaryrefslogtreecommitdiffstats
path: root/include/clang/Frontend/PCHDeserializationListener.h
blob: c9b90e22c8cda773367bb4156cd2700072e9fcc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//===- 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:
  virtual void TypeRead(pch::TypeID ID, QualType T) = 0;
  virtual void DeclRead(pch::DeclID ID, const Decl *D) = 0;
};

}

#endif
OpenPOWER on IntegriCloud