[clang] [clang-format] Fix a bug in annotating binary operator && (PR #138633)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sat May 10 02:13:25 PDT 2025
owenca wrote:
> @owenca, I actually think that this introduced a regression that was previously fixed in the nightly snapshot of `clang-format-21`.
It was an incidental "fix" by 91328dbae986dfa93cf2acef0a93361fd5ced66d, which caused a regression that's fixed by this patch.
> ```
> $ 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;
> ```
Please open an issue for this.
https://github.com/llvm/llvm-project/pull/138633
More information about the cfe-commits
mailing list