[clang-tools-extra] [clang] [clangd] Collect comments from function definitions into the index (PR #67802)

Christian Kandeler via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 1 23:14:50 PST 2024


ckandeler wrote:

> Do you have another patch where you use the new `DocComment` field?  Is it for showing in a hover?

Yes, it is for showing documentation in a hover. clangd already supports that; it's just that it currently works only if the comments are attached to the declaration. With this patch it works also for comments at the implementation site,   (which I think was the intended behavior all along). No additional patch is necessary.



https://github.com/llvm/llvm-project/pull/67802


More information about the cfe-commits mailing list