[clang-tools-extra] [clangd] Show comment of field on hover (PR #182738)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 12 19:25:02 PDT 2026


HighCommander4 wrote:

> If you use a getter in a `cpp` file and it is defined in an included `hpp` it will not display that it is a trivial getter. This has nothing to do with your changes and was already like this before. @HighCommander4 is this intentional (due to limitations) or a bug?

It's a limitation due to the fact that we skip parsing the bodies of functions in the preamble (as you may recall from https://github.com/clangd/clangd/issues/716), and we need to examine the body to be able to determine if it's a trivial getter/setter.

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


More information about the cfe-commits mailing list