================
@@ -57,6 +59,8 @@ class ASTDeserializationListener {
   /// A module import was read from the AST file.
   virtual void ModuleImportRead(serialization::SubmoduleID ID,
                                 SourceLocation ImportLoc) {}
+  /// The deserialization of the AST file was finished.
+  virtual void FinishedDeserializing() {}
----------------
ilya-biryukov wrote:

Yes, I saw that. But in any case you probably want the other callback too.
Having both callbacks would allow to add assertions about the invariants 
implementation expect. E.g. my concerns about reentrancy could be expressed as 
`bool IsDeserializing` field and a few assertions.

https://github.com/llvm/llvm-project/pull/133395
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to