owenpan accepted this revision. owenpan added inline comments.
================ Comment at: clang/lib/Format/TokenAnnotator.cpp:2222-2224 if (PreviousNotConst->is(tok::r_paren) && - PreviousNotConst->is(TT_TypeDeclarationParen)) { + (PreviousNotConst->isOneOf(TT_TypeDeclarationParen, + TT_AttributeRParen))) { ---------------- We should annotate parens separately as LParen and RParen like we recently did with braces. Then we could simply do: ``` if (PreviousNotConst->isOneOf(TT_TypeDeclarationRParen, TT_AttributeRParen)) ``` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156370/new/ https://reviews.llvm.org/D156370 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits