blob: 0c62e0b9ca5ae5b3280edf593849f354683b5c9d (
plain) (
blame)
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
37
38
39
40
41
42
43
44
|
//===- ASTSerializationListener.h - Decl/Type PCH Write 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 ASTSerializationListener class, which is notified
// by the ASTWriter when an entity is serialized.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_FRONTEND_AST_SERIALIZATION_LISTENER_H
#define LLVM_CLANG_FRONTEND_AST_SERIALIZATION_LISTENER_H
#include "llvm/Support/DataTypes.h"
namespace clang {
class PreprocessedEntity;
/// \brief Listener object that receives callbacks when certain kinds of
/// entities are serialized.
class ASTSerializationListener {
public:
virtual ~ASTSerializationListener();
/// \brief Callback invoked whenever a preprocessed entity is serialized.
///
/// This callback will only occur when the translation unit was created with
/// a detailed preprocessing record.
///
/// \param Entity The entity that has been serialized.
///
/// \param Offset The offset (in bits) of this entity in the resulting
/// AST file.
virtual void SerializedPreprocessedEntity(PreprocessedEntity *Entity,
uint64_t Offset) = 0;
};
}
#endif
|