[clang] [clang-format] Harden annotation of operator keywords (PR #196768)
via cfe-commits
cfe-commits at lists.llvm.org
Sun May 10 12:50:49 PDT 2026
================
@@ -1684,8 +1684,6 @@ class AnnotatingParser {
}
while (CurrentToken &&
CurrentToken->isNoneOf(tok::l_paren, tok::semi, tok::r_paren)) {
- if (CurrentToken->isOneOf(tok::star, tok::amp))
- CurrentToken->setType(TT_PointerOrReference);
----------------
owenca wrote:
I'd keep them because of the `break`s below or deal with it in another patch.
https://github.com/llvm/llvm-project/pull/196768
More information about the cfe-commits
mailing list