[PATCH] D50727: [clangd] Fetch documentation from the Index during signature help

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 16 04:32:42 PDT 2018


hokein added inline comments.


================
Comment at: clangd/index/Index.h:65
 public:
+  static llvm::Optional<SymbolID> forDecl(const Decl &D);
+
----------------
ilya-biryukov wrote:
> hokein wrote:
> > We already have this similar function in clangd/AST.h.
> Thanks for pointing this out.
> It's somewhat hard to find. WDYT about moving it to `Index.h`? The concern would probably be a somewhat broken layering, right? E.g. `Index.h` should not directly depend on anything AST-specific
Yes, I think we will not add any AST-specific stuff to `Index.h`, that's why we have `AST.h`.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D50727





More information about the cfe-commits mailing list