[PATCH] D45921: Add getDeserializationListener to ASTReader

Yuka Takahashi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 21 06:03:30 PDT 2018


yamaguchi created this revision.
yamaguchi added reviewers: v.g.vassilev, rsmith, dblaikie, thakis.

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.


https://reviews.llvm.org/D45921

Files:
  clang/include/clang/Serialization/ASTReader.h


Index: clang/include/clang/Serialization/ASTReader.h
===================================================================
--- clang/include/clang/Serialization/ASTReader.h
+++ clang/include/clang/Serialization/ASTReader.h
@@ -1599,6 +1599,11 @@
   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; }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45921.143441.patch
Type: text/x-patch
Size: 672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180421/e82f7c02/attachment.bin>


More information about the cfe-commits mailing list