[PATCH] D47869: [clangd] Fix using the incorrect Index for go-to-definition.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 7 01:19:04 PDT 2018


sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clangd/ClangdServer.cpp:305
       return CB(InpAST.takeError());
-    CB(clangd::findDefinitions(InpAST->AST, Pos, this->FileIdx.get()));
+    CB(clangd::findDefinitions(InpAST->AST, Pos, this->Index));
   };
----------------
nit: just `Index`?


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D47869





More information about the cfe-commits mailing list