-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[clang-format] && wrongfully interpreted as Boolean operation #139376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@llvm/issue-subscribers-clang-format Author: Pierre Jolivet (prj-)
```
$ cat foo.cpp
template <class F, class... Args>
using invoke_result_t = typename std::result_of<F&& (Args &&...)>::type;
$ clang-format-20 foo.cpp
template <class F, class... Args>
using invoke_result_t = typename std::result_of<F && (Args && ...)>::type;
```
|
@prj you need to add
|
I see. Is there no way around this? |
I don't know of any additional heuristics we can add to the parser for this construct, especially when |
OK, then I guess I need to find another type name because this is messing up the rest of our code using |
The text was updated successfully, but these errors were encountered: