[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:22:33 PDT 2026
safocl wrote:
In my example, **g++** generates potentially more compact code using `std::function_ref`, but that certainly doesn't mean it's better or more performant. It's a shame I can't test this for **clang++** at the moment, since, as far as I understand, `std::function_ref` isn't yet implemented in the standard library.
https://godbolt.org/z/jhGb4K5ne
https://github.com/llvm/llvm-project/pull/203042
More information about the cfe-commits
mailing list