|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
gen/tools/clang/include/clang/AST/StmtNodes.inc 503 RETURNSTMT(ReturnStmt, Stmt)
tools/clang/include/clang/Sema/ScopeInfo.h 55 class ReturnStmt;
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h 64 class ReturnStmt;
References
include/llvm/ADT/ArrayRef.h 108 const ArrayRef<U *> &A,
110 std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
118 const SmallVectorTemplateCommon<U *, DummyT> &Vec,
120 std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
include/llvm/ADT/STLExtras.h 75 typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h 58 return To::classof(&Val);
77 return isa_impl<To, From>::doit(Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
168 using ret_type = const To &; // Normal case, return Ty&
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
258 return cast_convert_val<X, Y,
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
include/llvm/Support/TrailingObjects.h 134 : public TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy,
137 typedef TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, MoreTys...>
141 static const bool value = alignof(PrevTy) < alignof(NextTy);
162 getTrailingObjectsImpl(const BaseTy *Obj,
177 getTrailingObjectsImpl(BaseTy *Obj,
179 auto *Ptr = TopTrailingObj::getTrailingObjectsImpl(
232 BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
232 BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
233 BaseTy, TrailingTys...> {
242 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
242 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
242 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
257 static const BaseTy *
258 getTrailingObjectsImpl(const BaseTy *Obj,
259 TrailingObjectsBase::OverloadToken<BaseTy>) {
263 static BaseTy *
264 getTrailingObjectsImpl(BaseTy *Obj,
265 TrailingObjectsBase::OverloadToken<BaseTy>) {
277 callNumTrailingObjects(const BaseTy *Obj,
278 TrailingObjectsBase::OverloadToken<BaseTy>) {
283 static size_t callNumTrailingObjects(const BaseTy *Obj,
284 TrailingObjectsBase::OverloadToken<T>) {
345 return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...);
tools/clang/include/clang/AST/ASTTypeTraits.h 65 return ASTNodeKind(KindToKindId<T>::Id);
234 static DynTypedNode create(const T &Node) {
235 return BaseConverter<T>::create(Node);
251 const T *get() const {
252 return BaseConverter<T>::get(NodeKind, Storage.buffer);
259 const T &getUnchecked() const {
260 return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
394 static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
395 if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
399 static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
401 return *cast<T>(static_cast<const BaseT *>(
474 : public DynCastPtrConverter<T, Stmt> {};
tools/clang/include/clang/AST/Stmt.h 2622 private llvm::TrailingObjects<ReturnStmt, const VarDecl *> {
2646 static ReturnStmt *Create(const ASTContext &Ctx, SourceLocation RL, Expr *E,
2651 static ReturnStmt *CreateEmpty(const ASTContext &Ctx, bool HasNRVOCandidate);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 110 const T *getNodeAs(StringRef ID) const {
111 return MyBoundNodes.getNodeAs<T>(ID);
1956 extern const internal::VariadicDynCastAllOfMatcher<Stmt, ReturnStmt> returnStmt;
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h 160 const T *getNodeAs(StringRef ID) const {
165 return It->second.get<T>();
302 virtual bool matches(const T &Node,
309 return matches(DynNode.getUnchecked<T>(), Finder, Builder);
345 DynTypedMatcher(MatcherInterface<T> *Implementation)
346 : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
436 return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
445 template <typename T> Matcher<T> convertTo() const {
447 return unconditionalConvertTo<T>();
479 class WrapperMatcherInterface : public MatcherInterface<T> {
499 explicit Matcher(MatcherInterface<T> *Implementation)
507 typename std::enable_if<std::is_base_of<From, T>::value &&
508 !std::is_same<From, T>::value>::type * = nullptr)
520 std::is_same<T, QualType>::value &&
529 static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
534 bool matches(const T &Node,
581 return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
994 bool matchesChildOf(const T &Node, const DynTypedMatcher &Matcher,
997 static_assert(std::is_base_of<Decl, T>::value ||
998 std::is_base_of<Stmt, T>::value ||
999 std::is_base_of<NestedNameSpecifier, T>::value ||
1000 std::is_base_of<NestedNameSpecifierLoc, T>::value ||
1001 std::is_base_of<TypeLoc, T>::value ||
1002 std::is_base_of<QualType, T>::value,
1026 bool matchesAncestorOf(const T &Node,
1030 static_assert(std::is_base_of<Decl, T>::value ||
1031 std::is_base_of<NestedNameSpecifierLoc, T>::value ||
1032 std::is_base_of<Stmt, T>::value ||
1033 std::is_base_of<TypeLoc, T>::value,
1146 template <typename To> operator Matcher<To>() const {
1243 operator Matcher<T>() const {
1245 ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
1246 .template unconditionalConvertTo<T>();
1255 class BindableMatcher : public Matcher<T> {
1257 explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
1258 explicit BindableMatcher(MatcherInterface<T> *Implementation)
1265 Matcher<T> bind(StringRef ID) const {
1285 class HasMatcher : public WrapperMatcherInterface<T> {
1290 bool matches(const T &Node, ASTMatchFinder *Finder,
1335 template <typename T> operator Matcher<T>() const {
1337 Op, ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
1338 getMatchers<T>(std::index_sequence_for<Ps...>()))
1339 .template unconditionalConvertTo<T>();
1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
1376 BindableMatcher<T> makeAllOfComposite(
1377 ArrayRef<const Matcher<T> *> InnerMatchers) {
1388 using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
1395 ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
1397 .template unconditionalConvertTo<T>());
1408 ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
1458 class HasAncestorMatcher : public WrapperMatcherInterface<T> {
1466 bool matches(const T &Node, ASTMatchFinder *Finder,
1557 : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
1558 makeDynCastAllOfComposite<SourceT, TargetT>> {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h 199 ast_matchers::internal::Matcher<T> getTypedMatcher() const {
202 ->template convertTo<T>();
227 : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
228 typedef ast_matchers::internal::Matcher<T> MatcherT;
232 return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/include/clang/Analysis/ConstructionContext.h 93 ConstructionContextItem(const ReturnStmt *RS)
557 const ReturnStmt *RS;
561 const ReturnStmt *RS)
568 const ReturnStmt *getReturnStmt() const { return RS; }
585 explicit SimpleReturnedValueConstructionContext(const ReturnStmt *RS)
610 const ReturnStmt *RS, const CXXBindTemporaryExpr *BTE)
tools/clang/include/clang/Analysis/ProgramPoint.h 337 explicit FunctionExitPoint(const ReturnStmt *S,
346 const ReturnStmt *getStmt() const {
671 CallExitBegin(const StackFrameContext *L, const ReturnStmt *RS)
674 const ReturnStmt *getReturnStmt() const {
tools/clang/include/clang/Sema/ScopeInfo.h 190 SmallVector<ReturnStmt*, 4> Returns;
tools/clang/include/clang/StaticAnalyzer/Core/Checker.h 85 ((const CHECKER *)checker)->checkPreStmt(cast<STMT>(S), C);
89 return isa<STMT>(S);
257 static void _checkEndFunction(void *checker, const ReturnStmt *RS,
tools/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h 317 const ReturnStmt *RS);
464 CheckerFn<void (const ReturnStmt *, CheckerContext &)>;
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h 128 const ReturnStmt *RS);
198 void enqueueEndOfFunction(ExplodedNodeSet &Set, const ReturnStmt *RS);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h 346 const ReturnStmt *RS = nullptr) override;
497 void VisitReturnStmt(const ReturnStmt *R, ExplodedNode *Pred,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h 119 const ReturnStmt *RS = nullptr) = 0;
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp 306 if (ReturnStmt *retS = dyn_cast<ReturnStmt>(*SI))
306 if (ReturnStmt *retS = dyn_cast<ReturnStmt>(*SI))
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp 197 if (ReturnStmt *RetS = dyn_cast<ReturnStmt>(nextStmt))
197 if (ReturnStmt *RetS = dyn_cast<ReturnStmt>(nextStmt))
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp 185 isa<ReturnStmt>(StmtMap->getParentIgnoreParenCasts(E))) {
376 if (ReturnStmt *retS = dyn_cast_or_null<ReturnStmt>(parent)) {
376 if (ReturnStmt *retS = dyn_cast_or_null<ReturnStmt>(parent)) {
tools/clang/lib/AST/ASTImporter.cpp 524 ExpectedStmt VisitReturnStmt(ReturnStmt *S);
5979 ExpectedStmt ASTNodeImporter::VisitReturnStmt(ReturnStmt *S) {
5990 return ReturnStmt::Create(Importer.getToContext(), ToReturnLoc, ToRetValue,
tools/clang/lib/AST/ExprConstant.cpp 4617 const Expr *RetExpr = cast<ReturnStmt>(S)->getRetValue();
tools/clang/lib/AST/Interp/ByteCodeStmtGen.cpp 122 return visitReturnStmt(cast<ReturnStmt>(S));
165 bool ByteCodeStmtGen<Emitter>::visitReturnStmt(const ReturnStmt *RS) {
tools/clang/lib/AST/Interp/ByteCodeStmtGen.h 63 bool visitReturnStmt(const ReturnStmt *RS);
tools/clang/lib/AST/Stmt.cpp 1086 ReturnStmt *ReturnStmt::Create(const ASTContext &Ctx, SourceLocation RL,
1090 alignof(ReturnStmt));
1091 return new (Mem) ReturnStmt(RL, E, NRVOCandidate);
1094 ReturnStmt *ReturnStmt::CreateEmpty(const ASTContext &Ctx,
1097 alignof(ReturnStmt));
1098 return new (Mem) ReturnStmt(EmptyShell(), HasNRVOCandidate);
tools/clang/lib/AST/StmtPrinter.cpp 401 void StmtPrinter::VisitReturnStmt(ReturnStmt *Node) {
tools/clang/lib/AST/StmtProfile.cpp 302 void StmtProfiler::VisitReturnStmt(const ReturnStmt *S) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 701 const internal::VariadicDynCastAllOfMatcher<Stmt, ReturnStmt> returnStmt;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h 75 return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
78 static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
79 return Value.getMatcher().getTypedMatcher<T>();
83 return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
361 RetTypes.push_back(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
466 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
469 DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
778 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/Analysis/BodyFarm.cpp 96 ReturnStmt *makeReturn(const Expr *RetVal);
203 ReturnStmt *ASTMaker::makeReturn(const Expr *RetVal) {
204 return ReturnStmt::Create(C, SourceLocation(), const_cast<Expr *>(RetVal),
tools/clang/lib/Analysis/CFG.cpp 2682 if (!C->body_empty() && !isa<ReturnStmt>(*C->body_rbegin())) {
3050 if (auto *R = dyn_cast<ReturnStmt>(S))
3050 if (auto *R = dyn_cast<ReturnStmt>(S))
3064 if (ReturnStmt *RS = dyn_cast<ReturnStmt>(S)) {
3064 if (ReturnStmt *RS = dyn_cast<ReturnStmt>(S)) {
tools/clang/lib/Analysis/ConstructionContext.cpp 120 const auto *RS = cast<ReturnStmt>(ParentItem.getStmt());
120 const auto *RS = cast<ReturnStmt>(ParentItem.getStmt());
183 const auto *RS = cast<ReturnStmt>(TopItem.getStmt());
183 const auto *RS = cast<ReturnStmt>(TopItem.getStmt());
tools/clang/lib/Analysis/Consumed.cpp 512 void VisitReturnStmt(const ReturnStmt *Ret);
876 void ConsumedStmtVisitor::VisitReturnStmt(const ReturnStmt *Ret) {
tools/clang/lib/Analysis/PathDiagnostic.cpp 692 if (const ReturnStmt *RS = CEB->getReturnStmt())
tools/clang/lib/Analysis/ProgramPoint.cpp 71 if (const ReturnStmt *RS = FEP->getStmt()) {
tools/clang/lib/Analysis/ReachableCode.cpp 93 if (const ReturnStmt *RS = dyn_cast<ReturnStmt>(CS->getStmt())) {
93 if (const ReturnStmt *RS = dyn_cast<ReturnStmt>(CS->getStmt())) {
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGObjC.cpp 1029 auto *ret = ReturnStmt::Create(getContext(), SourceLocation(),
1029 auto *ret = ReturnStmt::Create(getContext(), SourceLocation(),
tools/clang/lib/CodeGen/CGStmt.cpp 144 case Stmt::ReturnStmtClass: EmitReturnStmt(cast<ReturnStmt>(*S)); break;
1053 void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp 597 return isa<ReturnStmt>(*LastStmt);
tools/clang/lib/CodeGen/CodeGenFunction.h 2881 void EmitReturnStmt(const ReturnStmt &S);
tools/clang/lib/CodeGen/CodeGenPGO.cpp 422 void VisitReturnStmt(const ReturnStmt *S) {
tools/clang/lib/CodeGen/CoverageMappingGen.cpp 897 void VisitReturnStmt(const ReturnStmt *S) {
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 1914 if (isa<ReturnStmt>(S) || isa<GotoStmt>(S)) {
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 1721 if (isa<ReturnStmt>(S) || isa<GotoStmt>(S)) {
1734 if (isa<ReturnStmt>(S))
1744 if (isa<ReturnStmt>(S)) {
1765 if (isa<ReturnStmt>(S)) {
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp 476 if (isa<ReturnStmt>(S) || isa<CoreturnStmt>(S)) {
tools/clang/lib/Sema/SemaCoroutine.cpp 1489 if (cast<clang::ReturnStmt>(ReturnStmt.get())->getNRVOCandidate() == GroDecl)
tools/clang/lib/Sema/SemaDecl.cpp13647 ReturnStmt **Returns = Scope->Returns.data();
tools/clang/lib/Sema/SemaDeclCXX.cpp15292 if (isa<ReturnStmt>(SubStmt))
tools/clang/lib/Sema/SemaLambda.cpp 636 static EnumDecl *findEnumForBlockReturn(ReturnStmt *ret) {
645 static EnumDecl *findCommonEnumForBlockReturns(ArrayRef<ReturnStmt*> returns) {
646 ArrayRef<ReturnStmt*>::iterator i = returns.begin(), e = returns.end();
666 static void adjustBlockReturnsToEnum(Sema &S, ArrayRef<ReturnStmt*> returns,
668 for (ArrayRef<ReturnStmt*>::iterator
670 ReturnStmt *ret = *i;
759 for (const ReturnStmt *RS : CSI.Returns) {
tools/clang/lib/Sema/SemaStmt.cpp 1465 void VisitReturnStmt(ReturnStmt *S) {
3257 return ReturnStmt::Create(Context, ReturnLoc, RetValExp,
3385 auto *Result =
3386 ReturnStmt::Create(Context, ReturnLoc, RetValExp, NRVOCandidate);
3567 const_cast<VarDecl*>(cast<ReturnStmt>(R.get())->getNRVOCandidate())) {
3629 return ReturnStmt::Create(Context, ReturnLoc, RetValExp,
3649 ReturnStmt *Result = nullptr;
3726 Result = ReturnStmt::Create(Context, ReturnLoc, RetValExp,
3750 Result = ReturnStmt::Create(Context, ReturnLoc, /* RetExpr=*/nullptr,
3805 Result = ReturnStmt::Create(Context, ReturnLoc, RetValExp, NRVOCandidate);
tools/clang/lib/Sema/TreeTransform.h 7035 TreeTransform<Derived>::TransformReturnStmt(ReturnStmt *S) {
tools/clang/lib/Serialization/ASTReaderStmt.cpp 329 void ASTStmtReader::VisitReturnStmt(ReturnStmt *S) {
2573 S = ReturnStmt::CreateEmpty(
tools/clang/lib/Serialization/ASTWriterStmt.cpp 250 void ASTStmtWriter::VisitReturnStmt(ReturnStmt *S) {
tools/clang/lib/StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp 125 void checkEndFunction(const ReturnStmt *S, CheckerContext &C) const {
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp 99 check::PreStmt<ReturnStmt>> {
127 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
128 void checkEndFunction(const ReturnStmt *RS, CheckerContext &Ctx) const;
392 const ReturnStmt *RS, CheckerContext &C) const {
398 const ReturnStmt *RS, CheckerContext &C) const {
tools/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp 36 class CheckerDocumentation : public Checker< check::PreStmt<ReturnStmt>,
72 void checkPreStmt(const ReturnStmt *DS, CheckerContext &C) const {}
194 void checkEndFunction(const ReturnStmt *RS, CheckerContext &Ctx) const {}
tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp 366 if (!parent || !isa<ReturnStmt>(parent))
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp 367 const ReturnStmt *ReturnStmt1 = cast<ReturnStmt>(Stmt1);
367 const ReturnStmt *ReturnStmt1 = cast<ReturnStmt>(Stmt1);
368 const ReturnStmt *ReturnStmt2 = cast<ReturnStmt>(Stmt2);
368 const ReturnStmt *ReturnStmt2 = cast<ReturnStmt>(Stmt2);
tools/clang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp 36 class MIGChecker : public Checker<check::PostCall, check::PreStmt<ReturnStmt>,
89 void checkReturnAux(const ReturnStmt *RS, CheckerContext &C) const;
100 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const {
103 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const {
245 void MIGChecker::checkReturnAux(const ReturnStmt *RS, CheckerContext &C) const {
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 331 check::ConstPointerEscape, check::PreStmt<ReturnStmt>,
368 void checkPreStmt(const ReturnStmt *S, CheckerContext &C) const;
369 void checkEndFunction(const ReturnStmt *S, CheckerContext &C) const;
617 void checkEscapeOnReturn(const ReturnStmt *S, CheckerContext &C) const;
2722 void MallocChecker::checkPreStmt(const ReturnStmt *S,
2730 void MallocChecker::checkEndFunction(const ReturnStmt *S,
2735 void MallocChecker::checkEscapeOnReturn(const ReturnStmt *S,
tools/clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp 51 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp 81 : public Checker<check::Bind, check::PreCall, check::PreStmt<ReturnStmt>,
98 void checkPreStmt(const ReturnStmt *S, CheckerContext &C) const;
522 void NullabilityChecker::checkPreStmt(const ReturnStmt *S,
tools/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp 59 check::PreStmt<ReturnStmt>,
73 void checkPreStmt(const ReturnStmt *S, CheckerContext &C) const;
209 void ObjCSelfInitChecker::checkPreStmt(const ReturnStmt *S,
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp 963 ExplodedNode * RetainCountChecker::processReturn(const ReturnStmt *S,
1066 ExplodedNode * RetainCountChecker::checkReturnWithRetEffect(const ReturnStmt *S,
1213 const ReturnStmt *S) const {
1367 void RetainCountChecker::checkEndFunction(const ReturnStmt *RS,
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h 326 ExplodedNode* checkReturnWithRetEffect(const ReturnStmt *S, CheckerContext &C,
332 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
356 const ReturnStmt *S=nullptr) const;
375 ExplodedNode * processReturn(const ReturnStmt *S, CheckerContext &C) const;
tools/clang/lib/StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp 26 public Checker< check::PreStmt<ReturnStmt> > {
30 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
34 void ReturnPointerRangeChecker::checkPreStmt(const ReturnStmt *RS,
tools/clang/lib/StaticAnalyzer/Checkers/ReturnUndefChecker.cpp 26 class ReturnUndefChecker : public Checker< check::PreStmt<ReturnStmt> > {
34 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
38 void ReturnUndefChecker::checkPreStmt(const ReturnStmt *RS,
tools/clang/lib/StaticAnalyzer/Checkers/ReturnValueChecker.cpp 32 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
117 void ReturnValueChecker::checkEndFunction(const ReturnStmt *RS,
tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp 30 : public Checker<check::PreCall, check::PreStmt<ReturnStmt>,
48 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
49 void checkEndFunction(const ReturnStmt *RS, CheckerContext &Ctx) const;
248 void StackAddrEscapeChecker::checkPreStmt(const ReturnStmt *RS,
290 void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS,
tools/clang/lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp 86 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
181 void TestAfterDivZeroChecker::checkEndFunction(const ReturnStmt *,
tools/clang/lib/StaticAnalyzer/Checkers/TraversalChecker.cpp 32 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
58 void TraversalDumper::checkEndFunction(const ReturnStmt *RS,
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp 50 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
139 const ReturnStmt *RS, CheckerContext &Context) const {
tools/clang/lib/StaticAnalyzer/Checkers/VforkChecker.cpp 45 check::Bind, check::PreStmt<ReturnStmt>> {
64 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
209 void VforkChecker::checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const {
tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp 49 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
92 void VirtualCallChecker::checkEndFunction(const ReturnStmt *RS,
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 2351 if (const ReturnStmt *RS = FE->getStmt())
3104 if (const auto *RS = dyn_cast_or_null<ReturnStmt>(P)) {
3104 if (const auto *RS = dyn_cast_or_null<ReturnStmt>(P)) {
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 1014 const auto *Ret = dyn_cast<ReturnStmt>(SP->getStmt());
1014 const auto *Ret = dyn_cast<ReturnStmt>(SP->getStmt());
tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp 453 const ReturnStmt *RS) {
tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp 244 const ReturnStmt *RS = nullptr;
248 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt());
251 RS = dyn_cast<ReturnStmt>(AutoDtor->getTriggerStmt());
564 const ReturnStmt *RS) {
588 void CoreEngine::enqueueEndOfFunction(ExplodedNodeSet &Set, const ReturnStmt *RS) {
tools/clang/lib/StaticAnalyzer/Core/Environment.cpp 116 const auto *RS = cast<ReturnStmt>(S);
116 const auto *RS = cast<ReturnStmt>(S);
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp 1765 VisitReturnStmt(cast<ReturnStmt>(S), Pred, Dst);
2264 const ReturnStmt *RS) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp 179 removeDead(Pred, Dst, dyn_cast<ReturnStmt>(LastSt), LCtx,
228 if (const ReturnStmt *RS = dyn_cast_or_null<ReturnStmt>(LastSt)) {
228 if (const ReturnStmt *RS = dyn_cast_or_null<ReturnStmt>(LastSt)) {
1092 void ExprEngine::VisitReturnStmt(const ReturnStmt *RS, ExplodedNode *Pred,
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp 347 const auto *BadReturnType = Nodes.getNodeAs<ReturnStmt>("bad_owner_return");
347 const auto *BadReturnType = Nodes.getNodeAs<ReturnStmt>("bad_owner_return");
tools/clang/tools/extra/clang-tidy/misc/UnconventionalAssignOperatorCheck.cpp 73 if (const auto *RetStmt = Result.Nodes.getNodeAs<ReturnStmt>("returnStmt")) {
73 if (const auto *RetStmt = Result.Nodes.getNodeAs<ReturnStmt>("returnStmt")) {
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp 87 } else if (const auto *R = dyn_cast<ReturnStmt>(S)) {
87 } else if (const auto *R = dyn_cast<ReturnStmt>(S)) {
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp 59 if (const auto *Return = dyn_cast<ReturnStmt>(*last))
59 if (const auto *Return = dyn_cast<ReturnStmt>(*last))
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp 272 const CXXBoolLiteralExpr *stmtReturnsBool(const ReturnStmt *Ret, bool Negated) {
285 if (const auto *Ret = dyn_cast<ReturnStmt>(IfRet->getThen()))
285 if (const auto *Ret = dyn_cast<ReturnStmt>(IfRet->getThen()))
290 if (const auto *CompoundRet = dyn_cast<ReturnStmt>(Compound->body_back()))
290 if (const auto *CompoundRet = dyn_cast<ReturnStmt>(Compound->body_back()))
615 const auto *Ret = Result.Nodes.getNodeAs<ReturnStmt>(CompoundReturnId);
615 const auto *Ret = Result.Nodes.getNodeAs<ReturnStmt>(CompoundReturnId);
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp 491 bool VisitReturnStmt(ReturnStmt *Return) {
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp 136 isa<ReturnStmt>(Stmt) || isa<WhileStmt>(Stmt);
tools/clang/unittests/Tooling/ASTSelectionTest.cpp 107 typename std::enable_if<std::is_base_of<Stmt, T>::value, T>::type
107 typename std::enable_if<std::is_base_of<Stmt, T>::value, T>::type
109 checkNodeImpl(isa<T>(StmtNode.Node.get<Stmt>()), StmtNode, SelectionKind,
211 const auto &Return = checkNode<ReturnStmt>(
233 checkNode<ReturnStmt>(Body.Children[0],
249 checkNode<ReturnStmt>(Body.Children[0],
267 checkNode<ReturnStmt>(Body.Children[0],
tools/clang/unittests/Tooling/RecursiveASTVisitorTestPostOrderVisitor.cpp 58 bool VisitReturnStmt(ReturnStmt *S) {
tools/lldb/tools/lldb-instr/Instrument.cpp 139 bool VisitReturnStmt(ReturnStmt *Stmt) {
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
326 : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
354 : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
381 : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
567 : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
631 : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
798 typedef decltype(__test<_Tp>(0)) type;
811 remove_all_extents<_Tp>::type>::type
825 : public __is_destructible_safe<_Tp>::type
1447 : public __and_<is_destructible<_Tp>, integral_constant<bool,
1554 { typedef _Tp type; };
1558 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1580 { typedef _Tp const type; };
1629 { typedef _Tp type; };
1659 { typedef _Tp&& type; };
1955 { typedef _Tp type; };
1999 { typedef typename remove_reference<_Tp>::type* type; };
2003 : public __add_pointer_helper<_Tp>
2157 { typedef _Tp type; };