[clang-tools-extra] [clangd] Avoid type erasure for local recursive callbacks (PR #203042)

Safocl Stollmannovic via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 20 10:27:45 PDT 2026


safocl wrote:

I think the compiler is unlikely to be able to optimize properly here using context prediction, since the recursion is performed at a known-unknown nesting level for each stage. Whether such a change is really worth using here is, I think, an open question, as @ArcsinX  also [pointed out](https://github.com/llvm/llvm-project/pull/203042#issuecomment-4673776911).

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


More information about the cfe-commits mailing list