[PATCH] D147044: [clangd] Implement cross reference request for #include lines.

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 19 05:09:39 PDT 2023


kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.

thanks!



================
Comment at: clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp:398
+      )cpp",
+       {include_cleaner::Header{"bar.h"}, include_cleaner::Header{"foo.h"}},
+       include_cleaner::Header{"bar.h"}},
----------------
can you add a similar test case in which `foo.h` comes before `bar.h` ?


================
Comment at: clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp:410
+    TestTU TU;
+    TU.Filename = "foo.cpp";
+    TU.Code = Code.code();
----------------
nit: no need for the filename


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147044



More information about the cfe-commits mailing list