Home
last modified time | relevance | path

Searched refs:memberExpr (Results 1 – 25 of 48) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DShrinkToFitCheck.cpp25 memberExpr(member(valueDecl().bind("ContainerDecl"))); in registerMatchers()
33 expr(anyOf(memberExpr(member(equalsBoundNode("ContainerDecl"))), in registerMatchers()
36 memberExpr(member(equalsBoundNode("ContainerDecl")))))), in registerMatchers()
45 has(ignoringParenImpCasts(memberExpr(traverse( in registerMatchers()
DUseEqualsDefaultCheck.cpp54 memberExpr(hasObjectExpression(declRefExpr(to(varDecl(equalsNode(Var))))), in accessToFieldInVar()
183 auto LHS = memberExpr(hasObjectExpression(cxxThisExpr()), in isCopyAssignmentAndCanBeDefaulted()
/external/llvm-project/clang/unittests/AST/
DDataCollectionTest.cpp116 ASSERT_TRUE(isStmtHashEqual(memberExpr().bind("id"), in TEST()
119 ASSERT_TRUE(isStmtHashEqual(memberExpr().bind("id"), in TEST()
122 ASSERT_TRUE(isStmtHashEqual(memberExpr().bind("id"), in TEST()
125 ASSERT_FALSE(isStmtHashEqual(memberExpr().bind("id"), in TEST()
DStmtPrinterTest.cpp208 CPPSource, memberExpr(anything()).bind("id"), "field", in TEST()
213 CPPSource, memberExpr(anything()).bind("id"), "this->field")); in TEST()
DSourceLocationTest.cpp164 memberExpr())); in TEST()
179 memberExpr())); in TEST()
188 memberExpr())); in TEST()
196 memberExpr())); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSpuriouslyWakeUpFunctionsCheck.cpp31 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers()
38 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers()
45 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers()
DBoolPointerImplicitConversionCheck.cpp29 memberExpr().bind("expr"))))), in registerMatchers()
82 memberExpr(hasDeclaration(equalsNode(D))))); in check()
/external/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp761 memberExpr(isArrow()))); in TEST()
763 memberExpr(isArrow()))); in TEST()
765 memberExpr(isArrow()))); in TEST()
770 memberExpr(isArrow()))); in TEST()
772 memberExpr(isArrow()))); in TEST()
774 memberExpr(isArrow()))); in TEST()
779 memberExpr(isArrow()))); in TEST()
781 memberExpr(isArrow()))); in TEST()
783 memberExpr(isArrow()))); in TEST()
1354 memberExpr(member(hasName("first"))))); in TEST()
[all …]
DASTMatchersNodeTest.cpp414 EXPECT_TRUE(notMatches("class Y { void x() {} };", memberExpr())); in TEST()
418 EXPECT_TRUE(matches("class Y { void x() { x(); } };", memberExpr())); in TEST()
423 matches("class Y { void x() { this->y; } int y; };", memberExpr())); in TEST()
425 matches("class Y { void x() { y; } int y; };", memberExpr())); in TEST()
427 matches("class Y { void x() { Y y; y.y; } int y; };", memberExpr())); in TEST()
432 memberExpr())); in TEST()
434 memberExpr())); in TEST()
436 memberExpr())); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DDeleteNullPointerCheck.cpp28 cxxDeleteExpr(has(castExpr(has(memberExpr(hasDeclaration( in registerMatchers()
34 memberExpr(hasDeclaration(fieldDecl().bind("deletedMemberPointer"))))); in registerMatchers()
DRedundantSmartptrGetCheck.cpp26 unless(callee(memberExpr(hasObjectExpression(cxxThisExpr())))), in callToGet()
51 memberExpr(expr().bind("memberExpr"), isArrow(), in registerMatchersForGetArrowStart()
DStringCompareCheck.cpp31 callee(memberExpr().bind("str1"))); in registerMatchers()
DStaticAccessedThroughInstanceCheck.cpp41 memberExpr(hasDeclaration(anyOf(cxxMethodDecl(isStaticStorageClass()), in registerMatchers()
DSimplifySubscriptExprCheck.cpp37 has(memberExpr().bind("member")), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DMutatingCopyCheck.cpp25 memberExpr(), in registerMatchers()
40 const auto MemberExprOrSelf = anyOf(memberExpr(), cxxThisExpr()); in registerMatchers()
DProperlySeededRandomGeneratorCheck.cpp51 has(memberExpr(has(declRefExpr(RandomGeneratorEngineTypeMatcher)), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUniqueptrResetReleaseCheck.cpp22 on(expr().bind("left")), callee(memberExpr().bind("reset_member")), in registerMatchers()
29 callee(memberExpr().bind("release_member")), in registerMatchers()
/external/clang/unittests/AST/
DSourceLocationTest.cpp109 memberExpr())); in TEST()
124 memberExpr())); in TEST()
133 memberExpr())); in TEST()
141 memberExpr())); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProTypeUnionAccessCheck.cpp21 memberExpr(hasObjectExpression(hasType(recordDecl(isUnion())))) in registerMatchers()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp1112 memberExpr(isArrow()))); in TEST_P()
1114 matches("class Y { void x() { y; } int y; };", memberExpr(isArrow()))); in TEST_P()
1116 memberExpr(isArrow()))); in TEST_P()
1131 memberExpr(isArrow()))); in TEST_P()
1133 memberExpr(isArrow()))); in TEST_P()
1135 memberExpr(isArrow()))); in TEST_P()
1149 matches("class Y { void x() { this->x(); } };", memberExpr(isArrow()))); in TEST_P()
1150 EXPECT_TRUE(matches("class Y { void x() { x(); } };", memberExpr(isArrow()))); in TEST_P()
1152 memberExpr(isArrow()))); in TEST_P()
2187 memberExpr(member(hasName("first"))))); in TEST_P()
[all …]
/external/llvm-project/clang/unittests/Tooling/
DStencilTest.cpp330 using clang::ast_matchers::memberExpr; in TEST_F()
342 returnStmt(hasReturnValue(ignoringImplicit(memberExpr( in TEST_F()
352 using clang::ast_matchers::memberExpr; in TEST_F()
363 matchStmt(Snippet, returnStmt(hasReturnValue(ignoringImplicit(memberExpr( in TEST_F()
DRangeSelectorTest.cpp369 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
388 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
404 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
420 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DPreferRegisterOverUnsignedCheck.cpp30 has(memberExpr(hasDeclaration( in registerMatchers()
/external/llvm-project/clang/lib/Analysis/
DExprMutationAnalyzer.cpp291 callee(memberExpr(hasDeclaration(NonConstMethod), in findDirectMutation()
324 memberExpr(hasObjectExpression(canResolveToExpr(equalsNode(Exp))))), in findDirectMutation()
383 match(findAll(expr(anyOf(memberExpr(hasObjectExpression( in findMemberMutation()
526 memberExpr(hasObjectExpression( in findReferenceMutation()
/external/llvm-project/clang-tools-extra/clang-tidy/objc/
DNSInvocationArgumentLifetimeCheck.cpp111 anyOf(hasDescendant(memberExpr(isObjCManagedLifetime())), in registerMatchers()

12