[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
================
@@ -102,8 +103,8 @@ void StringConstructorCheck::registerMatchers(MatchFinder *Finder) {
cxxConstructExpr(
hasDeclaration(cxxConstructorDecl(ofClass(
cxxRecordDecl(hasAnyName(removeNamespaces(StringNames)))))),
- hasArgument(0, hasType(CharPtrType)),
- hasArgument(1, hasType(isInteger())),
+ hasArgument(0, ignoringParenImpCasts(hasType(CharPtrType))),
+ hasArgument(1, ignoringParenImpCasts(hasType(isInteger()))),
----------------
5chmidti wrote:
Same as the other two types matchers
https://github.com/llvm/llvm-project/pull/89553
More information about the llvm-commits
mailing list