Home
last modified time | relevance | path

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

1234

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DUnhandledSelfAssignmentCheck.cpp33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers()
39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers()
43 const auto HasNoSelfCheck = cxxMethodDecl(unless(anyOf( in registerMatchers()
53 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers()
62 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers()
74 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers()
77 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers()
90 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers()
95 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
DStringLiteralWithEmbeddedNulCheck.cpp43 hasDeclaration(cxxMethodDecl(hasName("basic_string")))), in registerMatchers()
47 hasDeclaration(cxxMethodDecl(hasName("basic_string"))), in registerMatchers()
DDanglingHandleCheck.cpp28 anyOf(cxxConstructExpr(hasDeclaration(cxxMethodDecl(ofClass(IsAHandle))), in handleFrom()
85 cxxOperatorCallExpr(callee(cxxMethodDecl(ofClass(isAMap()))), in makeContainerMatcher()
132 cxxOperatorCallExpr(callee(cxxMethodDecl(ofClass(IsAHandle))), in registerMatchersForVariables()
DInaccurateEraseCheck.cpp27 cxxMemberCallExpr(callee(cxxMethodDecl(hasName("end")))) in registerMatchers()
39 callee(cxxMethodDecl(hasName("erase"))), argumentCountIs(1), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUnconventionalAssignOperatorCheck.cpp21 const auto HasGoodReturnType = cxxMethodDecl(returns(lValueReferenceType( in registerMatchers()
29 cxxMethodDecl(unless(anyOf(isDeleted(), isPrivate(), isImplicit())), in registerMatchers()
33 cxxMethodDecl(IsAssign, hasParameter(0, parmVarDecl(hasType(IsSelf)))) in registerMatchers()
37 cxxMethodDecl(IsAssign, unless(HasGoodReturnType)).bind("ReturnType"), in registerMatchers()
45 cxxMethodDecl(IsSelfAssign, in registerMatchers()
51 cxxMethodDecl(IsSelfAssign, anyOf(isConst(), isVirtual())).bind("cv"), in registerMatchers()
64 const auto IsGoodAssign = cxxMethodDecl(IsAssign, HasGoodReturnType); in registerMatchers()
DUniqueptrResetReleaseCheck.cpp24 cxxMethodDecl(hasName("reset"), in registerMatchers()
30 callee(cxxMethodDecl( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
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()
DContainerSizeEmptyCheck.cpp32 has(cxxMethodDecl( in registerMatchers()
37 has(cxxMethodDecl(isConst(), parameterCountIs(0), isPublic(), in registerMatchers()
61 callee(cxxMethodDecl(hasName("size"))), WrongUse, in registerMatchers()
62 unless(hasAncestor(cxxMethodDecl( in registerMatchers()
94 cxxMethodDecl(ofClass(equalsBoundNode("container")))))) in registerMatchers()
DRedundantSmartptrGetCheck.cpp27 callee(cxxMethodDecl( in callToGet()
41 has(cxxMethodDecl(hasName("operator->"), in registerMatchersForGetArrowStart()
43 has(cxxMethodDecl(hasName("operator*"), returns(qualType(references( in registerMatchersForGetArrowStart()
DRedundantStringInitCheck.cpp82 hasDeclaration(cxxMethodDecl(hasStringCtorName))), in registerMatchers()
86 hasDeclaration(cxxMethodDecl(hasStringCtorName)), in registerMatchers()
/external/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp541 const auto IsLambda = cxxMethodDecl(ofClass(cxxRecordDecl(isLambda()))); in TEST()
563 callExpr(callee(cxxMethodDecl(hasName("x")))).bind("x"); in TEST()
605 cxxMethodDecl(hasParameter(0, hasType(asString("int")))))); in TEST()
936 cxxMethodDecl(isFinal()))); in TEST()
939 notMatches("class X { virtual void f(); };", cxxMethodDecl(isFinal()))); in TEST()
944 cxxMethodDecl(isVirtual(), hasName("::X::f")))); in TEST()
945 EXPECT_TRUE(notMatches("class X { int f(); };", cxxMethodDecl(isVirtual()))); in TEST()
951 cxxMethodDecl(isVirtualAsWritten(), hasName("::A::f")))); in TEST()
955 cxxMethodDecl(isVirtualAsWritten(), hasName("::B::f")))); in TEST()
960 cxxMethodDecl(isPure(), hasName("::X::f")))); in TEST()
[all …]
DASTMatchersTraversalTest.cpp315 StatementMatcher CallMethodX = callExpr(callee(cxxMethodDecl(hasName("x")))); in TEST()
475 cxxMethodDecl(hasParameter(0, varDecl())))); in TEST()
477 cxxMethodDecl(hasParameter(0, hasName("x"))))); in TEST()
482 cxxMethodDecl(hasParameter(42, varDecl())))); in TEST()
488 cxxMethodDecl(hasParameter(0, hasType(recordDecl(hasName("X"))))))); in TEST()
491 cxxMethodDecl(hasParameter(0, hasType(recordDecl(hasName("X"))))))); in TEST()
493 cxxMethodDecl(hasParameter( in TEST()
496 cxxMethodDecl(hasParameter( in TEST()
503 cxxMethodDecl(hasAnyParameter(hasType(recordDecl(hasName("X"))))))); in TEST()
506 cxxMethodDecl(hasAnyParameter(hasType(recordDecl(hasName("X"))))))); in TEST()
[all …]
/external/clang/unittests/AST/
DASTContextParentMapTest.cpp28 cxxMethodDecl(hasParent(recordDecl(hasName("C")))))); in TEST()
55 cxxMethodDecl(hasName("f"), in TEST()
60 cxxMethodDecl(hasName("f"), in TEST()
65 cxxMethodDecl( in TEST()
DDeclPrinterTest.cpp595 cxxMethodDecl(ofClass(hasName("A"))).bind("id"), in TEST()
604 cxxMethodDecl(ofClass(hasName("A"))).bind("id"), in TEST()
614 cxxMethodDecl(ofClass(hasName("A"))).bind("id"), in TEST()
624 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
635 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
645 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
655 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
665 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
693 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
717 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseEqualsDeleteCheck.cpp28 auto PrivateSpecialFn = cxxMethodDecl( in registerMatchers()
32 cxxMethodDecl( in registerMatchers()
37 cxxMethodDecl( in registerMatchers()
50 cxxMethodDecl(isDeleted(), unless(isPublic())).bind(DeletedNotPublic), in registerMatchers()
/external/llvm-project/clang/unittests/AST/
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()
DDeclPrinterTest.cpp704 cxxMethodDecl(ofClass(hasName("A"))).bind("id"), in TEST()
713 cxxMethodDecl(ofClass(hasName("A"))).bind("id"), in TEST()
723 cxxMethodDecl(ofClass(hasName("A"))).bind("id"), in TEST()
733 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
743 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
752 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
762 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
771 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
798 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
821 cxxMethodDecl(ofClass(hasName("Z"))).bind("id"), in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
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()
244 hasMethod(cxxMethodDecl(hasName(ReplacementMethod)))), in derivedTypeHasReplacementMethod()
DOverloadedUnaryAndCheck.cpp25 cxxMethodDecl(parameterCountIs(0), hasOverloadedOperatorName("&")) in registerMatchers()
30 Finder->addMatcher(functionDecl(unless(cxxMethodDecl()), parameterCountIs(1), in registerMatchers()
DDefaultArgumentsCheck.cpp21 cxxMethodDecl(anyOf(isOverride(), isVirtual()), in registerMatchers()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp846 const auto IsLambda = cxxMethodDecl(ofClass(cxxRecordDecl(isLambda()))); in TEST_P()
870 callExpr(callee(cxxMethodDecl(hasName("x")))).bind("x"); in TEST_P()
914 cxxMethodDecl(hasParameter(0, hasType(asString("int")))))); in TEST_P()
1478 cxxMethodDecl(isFinal()))); in TEST_P()
1481 notMatches("class X { virtual void f(); };", cxxMethodDecl(isFinal()))); in TEST_P()
1490 cxxMethodDecl(isVirtual(), hasName("::X::f")))); in TEST_P()
1491 EXPECT_TRUE(notMatches("class X { int f(); };", cxxMethodDecl(isVirtual()))); in TEST_P()
1501 cxxMethodDecl(isVirtualAsWritten(), hasName("::A::f")))); in TEST_P()
1505 cxxMethodDecl(isVirtualAsWritten(), hasName("::B::f")))); in TEST_P()
1514 cxxMethodDecl(isPure(), hasName("::X::f")))); in TEST_P()
[all …]
DASTMatchersTraversalTest.cpp371 StatementMatcher CallMethodX = callExpr(callee(cxxMethodDecl(hasName("x")))); in TEST()
916 cxxMethodDecl(hasParameter(0, varDecl())))); in TEST()
918 cxxMethodDecl(hasParameter(0, hasName("x"))))); in TEST()
927 cxxMethodDecl(hasParameter(42, varDecl())))); in TEST()
933 cxxMethodDecl(hasParameter(0, hasType(recordDecl(hasName("X"))))))); in TEST()
936 cxxMethodDecl(hasParameter(0, hasType(recordDecl(hasName("X"))))))); in TEST()
938 cxxMethodDecl(hasParameter( in TEST()
941 cxxMethodDecl(hasParameter( in TEST()
948 cxxMethodDecl(hasAnyParameter(hasType(recordDecl(hasName("X"))))))); in TEST()
951 cxxMethodDecl(hasAnyParameter(hasType(recordDecl(hasName("X"))))))); in TEST()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DDeclRefExprUtils.cpp49 auto ConstMethodCallee = callee(cxxMethodDecl(isConst())); in constReferenceDeclRefExprs()
132 callee(cxxMethodDecl(isCopyAssignmentOperator()))) in isCopyAssignmentArgument()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DInefficientAlgorithmCheck.cpp44 callee(cxxMethodDecl(hasName("begin"))), in registerMatchers()
53 callee(cxxMethodDecl(hasName("end"))), in registerMatchers()
DUnnecessaryCopyInitialization.cpp53 cxxMemberCallExpr(callee(cxxMethodDecl(returns(ConstReference))), in registerMatchers()
57 unless(callee(cxxMethodDecl()))) in registerMatchers()

1234