ilya-biryukov added inline comments.

================
Comment at: clangd/ClangdServer.h:132
   /// Remove \p File from list of tracked files, schedule a request to free
-  /// resources associated with it.
+  /// resources associated with it. After this function returns, we guarantee
+  /// that no diagnostics for \p File will be delivered even if there are
----------------
sammccall wrote:
> I'm not sure we actually want to *guarantee* this in the API: this 
> implementation serializes removeDocument and the diagnostics callback, but 
> only because it was the most convenient.
> 
> I'd suggest just "pending diagnostics for closed files may not be delivered". 
> (and similarly for TUScheduler).
> 
> Up to you though.
Yeah, it might be a bit stronger than what we guaranteed before (which was "you 
won't get stale diagnostics for a file that you reopen")


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D54829



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to