[PATCH] D54999: [clangd] Populate include graph during static indexing action.

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 30 07:50:30 PST 2018


ilya-biryukov accepted this revision.
ilya-biryukov added a comment.
This revision is now accepted and ready to land.

Thank, LGTM. A few NITs.



================
Comment at: clangd/index/IndexAction.h:31
+    std::function<void(RefSlab)> RefsCallback,
+    std::function<void(IncludeGraph)> IncludeGraphCallback = nullptr);
 
----------------
We have only two call sites, maybe leave out the default arg and specify null explicitly where needed?


================
Comment at: unittests/clangd/IndexActionTests.cpp:52
+    EXPECT_EQ(Node.URI.data(), IndexFile.Sources->find(URI)->getKeyData());
+  }
+}
----------------
Maybe also check the size of `IndexFile.Sources` is the same as `Paths`? To make sure we didn't miss any


Repository:
  rCTE Clang Tools Extra

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

https://reviews.llvm.org/D54999





More information about the cfe-commits mailing list