[llvm-branch-commits] [clang] release/21.x: [clang-format] Annotate ::operator and Foo::operator correctly (#164048) (PR #164112)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Oct 18 13:18:30 PDT 2025
================
@@ -3775,18 +3775,12 @@ static bool isFunctionDeclarationName(const LangOptions &LangOpts,
if (Current.is(TT_FunctionDeclarationName))
return true;
- if (!Current.Tok.getIdentifierInfo())
+ if (Current.isNoneOf(tok::identifier, tok::kw_operator))
----------------
owenca wrote:
```suggestion
if (!Current.isOneOf(tok::identifier, tok::kw_operator))
```
https://github.com/llvm/llvm-project/pull/164112
More information about the llvm-branch-commits
mailing list