[clang-tools-extra] [clangd] Avoid crash when summarizing pointer-to-member expr for block-end hint (PR #76492)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 28 23:17:54 PST 2023


HighCommander4 wrote:

> btw, it looks like there is a FIXME (https://github.com/llvm/llvm-project/blob/main/clang/lib/AST/ExprCXX.cpp#L677) for supporting this particular case.

I saw it, but I'm not clear on what that would look like.

Which member function a member function pointer resolves to is a runtime property of the pointer variable. I don't think we can produce a `CXXMethodDecl` there unless perhaps the pointer is a constant expression, which seems like an edge case.

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


More information about the cfe-commits mailing list