From 4f38ffa63c7b7a4b8383e58146cc17b13946ccb2 Mon Sep 17 00:00:00 2001 From: Yuka Takahashi Date: Thu, 26 Apr 2018 15:09:13 +0000 Subject: [PATCH] Add getDeserializationListener to ASTReader Summary: We need to know if ASTReader already has a DeserializationListner or not, and this also helps to create a multiplexing deserialization listener if there is one already attached. Reviewers: v.g.vassilev, rsmith, dblaikie, thakis Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D45921 llvm-svn: 330946 --- clang/include/clang/Serialization/ASTReader.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clang/include/clang/Serialization/ASTReader.h b/clang/include/clang/Serialization/ASTReader.h index 01cd055..ba9fc06 100644 --- a/clang/include/clang/Serialization/ASTReader.h +++ b/clang/include/clang/Serialization/ASTReader.h @@ -1599,6 +1599,11 @@ public: void setDeserializationListener(ASTDeserializationListener *Listener, bool TakeOwnership = false); + /// \brief Get the AST deserialization listener. + ASTDeserializationListener *getDeserializationListener() { + return DeserializationListener; + } + /// \brief Determine whether this AST reader has a global index. bool hasGlobalIndex() const { return (bool)GlobalIndex; } -- 2.7.4