Home
last modified time | relevance | path

Searched refs:MemberExpr (Results 1 – 25 of 216) sorted by relevance

123456789

/external/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp106 else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e)) in CheckMallocArgument()
145 static const Decl *getDecl(const MemberExpr *ME) { in getDecl()
166 else if (const auto *ME = dyn_cast<MemberExpr>(E)) { in CheckExpr()
167 Erase<MemberExpr>(ME, PredTrue); in CheckExpr()
220 else if (const auto *ME = dyn_cast<MemberExpr>(E)) in CheckAssignmentExpr()
221 Erase<MemberExpr>(ME, pred); in CheckAssignmentExpr()
DDereferenceChecker.cpp73 const MemberExpr *ME = cast<MemberExpr>(Ex); in AddDerefSource()
156 const MemberExpr *M = cast<MemberExpr>(S); in reportBug()
DVirtualCallChecker.cpp143 if (MemberExpr *CME = dyn_cast<MemberExpr>(CE->getCallee())) { in VisitCXXMemberCallExpr()
DIdenticalExprChecker.cpp483 const MemberExpr *MemberStmt1 = cast<MemberExpr>(Stmt1); in isIdenticalStmt()
484 const MemberExpr *MemberStmt2 = cast<MemberExpr>(Stmt2); in isIdenticalStmt()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp105 else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e)) in CheckMallocArgument()
144 static const Decl *getDecl(const MemberExpr *ME) { in getDecl()
165 else if (const auto *ME = dyn_cast<MemberExpr>(E)) { in CheckExpr()
166 Erase<MemberExpr>(ME, PredTrue); in CheckExpr()
222 else if (const auto *ME = dyn_cast<MemberExpr>(E)) in CheckAssignmentExpr()
223 Erase<MemberExpr>(ME, pred); in CheckAssignmentExpr()
DInvalidatedIteratorChecker.cpp32 check::PreStmt<MemberExpr>> {
46 void checkPreStmt(const MemberExpr *ME, CheckerContext &C) const;
107 void InvalidatedIteratorChecker::checkPreStmt(const MemberExpr *ME, in checkPreStmt()
DDereferenceChecker.cpp76 const MemberExpr *ME = cast<MemberExpr>(Ex); in AddDerefSource()
176 const MemberExpr *M = cast<MemberExpr>(S); in reportBug()
DIdenticalExprChecker.cpp487 const MemberExpr *MemberStmt1 = cast<MemberExpr>(Stmt1); in isIdenticalStmt()
488 const MemberExpr *MemberStmt2 = cast<MemberExpr>(Stmt2); in isIdenticalStmt()
DVirtualCallChecker.cpp66 if (const MemberExpr *CME = dyn_cast<MemberExpr>(CE->getCallee())) { in REGISTER_MAP_WITH_PROGRAMSTATE()
DIteratorRangeChecker.cpp33 check::PreStmt<MemberExpr>> {
55 void checkPreStmt(const MemberExpr *ME, CheckerContext &C) const;
186 void IteratorRangeChecker::checkPreStmt(const MemberExpr *ME, in checkPreStmt()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DMakeMemberFunctionConstCheck.cpp117 if (const auto *Member = dyn_cast<MemberExpr>(Parent)) in VisitUser()
125 bool VisitUser(const MemberExpr *Member, bool OnConstObject) { in VisitUser()
161 if (const auto *M = dyn_cast_or_null<MemberExpr>(Parent)) in VisitUser()
192 } else if (const auto *Member = dyn_cast_or_null<MemberExpr>(Parent)) { in VisitCXXThisExpr()
DMisplacedArrayIndexCheck.cpp42 !isa<MemberExpr>(RHSE)) in check()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc135 bool VisitMemberExpr(MemberExpr *M) { in VisitMemberExpr()
223 bool VisitMemberExpr(MemberExpr *M) { in VisitMemberExpr()
237 if (MemberExpr *Memb = dyn_cast<MemberExpr>(Call->getCallee()->IgnoreImplicit())) { in VisitCallExpr()
286 if (MemberExpr *Memb = dyn_cast<MemberExpr>(Call->getCallee()->IgnoreImplicit())) { in assignsExtPtr()
435 bool ProbeVisitor::VisitMemberExpr(MemberExpr *E) { in VisitMemberExpr()
441 for (MemberExpr *M = E; M; M = dyn_cast<MemberExpr>(M->getBase())) { in VisitMemberExpr()
549 for (MemberExpr *M = dyn_cast<MemberExpr>(E->IgnoreParenCasts()); M; in isMemberDereference()
550 M = dyn_cast<MemberExpr>(M->getBase()->IgnoreParenCasts())) { in isMemberDereference()
563 MemberExpr *M; in IsContextMemberExpr()
570 M = dyn_cast<MemberExpr>(Ex); in IsContextMemberExpr()
[all …]
/external/clang/unittests/AST/
DSourceLocationTest.cpp104 TEST(MemberExpr, ImplicitMemberRange) { in TEST() argument
105 RangeVerifier<MemberExpr> Verifier; in TEST()
112 class MemberExprArrowLocVerifier : public RangeVerifier<MemberExpr> {
114 SourceRange getRange(const MemberExpr &Node) override { in getRange()
119 TEST(MemberExpr, ArrowRange) { in TEST() argument
127 TEST(MemberExpr, MacroArrowRange) { in TEST() argument
136 TEST(MemberExpr, ImplicitArrowRange) { in TEST() argument
/external/clang/lib/Sema/
DScopeInfo.cpp71 const MemberExpr *ME = cast<MemberExpr>(E); in getBaseInfo()
233 else if (MemberExpr *ME = dyn_cast<MemberExpr>(E)) in getPotentialVariableCapture()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUniqueptrResetReleaseCheck.cpp94 const auto *ResetMember = Result.Nodes.getNodeAs<MemberExpr>("reset_member"); in check()
96 Result.Nodes.getNodeAs<MemberExpr>("release_member"); in check()
/external/llvm-project/clang/lib/Sema/
DScopeInfo.cpp81 const MemberExpr *ME = cast<MemberExpr>(E); in getBaseInfo()
238 } else if (auto *ME = dyn_cast<MemberExpr>(E)) { in visitPotentialCaptures()
/external/llvm-project/clang/unittests/AST/
DSourceLocationTest.cpp159 TEST(MemberExpr, ImplicitMemberRange) { in TEST() argument
160 RangeVerifier<MemberExpr> Verifier; in TEST()
167 class MemberExprArrowLocVerifier : public RangeVerifier<MemberExpr> {
169 SourceRange getRange(const MemberExpr &Node) override { in getRange()
174 TEST(MemberExpr, ArrowRange) { in TEST() argument
182 TEST(MemberExpr, MacroArrowRange) { in TEST() argument
191 TEST(MemberExpr, ImplicitArrowRange) { in TEST() argument
/external/llvm-project/clang/include/clang/Sema/
DTypoCorrection.h37 class MemberExpr; variable
383 MemberExpr *ME = nullptr);
394 MemberExpr *MemberFn;
/external/llvm-project/clang/lib/AST/
DExpr.cpp101 } else if (const MemberExpr *ME = dyn_cast<MemberExpr>(E)) { in skipRValueSubobjectAdjustments()
1361 if (MemberExpr *ME = dyn_cast<MemberExpr>(CEE)) in getReferencedDeclOfCallee()
1490 MemberExpr::MemberExpr(Expr *Base, bool IsArrow, SourceLocation OperatorLoc, in MemberExpr() function in MemberExpr
1508 MemberExpr *MemberExpr::Create( in Create()
1523 void *Mem = C.Allocate(Size, alignof(MemberExpr)); in Create()
1524 MemberExpr *E = new (Mem) MemberExpr(Base, IsArrow, OperatorLoc, MemberDecl, in Create()
1564 MemberExpr *MemberExpr::CreateEmpty(const ASTContext &Context, in CreateEmpty()
1576 void *Mem = Context.Allocate(Size, alignof(MemberExpr)); in CreateEmpty()
1577 return new (Mem) MemberExpr(EmptyShell()); in CreateEmpty()
1580 void MemberExpr::setMemberDecl(ValueDecl *D) { in setMemberDecl()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProTypeUnionAccessCheck.cpp27 const auto *Matched = Result.Nodes.getNodeAs<MemberExpr>("expr"); in check()
DPreferMemberInitializerCheck.cpp64 const auto *ME = dyn_cast<MemberExpr>(BO->getLHS()->IgnoreParenImpCasts()); in isAssignmentToMemberOf()
79 dyn_cast<MemberExpr>(COCE->getArg(0)->IgnoreParenImpCasts()); in isAssignmentToMemberOf()
/external/llvm-project/clang/unittests/Tooling/RecursiveASTVisitorTests/
DAttr.cpp19 bool VisitMemberExpr(MemberExpr *ME) { in VisitMemberExpr()
/external/clang/lib/AST/
DExpr.cpp76 } else if (const MemberExpr *ME = dyn_cast<MemberExpr>(E)) { in skipRValueSubobjectAdjustments()
1203 if (MemberExpr *ME = dyn_cast<MemberExpr>(CEE)) in getCalleeDecl()
1386 else if (const auto *ME = dyn_cast<MemberExpr>(E)) in UnaryExprOrTypeTraitExpr()
1402 MemberExpr *MemberExpr::Create( in Create()
1420 void *Mem = C.Allocate(Size, llvm::alignOf<MemberExpr>()); in Create()
1421 MemberExpr *E = new (Mem) in Create()
1422 MemberExpr(base, isarrow, OperatorLoc, memberdecl, nameinfo, ty, vk, ok); in Create()
1462 SourceLocation MemberExpr::getLocStart() const { in getLocStart()
1476 SourceLocation MemberExpr::getLocEnd() const { in getLocEnd()
2005 Loc = cast<MemberExpr>(this)->getMemberLoc(); in isUnusedResultAWarning()
[all …]
/external/clang/include/clang/Sema/
DTypoCorrection.h337 MemberExpr *ME = nullptr);
345 MemberExpr *MemberFn;

123456789