[PATCH] D54077: [clangd] Implemented DraftFileSystem

Nikolai Kosjar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 6 01:55:22 PST 2018

nik added a comment.

In https://reviews.llvm.org/D54077#1288404, @ioeric wrote:

> I would be very happy if `A.cc` can see the unsaved `A.h` when I am editing `A.cc`.

We have that in Qt Creator (with libclang) and that's quite handy as it can save you some build cycles.

> Not sure if I want all files that depend on `A.h` to be updated when I edit `A.h` though; it seems much more complicated and less important (to me).

If it helps (and the LSP allows it): In case A.h is edited, we flag it dirty. If the user makes some file depending on it visible (or the current file), we trigger a reparse for that. Not sure whether the LSP has a notion of current or visible files...

  rCTE Clang Tools Extra


More information about the cfe-commits mailing list