================
@@ -93,6 +93,8 @@ void RedundantParenthesesCheck::registerMatchers(MatchFinder 
*Finder) {
 
 void RedundantParenthesesCheck::check(const MatchFinder::MatchResult &Result) {
   const auto *PE = Result.Nodes.getNodeAs<ParenExpr>("dup");
+  if (PE->getLParen() == PE->getRParen())
+    return;
----------------
vbvictor wrote:

This should be a custom ast matcher, something like `isWritten`.
Place it inside Finder->addMatcher(
      parenExpr(

https://github.com/llvm/llvm-project/pull/228666
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to