================ @@ -164,6 +167,12 @@ class AnnotatingParser { TT_OverloadedOperatorLParen))) { return false; } + FormatToken *ClosingParen = nullptr; + if (Previous.Previous->is(tok::kw_operator) && + isFunctionDeclarationName(Style.isCpp(), *Previous.Previous, Line, + ClosingParen)) { ---------------- owenca wrote:
It seems that the following would suffice: ```suggestion if (Previous.Previous->is(tok::kw_operator) && CurrentToken->is(tok::l_paren)) { ``` https://github.com/llvm/llvm-project/pull/75144 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits