[clang-tools-extra] [clangd] Avoid crash on pseudo-destructor selection (PR #195939)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Wed May 6 06:30:37 PDT 2026


zwuis wrote:

I'm surprised that the NamedTypeInfo is null. AFAIK there should be a `DecltypeTypeLoc`. I don't think this is the best approach.

> clangd crashes during textDocument/codeAction on malformed pseudo-destructor expressions like y->~decltype(A())(). ...

This expression is VALID.

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


More information about the cfe-commits mailing list