Home
last modified time | relevance | path

Searched refs:RetE (Results 1 – 7 of 7) sorted by relevance

/external/clang/lib/StaticAnalyzer/Checkers/
DStackAddrEscapeChecker.cpp37 const Expr *RetE) const;
92 const Expr *RetE) const { in EmitStackError()
108 report->addRange(RetE->getSourceRange()); in EmitStackError()
118 const Expr *RetE = RS->getRetValue(); in checkPreStmt() local
119 if (!RetE) in checkPreStmt()
121 RetE = RetE->IgnoreParens(); in checkPreStmt()
124 SVal V = C.getState()->getSVal(RetE, LCtx); in checkPreStmt()
150 if (const ExprWithCleanups *Cleanup = dyn_cast<ExprWithCleanups>(RetE)) in checkPreStmt()
151 RetE = Cleanup->getSubExpr(); in checkPreStmt()
152 if (isa<CXXConstructExpr>(RetE) && RetE->getType()->isRecordType()) in checkPreStmt()
[all …]
DReturnUndefChecker.cpp37 const Expr *RetE = RS->getRetValue(); in checkPreStmt() local
38 if (!RetE) in checkPreStmt()
41 if (!C.getState()->getSVal(RetE, C.getLocationContext()).isUndef()) in checkPreStmt()
56 report->addRange(RetE->getSourceRange()); in checkPreStmt()
57 bugreporter::trackNullOrUndefValue(N, RetE, *report); in checkPreStmt()
DReturnPointerRangeChecker.cpp38 const Expr *RetE = RS->getRetValue(); in checkPreStmt() local
39 if (!RetE) in checkPreStmt()
42 SVal V = state->getSVal(RetE, C.getLocationContext()); in checkPreStmt()
84 report->addRange(RetE->getSourceRange()); in checkPreStmt()
DStreamChecker.cpp453 const Expr *RetE = S->getRetValue(); in checkPreStmt() local
454 if (!RetE) in checkPreStmt()
458 SymbolRef Sym = state->getSVal(RetE, C.getLocationContext()).getAsSymbol(); in checkPreStmt()
DRetainCountChecker.cpp2745 static QualType GetReturnType(const Expr *RetE, ASTContext &Ctx) { in GetReturnType() argument
2746 QualType RetTy = RetE->getType(); in GetReturnType()
2750 if (const ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(RetE)) in GetReturnType()
3223 const Expr *RetE = S->getRetValue(); in checkPreStmt() local
3224 if (!RetE) in checkPreStmt()
3229 state->getSValAsScalarOrLoc(RetE, C.getLocationContext()).getAsLocSymbol(); in checkPreStmt()
/external/clang/lib/Sema/
DSemaLambda.cpp326 const Expr *RetE = RS->getRetValue(); in deduceClosureReturnType() local
327 if (!checkReturnValueType(Ctx, RetE, CSI.ReturnType, AlternateType)) { in deduceClosureReturnType()
331 << (RetE ? RetE->getType() : Ctx.VoidTy) << CSI.ReturnType in deduceClosureReturnType()
347 Expr *RetE = RS->getRetValue(); in deduceClosureReturnType() local
348 if (RetE->getType() == CSI.ReturnType) in deduceClosureReturnType()
353 assert(RetE->getType()->isIntegralOrUnscopedEnumerationType()); in deduceClosureReturnType()
354 ExprResult Casted = ImpCastExprToType(RetE, CSI.ReturnType, in deduceClosureReturnType()
/external/clang/lib/StaticAnalyzer/Core/
DBugReporterVisitors.cpp214 const Expr *RetE = Ret->getRetValue(); in VisitNode() local
215 assert(RetE && "Tracking a return value for a void function"); in VisitNode()
216 RetE = RetE->IgnoreParenCasts(); in VisitNode()
223 bugreporter::trackNullOrUndefValue(N, RetE, BR); in VisitNode()
226 if (RetE->getType()->isObjCObjectPointerType()) in VisitNode()
240 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(RetE)) in VisitNode()