[clang] [clang-format] Harden annotation of operator keywords (PR #196768)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Mon May 11 11:47:26 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);
----------------
HazardyKnusperkeks wrote:
If there's no `Next` we have incomplete code, I don't think that really needs to be annotated, or am I missing something?
https://github.com/llvm/llvm-project/pull/196768
More information about the cfe-commits
mailing list