[clang] [clang-format] Fix a bug in annotating binary operator && (PR #138633)

2025-05-10 Thread Pierre Jolivet via cfe-commits
prj- wrote: Done, cf. https://github.com/llvm/llvm-project/issues/139376. https://github.com/llvm/llvm-project/pull/138633 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in annotating binary operator && (PR #138633)

2025-05-10 Thread Owen Pan via cfe-commits
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

[clang] [clang-format] Fix a bug in annotating binary operator && (PR #138633)

2025-05-09 Thread Pierre Jolivet via cfe-commits
prj- wrote: @owenca, I actually think that this introduced a regression that was previously fixed in the nightly snapshot of `clang-format-21`. With `clang-format-20`: ``` $ cat foo.cpp template using invoke_result_t = typename std::result_of::type; $ clang-format-20 foo.cpp template using inv

[clang] [clang-format] Fix a bug in annotating binary operator && (PR #138633)

2025-05-06 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/138633 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in annotating binary operator && (PR #138633)

2025-05-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fix #138485 --- Full diff: https://github.com/llvm/llvm-project/pull/138633.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+5-3) - (modified) clang/unittests/Format/TokenAnnota

[clang] [clang-format] Fix a bug in annotating binary operator && (PR #138633)

2025-05-05 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/138633 Fix #138485 >From e72f081f3a1f06ec9e868042cbe7db0a3c18796d Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Mon, 5 May 2025 22:35:40 -0700 Subject: [PATCH] [clang-format] Fix a bug in annotating binary operator &&