[clang] [clang-tools-extra] [llvm] Add ``ignoringParenImpCasts`` in arguments of hasArgument (PR #89553)

Julian Schmidt via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 12:23:42 PDT 2024


================
@@ -93,7 +94,8 @@ rewriteInverseTimeCall(const MatchFinder::MatchResult &Result,
   llvm::StringRef InverseFunction = getTimeInverseForScale(Scale);
   if (const auto *MaybeCallArg = selectFirst<const Expr>(
           "e", match(callExpr(callee(functionDecl(hasName(InverseFunction))),
-                              hasArgument(0, expr().bind("e"))),
+                              hasArgument(
+                                  0, ignoringParenImpCasts(expr().bind("e")))),
----------------
5chmidti wrote:

Same

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


More information about the llvm-commits mailing list