[PATCH] D130041: [clangd] Add decl/def support to SymbolDetails

David Goldman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 26 11:16:04 PDT 2022


dgoldman added inline comments.


================
Comment at: clang-tools-extra/clangd/XRefs.cpp:1528
   }
-
+  auto MainFilePath =
+      getCanonicalPath(SM.getFileEntryForID(SM.getMainFileID()), SM);
----------------
sammccall wrote:
> kadircet wrote:
> > let's just pass the TUPath from ClangdServer into the request. (we should do the same for `locateSymbolAt`, but on a separate change)
> driveby: @kadircet any reason not to store the TUPath on ParsedAST? We already pass it to ParsedAST::build()
I think this would simplify things quite a bit - otherwise I also need to update the DumpSymbol tweak to store/compute the TUPath (or just provide an empty one). LMK what I should do.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D130041



More information about the cfe-commits mailing list