[clang] [clang-format] Handle templated elaborated type specifier in function… (PR #77013)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 10 13:16:55 PST 2024


XDeme wrote:

I have updated the comment a little, because there is some case we can't handle:
```cpp
template<typename T>
struct Goo<T> F() {}
```
we can't distinguish if this is a class or function. We could check if F() is macro by checking
if it is all uppercase, to identify a macro, but I am not sure if this is good.

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


More information about the cfe-commits mailing list