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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to