[cfe-commits] r120397 - /cfe/trunk/include/clang/Serialization/ASTSerializationListener.h
Douglas Gregor
dgregor at apple.com
Mon Nov 29 22:17:12 PST 2010
Author: dgregor
Date: Tue Nov 30 00:17:12 2010
New Revision: 120397
URL: http://llvm.org/viewvc/llvm-project?rev=120397&view=rev
Log:
Add missing file from last commit
Added:
cfe/trunk/include/clang/Serialization/ASTSerializationListener.h (with props)
Added: cfe/trunk/include/clang/Serialization/ASTSerializationListener.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Serialization/ASTSerializationListener.h?rev=120397&view=auto
==============================================================================
--- cfe/trunk/include/clang/Serialization/ASTSerializationListener.h (added)
+++ cfe/trunk/include/clang/Serialization/ASTSerializationListener.h Tue Nov 30 00:17:12 2010
@@ -0,0 +1,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/System/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
Propchange: cfe/trunk/include/clang/Serialization/ASTSerializationListener.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/trunk/include/clang/Serialization/ASTSerializationListener.h
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: cfe/trunk/include/clang/Serialization/ASTSerializationListener.h
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the cfe-commits
mailing list