Home
last modified time | relevance | path

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

/external/clang/lib/StaticAnalyzer/Checkers/
DReturnUndefChecker.cpp31 void emitUndef(CheckerContext &C, const Expr *RetE) const;
32 void checkReference(CheckerContext &C, const Expr *RetE,
41 const Expr *RetE = RS->getRetValue(); in checkPreStmt() local
42 if (!RetE) in checkPreStmt()
44 SVal RetVal = C.getSVal(RetE); in checkPreStmt()
65 RetE->getType()->isVoidType()) in checkPreStmt()
68 emitUndef(C, RetE); in checkPreStmt()
76 checkReference(C, RetE, RetVal.castAs<DefinedOrUnknownSVal>()); in checkPreStmt()
81 static void emitBug(CheckerContext &C, BuiltinBug &BT, const Expr *RetE, in emitBug() argument
89 Report->addRange(RetE->getSourceRange()); in emitBug()
[all …]
DStackAddrEscapeChecker.cpp39 const Expr *RetE) const;
96 const Expr *RetE) const { in EmitStackError()
112 report->addRange(RetE->getSourceRange()); in EmitStackError()
122 const Expr *RetE = RS->getRetValue(); in checkPreStmt() local
123 if (!RetE) in checkPreStmt()
125 RetE = RetE->IgnoreParens(); in checkPreStmt()
128 SVal V = C.getState()->getSVal(RetE, LCtx); in checkPreStmt()
154 if (const ExprWithCleanups *Cleanup = dyn_cast<ExprWithCleanups>(RetE)) in checkPreStmt()
155 RetE = Cleanup->getSubExpr(); in checkPreStmt()
156 if (isa<CXXConstructExpr>(RetE) && RetE->getType()->isRecordType()) in checkPreStmt()
[all …]
DReturnPointerRangeChecker.cpp39 const Expr *RetE = RS->getRetValue(); in checkPreStmt() local
40 if (!RetE) in checkPreStmt()
43 SVal V = state->getSVal(RetE, C.getLocationContext()); in checkPreStmt()
85 report->addRange(RetE->getSourceRange()); in checkPreStmt()
DRetainCountChecker.cpp1356 if (Optional<RetEffect> RetE = getRetEffectFromAnnotations(RetTy, FD)) in updateSummaryFromAnnotations() local
1357 Template->setRetEffect(*RetE); in updateSummaryFromAnnotations()
1397 if (Optional<RetEffect> RetE = getRetEffectFromAnnotations(RetTy, MD)) in updateSummaryFromAnnotations() local
1398 Template->setRetEffect(*RetE); in updateSummaryFromAnnotations()
2908 static QualType GetReturnType(const Expr *RetE, ASTContext &Ctx) { in GetReturnType() argument
2909 QualType RetTy = RetE->getType(); in GetReturnType()
2913 if (const ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(RetE)) in GetReturnType()
3436 const Expr *RetE = S->getRetValue(); in checkPreStmt() local
3437 if (!RetE) in checkPreStmt()
3442 state->getSValAsScalarOrLoc(RetE, C.getLocationContext()).getAsLocSymbol(); in checkPreStmt()
/external/clang/lib/StaticAnalyzer/Core/
DBugReporterVisitors.cpp257 const Expr *RetE = Ret->getRetValue(); in visitNodeInitial() local
258 assert(RetE && "Tracking a return value for a void function"); in visitNodeInitial()
262 if (RetE->isGLValue()) { in visitNodeInitial()
264 SVal RValue = State->getRawSVal(*LValue, RetE->getType()); in visitNodeInitial()
275 RetE = RetE->IgnoreParenCasts(); in visitNodeInitial()
281 ReturnVisitor::addVisitorIfNecessary(N, RetE, BR, in visitNodeInitial()
287 bugreporter::trackNullOrUndefValue(N, RetE, BR, /*IsArg*/ false, in visitNodeInitial()
303 if (RetE->getType()->isObjCObjectPointerType()) in visitNodeInitial()
321 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(RetE)) in visitNodeInitial()
/external/clang/lib/Sema/
DSemaLambda.cpp687 const Expr *RetE = RS->getRetValue(); in deduceClosureReturnType() local
690 (RetE ? RetE->getType() : Context.VoidTy).getUnqualifiedType(); in deduceClosureReturnType()