[clang-tools-extra] Add ignoring paren imp casts in has any argument (PR #89509)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 21 09:04:57 PDT 2024


================
@@ -90,8 +91,9 @@ RewriteRuleWith<std::string> StringviewNullptrCheckImpl() {
   auto HandleTemporaryCXXTemporaryObjectExprAndCompoundLiteralExpr = makeRule(
       cxxTemporaryObjectExpr(cxxConstructExpr(
           HasBasicStringViewType, argumentCountIs(1),
-          hasAnyArgument(/* `hasArgument` would skip over parens */ anyOf(
-              NullLiteral, NullInitList, EmptyInitList)),
+          hasAnyArgument(
+              /* `hasArgument` would skip over parens */ ignoringParenImpCasts(
+                  anyOf(NullLiteral, NullInitList, EmptyInitList))),
----------------
5chmidti wrote:

Same as above

https://github.com/llvm/llvm-project/pull/89509


More information about the cfe-commits mailing list