Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DReturnUndefChecker.cpp30 void emitUndef(CheckerContext &C, const Expr *RetE) const;
31 void checkReference(CheckerContext &C, const Expr *RetE,
40 const Expr *RetE = RS->getRetValue(); in checkPreStmt() local
41 if (!RetE) in checkPreStmt()
43 SVal RetVal = C.getSVal(RetE); in checkPreStmt()
64 RetE->getType()->isVoidType()) in checkPreStmt()
67 emitUndef(C, RetE); in checkPreStmt()
75 checkReference(C, RetE, RetVal.castAs<DefinedOrUnknownSVal>()); in checkPreStmt()
80 static void emitBug(CheckerContext &C, BuiltinBug &BT, const Expr *RetE, in emitBug() argument
89 Report->addRange(RetE->getSourceRange()); in emitBug()
[all …]
H A DStackAddrEscapeChecker.cpp58 const Expr *RetE) const;
154 const Expr *RetE) const { in EmitStackError()
169 report->addRange(RetE->getSourceRange()); in EmitStackError()
257 const Expr *RetE = RS->getRetValue(); in checkPreStmt() local
258 if (!RetE) in checkPreStmt()
260 RetE = RetE->IgnoreParens(); in checkPreStmt()
262 SVal V = C.getSVal(RetE); in checkPreStmt()
277 if (const ExprWithCleanups *Cleanup = dyn_cast<ExprWithCleanups>(RetE)) in checkPreStmt()
278 RetE = Cleanup->getSubExpr(); in checkPreStmt()
279 if (isa<CXXConstructExpr>(RetE) && RetE->getType()->isRecordType()) in checkPreStmt()
[all …]
H A DReturnPointerRangeChecker.cpp39 const Expr *RetE = RS->getRetValue(); in checkPreStmt() local
40 if (!RetE) in checkPreStmt()
43 SVal V = C.getSVal(RetE); in checkPreStmt()
90 report->addRange(RetE->getSourceRange()); in checkPreStmt()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountChecker.cpp394 static QualType GetReturnType(const Expr *RetE, ASTContext &Ctx) { in GetReturnType() argument
395 QualType RetTy = RetE->getType(); in GetReturnType()
399 if (const ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(RetE)) in GetReturnType()
978 const Expr *RetE = S->getRetValue(); in processReturn() local
979 if (!RetE) in processReturn()
985 SymbolRef Sym = state->getSValAsScalarOrLoc(RetE, C.getLocationContext()) in processReturn()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DBugReporterVisitors.cpp1049 const Expr *RetE = Ret->getRetValue(); in visitNodeInitial() local
1050 assert(RetE && "Tracking a return value for a void function"); in visitNodeInitial()
1054 if (RetE->isGLValue()) { in visitNodeInitial()
1056 SVal RValue = State->getRawSVal(*LValue, RetE->getType()); in visitNodeInitial()
1067 RetE = RetE->IgnoreParenCasts(); in visitNodeInitial()
1071 N, RetE, BR, TKind, EnableNullFPSuppression); in visitNodeInitial()
1089 if (RetE->getType()->isObjCObjectPointerType()) { in visitNodeInitial()
1127 if (const auto *DR = dyn_cast<DeclRefExpr>(RetE)) in visitNodeInitial()
H A DExprEngineCXX.cpp223 const Expr *RetE = RCC->getReturnStmt()->getRetValue(); in computeObjectUnderConstruction() local
224 assert(RetE && "Void returns should not have a construction context"); in computeObjectUnderConstruction()
225 QualType ReturnTy = RetE->getType(); in computeObjectUnderConstruction()
227 return SVB.conjureSymbolVal(&TopLevelSymRegionTag, RetE, SFC, RegionTy, in computeObjectUnderConstruction()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DRetainSummaryManager.cpp986 if (Optional<RetEffect> RetE = getRetEffectFromAnnotations(RetTy, FD)) in updateSummaryFromAnnotations() local
987 Template->setRetEffect(*RetE); in updateSummaryFromAnnotations()
1013 if (Optional<RetEffect> RetE = getRetEffectFromAnnotations(RetTy, MD)) in updateSummaryFromAnnotations() local
1014 Template->setRetEffect(*RetE); in updateSummaryFromAnnotations()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaLambda.cpp763 const Expr *RetE = RS->getRetValue(); in deduceClosureReturnType() local
766 (RetE ? RetE->getType() : Context.VoidTy).getUnqualifiedType(); in deduceClosureReturnType()