[clang] [clang] Dump Auto Type Inference (PR #95509)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 14 02:34:46 PDT 2024
Sirraide wrote:
I candidly don’t really see the use case for this feature. This seems like it should be done by an LSP rather than by Clang itself—and `clangd` for instance can already do this: when I hover over a variable, it shows me the type of that variable, irrespective of whether it was declared with `auto` or not.
Furthermore, in cases where the `auto` ends up being confusing, you can always just... not use it. That’s pretty much how we use `auto` in LLVM (i.e. only if the type is obvious, e.g. in a `cast<>()`).
https://github.com/llvm/llvm-project/pull/95509
More information about the cfe-commits
mailing list