Home
last modified time | relevance | path

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

123

/external/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp106 else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e)) in CheckMallocArgument()
146 const Decl *getDecl(const MemberExpr *ME) { return ME->getMemberDecl(); } 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.cpp74 const MemberExpr *ME = cast<MemberExpr>(Ex); in AddDerefSource()
147 const MemberExpr *M = cast<MemberExpr>(S); in reportBug()
DIdenticalExprChecker.cpp485 const MemberExpr *MemberStmt1 = cast<MemberExpr>(Stmt1); in isIdenticalStmt()
486 const MemberExpr *MemberStmt2 = cast<MemberExpr>(Stmt2); in isIdenticalStmt()
DVirtualCallChecker.cpp143 if (MemberExpr *CME = dyn_cast<MemberExpr>(CE->getCallee())) { in VisitCXXMemberCallExpr()
/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.cpp70 const MemberExpr *ME = cast<MemberExpr>(E); in getBaseInfo()
230 else if (MemberExpr *ME = dyn_cast<MemberExpr>(E)) in getPotentialVariableCapture()
DSemaFixItUtils.cpp85 isa<MemberExpr>(Expr) || in tryToFixConversion()
DSemaExpr.cpp3699 } else if (MemberExpr *ME = dyn_cast<MemberExpr>(E)) { in CheckAlignOfExpr()
4374 unsigned NumArgs, MemberExpr *ME) in FunctionCallCCC()
4395 MemberExpr *ME = dyn_cast<MemberExpr>(Fn); in TryTypoCorrectionForCall()
4972 } else if (isa<MemberExpr>(NakedFn)) in ActOnCallExpr()
4973 NDecl = cast<MemberExpr>(NakedFn)->getMemberDecl(); in ActOnCallExpr()
8600 if (MemberExpr* Mem = dyn_cast<MemberExpr>(E)) { in getCompareDecl()
9205 const MemberExpr *ME = dyn_cast<MemberExpr>(E); in IsReadonlyMessage()
9285 if (const MemberExpr *ME = dyn_cast<MemberExpr>(E)) { in DiagnoseConstAssignment()
9500 MemberExpr *ML = dyn_cast<MemberExpr>(LHSExpr); in CheckIdentityFieldAssignment()
9501 MemberExpr *MR = dyn_cast<MemberExpr>(RHSExpr); in CheckIdentityFieldAssignment()
[all …]
DSemaChecking.cpp5958 MemberExpr *M = cast<MemberExpr>(E); in EvalVal()
7581 } else if (const MemberExpr *M = dyn_cast<MemberExpr>(E)) { in CheckForReference()
7692 } else if (MemberExpr *M = dyn_cast<MemberExpr>(E)) { in DiagnoseAlwaysNonNullPointer()
8022 } else if (MemberExpr *ME = dyn_cast<MemberExpr>(E)) { in getObject()
8575 if (const MemberExpr *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
8660 if (const MemberExpr *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
8787 if (MemberExpr *member = dyn_cast<MemberExpr>(e)) { in findRetainCycleOwner()
9463 const MemberExpr *LHSME = dyn_cast<MemberExpr>(LHSExpr); in DiagnoseSelfMove()
9464 const MemberExpr *RHSME = dyn_cast<MemberExpr>(RHSExpr); in DiagnoseSelfMove()
9475 LHSME = dyn_cast<MemberExpr>(LHSBase); in DiagnoseSelfMove()
[all …]
/external/clang/lib/AST/
DExpr.cpp76 } else if (const MemberExpr *ME = dyn_cast<MemberExpr>(E)) { in skipRValueSubobjectAdjustments()
1215 if (MemberExpr *ME = dyn_cast<MemberExpr>(CEE)) in getCalleeDecl()
1400 else if (const auto *ME = dyn_cast<MemberExpr>(E)) in UnaryExprOrTypeTraitExpr()
1416 MemberExpr *MemberExpr::Create( in Create()
1422 std::size_t Size = sizeof(MemberExpr); in Create()
1435 void *Mem = C.Allocate(Size, llvm::alignOf<MemberExpr>()); in Create()
1436 MemberExpr *E = new (Mem) in Create()
1437 MemberExpr(base, isarrow, OperatorLoc, memberdecl, nameinfo, ty, vk, ok); in Create()
1476 SourceLocation MemberExpr::getLocStart() const { in getLocStart()
1490 SourceLocation MemberExpr::getLocEnd() const { in getLocEnd()
[all …]
DExprClassification.cpp29 static Cl::Kinds ClassifyMemberExpr(ASTContext &Ctx, const MemberExpr *E);
215 return ClassifyMemberExpr(Ctx, cast<MemberExpr>(E)); in ClassifyInternal()
457 static Cl::Kinds ClassifyMemberExpr(ASTContext &Ctx, const MemberExpr *E) { in ClassifyMemberExpr()
/external/clang/include/clang/Sema/
DTypoCorrection.h331 MemberExpr *ME = nullptr);
339 MemberExpr *MemberFn;
DScopeInfo.h745 assert(isa<DeclRefExpr>(VarExpr) || isa<MemberExpr>(VarExpr)); in addPotentialCapture()
798 || isa<MemberExpr>(CapturingVarExpr)); in markVariableExprAsNonODRUsed()
803 || isa<MemberExpr>(CapturingVarExpr)); in isVariableExprMarkedAsNonODRUsed()
/external/clang/lib/CodeGen/
DCGClass.cpp1245 MemberExpr *ME = dyn_cast<MemberExpr>(BO->getLHS()); in getMemcpyableField()
1256 MemberExpr *ME2 = dyn_cast<MemberExpr>(RHS); in getMemcpyableField()
1264 MemberExpr *IOA = dyn_cast<MemberExpr>(MCE->getImplicitObjectArgument()); in getMemcpyableField()
1270 MemberExpr *Arg0 = dyn_cast<MemberExpr>(MCE->getArg(0)); in getMemcpyableField()
1284 MemberExpr *ME = dyn_cast<MemberExpr>(DUO->getSubExpr()); in getMemcpyableField()
1296 MemberExpr *ME2 = dyn_cast<MemberExpr>(SUO->getSubExpr()); in getMemcpyableField()
2666 if (const MemberExpr *ME = dyn_cast<MemberExpr>(Base)) in CanDevirtualizeMemberFunctionCall()
/external/clang/lib/Analysis/
DThreadSafetyCommon.cpp83 const MemberExpr *ME = dyn_cast<MemberExpr>(E->IgnoreParenCasts()); in isCalleeArrow()
106 if (const MemberExpr *ME = dyn_cast<MemberExpr>(DeclExp)) { in translateAttrExpr()
213 return translateMemberExpr(cast<MemberExpr>(S), Ctx); in translate()
334 til::SExpr *SExprBuilder::translateMemberExpr(const MemberExpr *ME, in translateMemberExpr()
DReachableCode.cpp203 return isConfigurationValue(cast<MemberExpr>(S)->getMemberDecl(), PP); in isConfigurationValue()
535 const MemberExpr *ME = cast<MemberExpr>(S); in GetUnreachableLoc()
/external/clang/unittests/Tooling/
DRecursiveASTVisitorTest.cpp105 bool VisitMemberExpr(MemberExpr *ME) { in VisitMemberExpr()
/external/clang/include/clang/AST/
DEvaluatedExprVisitor.h49 void VisitMemberExpr(PTR(MemberExpr) E) { in VisitMemberExpr()
/external/clang/lib/ARCMigrate/
DTransRetainReleaseDealloc.cpp303 if (MemberExpr *ME = dyn_cast<MemberExpr>(E)) in getReferencedDecl()
DTransUnbridgedCasts.cpp183 while (isa<MemberExpr>(base)) in transformNonObjCToObjCCast()
184 base = cast<MemberExpr>(base)->getBase()->IgnoreParenImpCasts(); in transformNonObjCToObjCCast()
/external/clang/tools/libclang/
DIndexBody.cpp47 bool VisitMemberExpr(MemberExpr *E) { in VisitMemberExpr()
DCXCursor.cpp1468 const MemberExpr *ME = nullptr; in clang_Cursor_isDynamicCall()
1469 if (isa<MemberExpr>(E)) in clang_Cursor_isDynamicCall()
1470 ME = cast<MemberExpr>(E); in clang_Cursor_isDynamicCall()
1472 ME = dyn_cast_or_null<MemberExpr>(CE->getCallee()); in clang_Cursor_isDynamicCall()
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp892 MemberExpr *ME = new (Context) in getIvarAccessString()
893 MemberExpr(PE, true, SourceLocation(), FD, SourceLocation(), in getIvarAccessString()
2768 MemberExpr *ArrayLiteralME = new (Context) in RewriteObjCArrayLiteralExpr()
2769 MemberExpr(NSArrayCallExpr, false, SourceLocation(), ARRFD, in RewriteObjCArrayLiteralExpr()
2900 MemberExpr *DictLiteralValueME = new (Context) in RewriteObjCDictionaryLiteralExpr()
2901 MemberExpr(NSValueCallExpr, false, SourceLocation(), ARRFD, in RewriteObjCDictionaryLiteralExpr()
2914 MemberExpr *DictLiteralKeyME = new (Context) in RewriteObjCDictionaryLiteralExpr()
2915 MemberExpr(NSKeyCallExpr, false, SourceLocation(), ARRFD, in RewriteObjCDictionaryLiteralExpr()
3223 MemberExpr *ME = new (Context) in SynthMsgSendStretCallExpr()
3224 MemberExpr(STCE, false, SourceLocation(), FieldD, SourceLocation(), in SynthMsgSendStretCallExpr()
[all …]
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h901 const internal::VariadicDynCastAllOfMatcher<Stmt, MemberExpr> memberExpr;
3518 AST_MATCHER(MemberExpr, isArrow) { in AST_MATCHER() argument
3617 AST_MATCHER_P(MemberExpr, member, in AST_MATCHER_P() argument
3634 AST_MATCHER_P(MemberExpr, hasObjectExpression, in AST_MATCHER_P() argument
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DPathDiagnostic.h36 class MemberExpr; variable
227 static PathDiagnosticLocation createMemberLoc(const MemberExpr *ME,

123