[clang] [clang-format] Handle common C++ non-keyword types as such (PR #83709)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 8 19:32:44 PST 2024
owenca wrote:
> Just thinking out loud and maybe not for this patch but for a more general solution, what we seem to never do is collect information about types local to the file as we go; For example what if a first pass identified types from declarations and function argument declarations, return types, template arguments and added them to a structure that would have some probability that a given identifier was actually a type.
I'm kind of skeptical because we can't even correctly annotate the declarators all the time, but someone must actually try it to find out.
https://github.com/llvm/llvm-project/pull/83709
More information about the cfe-commits
mailing list