[PATCH] D73916: [clang] Add `forceReload` clangd extension to 'textDocument/didChange'

David Goldman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 7 11:30:59 PST 2020


dgoldman marked an inline comment as done.
dgoldman added inline comments.


================
Comment at: clang-tools-extra/clangd/ClangdLSPServer.cpp:653
 
-  Server->addDocument(File, *Contents, WantDiags);
+  Server->addDocument(File, *Contents, WantDiags, ForceReload);
 }
----------------
sammccall wrote:
> Rather than plumbing this down many levels as yet-another-bool-param, can we shove it into either ParseInputs or ParseOptions?
> e.g. `bool ParseInputs::AllowCached = true;` and set it to false here?
> 
> It's kind of a stretch for the API as we won't make use of it everywhere that ParseInputs is used, but I think it's better than adding a niche boolean param everywhere.
Done, this cleaned up the tests


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73916/new/

https://reviews.llvm.org/D73916





More information about the cfe-commits mailing list