Home
last modified time | relevance | path

Searched refs:cxxMethodDecl (Results 1 – 25 of 80) sorted by relevance

1234

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUnhandledSelfAssignmentCheck.cpp33 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 DStringLiteralWithEmbeddedNulCheck.cpp43 hasDeclaration(cxxMethodDecl(hasName("basic_string")))), in registerMatchers()
47 hasDeclaration(cxxMethodDecl(hasName("basic_string"))), in registerMatchers()
H A DInaccurateEraseCheck.cpp25 1, optionally(cxxMemberCallExpr(callee(cxxMethodDecl(hasName("end")))) in registerMatchers()
34 callee(cxxMethodDecl(hasName("erase"))), argumentCountIs(1), in registerMatchers()
H A DDanglingHandleCheck.cpp28 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 DUseAfterMoveCheck.cpp332 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 DUnconventionalAssignOperatorCheck.cpp22 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 DUniqueptrResetReleaseCheck.cpp40 member(cxxMethodDecl( in registerMatchers()
48 callee(memberExpr(member(cxxMethodDecl( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantStringCStrCheck.cpp81 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 DContainerSizeEmptyCheck.cpp30 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 DRedundantSmartptrGetCheck.cpp29 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 DContainerContainsCheck.cpp29 callee(cxxMethodDecl(hasName("count"))), in registerMatchers()
35 callee(cxxMethodDecl(hasName("find"))), in registerMatchers()
40 callee(cxxMethodDecl(hasName("end"))), in registerMatchers()
H A DContainerDataPointerCheck.cpp35 has(cxxMethodDecl(isPublic(), hasName("data")).bind("data"))) in registerMatchers()
65 const auto SubscriptOperator = callee(cxxMethodDecl(hasName("operator[]"))); in registerMatchers()
H A DRedundantStringInitCheck.cpp74 hasDeclaration(cxxMethodDecl(HasStringCtorName))), in registerMatchers()
78 hasDeclaration(cxxMethodDecl(HasStringCtorName)), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseEqualsDeleteCheck.cpp28 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 DUpgradeGoogletestCaseCheck.cpp139 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 DOverloadedUnaryAndCheck.cpp25 cxxMethodDecl(parameterCountIs(0), hasOverloadedOperatorName("&")) in registerMatchers()
30 Finder->addMatcher(functionDecl(unless(cxxMethodDecl()), parameterCountIs(1), in registerMatchers()
H A DDefaultArgumentsCheck.cpp21 cxxMethodDecl(anyOf(isOverride(), isVirtual()), in registerMatchers()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTContextParentMapTest.cpp30 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 DDeclPrinterTest.cpp653 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 DUncheckedOptionalAccessModel.cpp63 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 DASTMatchersNarrowingTest.cpp1310 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 DDontModifyStdNamespaceCheck.cpp89 functionDecl(unless(cxxMethodDecl()), isExplicitTemplateSpecialization(), in registerMatchers()
92 cxxMethodDecl(isExplicitTemplateSpecialization(), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DStringFindStartswithCheck.cpp43 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 DInefficientAlgorithmCheck.cpp43 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 DDeclRefExprUtils.cpp49 auto ConstMethodCallee = callee(cxxMethodDecl(isConst())); in constReferenceDeclRefExprs()
143 callee(cxxMethodDecl(isCopyAssignmentOperator()))) in isCopyAssignmentArgument()

1234