| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(hasDescendant( in registerMatchers() 50 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 59 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 71 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 74 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 87 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 92 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
| H A D | StringLiteralWithEmbeddedNulCheck.cpp | 43 hasDeclaration(cxxMethodDecl(hasName("basic_string")))), in registerMatchers() 47 hasDeclaration(cxxMethodDecl(hasName("basic_string"))), in registerMatchers()
|
| H A D | InaccurateEraseCheck.cpp | 25 1, optionally(cxxMemberCallExpr(callee(cxxMethodDecl(hasName("end")))) in registerMatchers() 34 callee(cxxMethodDecl(hasName("erase"))), argumentCountIs(1), in registerMatchers()
|
| H A D | DanglingHandleCheck.cpp | 28 anyOf(cxxConstructExpr(hasDeclaration(cxxMethodDecl(ofClass(IsAHandle))), in handleFrom() 85 cxxOperatorCallExpr(callee(cxxMethodDecl(ofClass(isAMap()))), in makeContainerMatcher() 130 cxxOperatorCallExpr(callee(cxxMethodDecl(ofClass(IsAHandle))), in registerMatchersForVariables()
|
| H A D | UseAfterMoveCheck.cpp | 332 callee(cxxMethodDecl(hasAnyName("clear", "assign")))), in getReinits() 336 callee(cxxMethodDecl(hasName("reset")))), in getReinits() 340 callee(cxxMethodDecl(hasAttr(clang::attr::Reinitializes)))), in getReinits() 415 callee(cxxMethodDecl(hasName("try_emplace"))))))) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | UnconventionalAssignOperatorCheck.cpp | 22 cxxMethodDecl(returns(hasCanonicalType(lValueReferenceType(pointee( in registerMatchers() 30 cxxMethodDecl(unless(anyOf(isDeleted(), isPrivate(), isImplicit())), in registerMatchers() 34 cxxMethodDecl(IsAssign, hasParameter(0, parmVarDecl(hasType(IsSelf)))) in registerMatchers() 38 cxxMethodDecl(IsAssign, unless(HasGoodReturnType)).bind("ReturnType"), in registerMatchers() 46 cxxMethodDecl(IsSelfAssign, in registerMatchers() 52 cxxMethodDecl(IsSelfAssign, anyOf(isConst(), isVirtual())).bind("cv"), in registerMatchers() 65 const auto IsGoodAssign = cxxMethodDecl(IsAssign, HasGoodReturnType); in registerMatchers()
|
| H A D | UniqueptrResetReleaseCheck.cpp | 40 member(cxxMethodDecl( in registerMatchers() 48 callee(memberExpr(member(cxxMethodDecl( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | RedundantStringCStrCheck.cpp | 81 hasDeclaration(cxxMethodDecl(hasName("basic_string")))), in registerMatchers() 84 hasDeclaration(cxxMethodDecl(hasName("basic_string"))), in registerMatchers() 93 callee(cxxMethodDecl(hasAnyName("c_str", "data")))) in registerMatchers() 129 cxxMemberCallExpr(on(StringExpr), callee(decl(cxxMethodDecl(hasAnyName( in registerMatchers() 137 callee(decl(cxxMethodDecl(hasName("compare")))), in registerMatchers() 144 callee(decl(cxxMethodDecl(hasAnyName( in registerMatchers() 154 callee(decl(cxxMethodDecl(hasName("insert")))), in registerMatchers() 167 hasDeclaration(cxxMethodDecl(hasAnyName( in registerMatchers()
|
| H A D | ContainerSizeEmptyCheck.cpp | 30 unsigned ArgIndex = cxxOperatorCallExpr(callee(cxxMethodDecl())) in AST_POLYMORPHIC_MATCHER_P2() 102 has(cxxMethodDecl(isConst(), parameterCountIs(0), isPublic(), in registerMatchers() 107 has(cxxMethodDecl(isConst(), parameterCountIs(0), isPublic(), in registerMatchers() 135 callee(cxxMethodDecl(hasName("size"))), WrongUse, in registerMatchers() 136 unless(hasAncestor(cxxMethodDecl( in registerMatchers() 151 cxxMethodDecl(ofClass(equalsBoundNode("container")))))) in registerMatchers() 170 unless(hasAncestor(cxxMethodDecl( in registerMatchers()
|
| H A D | RedundantSmartptrGetCheck.cpp | 29 callee(cxxMethodDecl(hasName("get"), in callToGet() 39 hasMethod(cxxMethodDecl( in callToGet() 56 has(cxxMethodDecl(hasName("operator->"), in registerMatchersForGetArrowStart() 58 has(cxxMethodDecl(hasName("operator*"), returns(qualType(references( in registerMatchersForGetArrowStart()
|
| H A D | ContainerContainsCheck.cpp | 29 callee(cxxMethodDecl(hasName("count"))), in registerMatchers() 35 callee(cxxMethodDecl(hasName("find"))), in registerMatchers() 40 callee(cxxMethodDecl(hasName("end"))), in registerMatchers()
|
| H A D | ContainerDataPointerCheck.cpp | 35 has(cxxMethodDecl(isPublic(), hasName("data")).bind("data"))) in registerMatchers() 65 const auto SubscriptOperator = callee(cxxMethodDecl(hasName("operator[]"))); in registerMatchers()
|
| H A D | RedundantStringInitCheck.cpp | 74 hasDeclaration(cxxMethodDecl(HasStringCtorName))), in registerMatchers() 78 hasDeclaration(cxxMethodDecl(HasStringCtorName)), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseEqualsDeleteCheck.cpp | 28 auto PrivateSpecialFn = cxxMethodDecl( in registerMatchers() 32 cxxMethodDecl( in registerMatchers() 37 cxxMethodDecl( in registerMatchers() 50 cxxMethodDecl(isDeleted(), unless(isPublic())).bind(DeletedNotPublic), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | UpgradeGoogletestCaseCheck.cpp | 139 cxxMethodDecl( in registerMatchers() 141 cxxMethodDecl( in registerMatchers() 148 cxxMethodDecl( in registerMatchers() 155 cxxMethodDecl( in registerMatchers() 162 cxxMethodDecl( in registerMatchers() 183 Finder->addMatcher(cxxMethodDecl(Methods, LocationFilter), this); in registerMatchers() 250 hasMethod(cxxMethodDecl(hasName(ReplacementMethod)))), in derivedTypeHasReplacementMethod()
|
| H A D | OverloadedUnaryAndCheck.cpp | 25 cxxMethodDecl(parameterCountIs(0), hasOverloadedOperatorName("&")) in registerMatchers() 30 Finder->addMatcher(functionDecl(unless(cxxMethodDecl()), parameterCountIs(1), in registerMatchers()
|
| H A D | DefaultArgumentsCheck.cpp | 21 cxxMethodDecl(anyOf(isOverride(), isVirtual()), in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | ASTContextParentMapTest.cpp | 30 cxxMethodDecl(hasParent(recordDecl(hasName("C")))))); in TEST() 57 cxxMethodDecl(hasName("f"), in TEST() 62 cxxMethodDecl(hasName("f"), in TEST() 67 cxxMethodDecl( in TEST()
|
| H A D | DeclPrinterTest.cpp | 653 cxxMethodDecl(ofClass(hasName("A"))).bind("id"), in TEST() 662 cxxMethodDecl(ofClass(hasName("A"))).bind("id"), in TEST() 672 cxxMethodDecl(ofClass(hasName("A"))).bind("id"), in TEST() 682 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST() 692 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST() 701 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST() 711 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST() 720 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST() 747 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST() 770 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/ |
| H A D | UncheckedOptionalAccessModel.cpp | 63 callee(cxxMethodDecl(hasName(MemberName), ofClass(optionalClass())))); in isOptionalMemberCallWithName() 71 callee(cxxMethodDecl(ofClass(optionalClass()))), in isOptionalOperatorCallWithName() 113 callee(cxxMethodDecl(ofClass(optionalClass()))), in isOptionalValueOrConversionAssignment() 114 unless(hasDeclaration(cxxMethodDecl( in isOptionalValueOrConversionAssignment() 121 callee(cxxMethodDecl(ofClass(optionalClass()))), in isOptionalNulloptAssignment() 137 callee(cxxMethodDecl(hasName("empty"))), in isValueOrStringEmptyCall() 140 callee(cxxMethodDecl(hasName("value_or"), in isValueOrStringEmptyCall() 151 callee(cxxMethodDecl(hasName("value_or"), in isValueOrNotEqX()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersNarrowingTest.cpp | 1310 callExpr(callee(cxxMethodDecl(hasName("x")))).bind("x"); in TEST_P() 1982 cxxMethodDecl(isFinal()))); in TEST_P() 2081 cxxMethodDecl(isOverride()))); in TEST_P() 2083 cxxMethodDecl(isOverride()))); in TEST_P() 2086 cxxMethodDecl(isOverride(), hasName("::Y::f")))); in TEST_P() 2600 cxxMethodDecl(hasName("a"), isDefinition()); in TEST_P() 3444 cxxMethodDecl(returns(booleanType())))); in TEST_P() 3446 cxxMethodDecl(returns(booleanType())))); in TEST_P() 3456 cxxMethodDecl(returns(voidType())))); in TEST_P() 3699 callee(cxxMethodDecl(hasName("data"))), in TEST_P() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | DontModifyStdNamespaceCheck.cpp | 89 functionDecl(unless(cxxMethodDecl()), isExplicitTemplateSpecialization(), in registerMatchers() 92 cxxMethodDecl(isExplicitTemplateSpecialization(), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | StringFindStartswithCheck.cpp | 43 callee(cxxMethodDecl(hasName("find")).bind("findfun")), in registerMatchers() 61 callee(cxxMethodDecl(hasName("rfind")).bind("findfun")), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | InefficientAlgorithmCheck.cpp | 43 callee(cxxMethodDecl(hasName("begin"))), in registerMatchers() 51 1, cxxMemberCallExpr(callee(cxxMethodDecl(hasName("end"))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | DeclRefExprUtils.cpp | 49 auto ConstMethodCallee = callee(cxxMethodDecl(isConst())); in constReferenceDeclRefExprs() 143 callee(cxxMethodDecl(isCopyAssignmentOperator()))) in isCopyAssignmentArgument()
|