================
@@ -79,7 +87,9 @@ void RedundantParenthesesCheck::registerMatchers(MatchFinder
*Finder) {
arraySubscriptExpr())),
unless(anyOf(isInMacro(),
// sizeof(...) is common used.
- hasParent(unaryExprOrTypeTraitExpr()))))
+ hasParent(unaryExprOrTypeTraitExpr()),
+ // typeof(...) parentheses are required syntax.
+ isTypeOfArgument())))
----------------
and2049 wrote:
Didn't see an existing matcher for `TypeOfExprTypeLoc` so I've replaced it with
`hasParent(typeLoc(isTypeOfExprTypeLoc()))` using a local matcher.
https://github.com/llvm/llvm-project/pull/223512
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits