Home
last modified time | relevance | path

Searched refs:SubStmt (Results 1 – 17 of 17) sorted by relevance

/external/clang/include/clang/AST/
DStmtCXX.h239 Stmt *SubStmt; variable
248 CompoundStmt *SubStmt) in MSDependentExistsStmt() argument
252 SubStmt(reinterpret_cast<Stmt *>(SubStmt)) { } in MSDependentExistsStmt()
275 return reinterpret_cast<CompoundStmt *>(SubStmt); in getSubStmt()
279 SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();} in getLocEnd()
282 return child_range(&SubStmt, &SubStmt+1); in children()
DStmtObjC.h347 Stmt *SubStmt; variable
351 : Stmt(ObjCAutoreleasePoolStmtClass), AtLoc(atLoc), SubStmt(subStmt) {} in ObjCAutoreleasePoolStmt()
356 const Stmt *getSubStmt() const { return SubStmt; } in getSubStmt()
357 Stmt *getSubStmt() { return SubStmt; } in getSubStmt()
358 void setSubStmt(Stmt *S) { SubStmt = S; } in setSubStmt()
361 SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();} in getLocEnd()
370 child_range children() { return child_range(&SubStmt, &SubStmt + 1); } in children()
DStmt.h749 Stmt* SubStmt; variable
752 SwitchCase(DefaultStmtClass, DL, CL), SubStmt(substmt) {} in DefaultStmt()
758 Stmt *getSubStmt() { return SubStmt; } in getSubStmt()
759 const Stmt *getSubStmt() const { return SubStmt; } in getSubStmt()
760 void setSubStmt(Stmt *S) { SubStmt = S; } in setSubStmt()
768 SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();} in getLocEnd()
775 child_range children() { return child_range(&SubStmt, &SubStmt+1); } in children()
790 Stmt *SubStmt; variable
794 : Stmt(LabelStmtClass), IdentLoc(IL), TheDecl(D), SubStmt(substmt) { in LabelStmt()
807 Stmt *getSubStmt() { return SubStmt; } in getSubStmt()
[all …]
DExpr.h3395 Stmt *SubStmt; variable
3405 SubStmt(substmt), LParenLoc(lp), RParenLoc(rp) { } in StmtExpr()
3410 CompoundStmt *getSubStmt() { return cast<CompoundStmt>(SubStmt); } in getSubStmt()
3411 const CompoundStmt *getSubStmt() const { return cast<CompoundStmt>(SubStmt); } in getSubStmt()
3412 void setSubStmt(CompoundStmt *S) { SubStmt = S; } in setSubStmt()
3427 child_range children() { return child_range(&SubStmt, &SubStmt+1); } in children()
/external/clang/lib/Sema/
DJumpDiagnostics.cpp381 Stmt *SubStmt = *CI; in BuildScopeInformation() local
382 if (!SubStmt) continue; in BuildScopeInformation()
389 if (CaseStmt *CS = dyn_cast<CaseStmt>(SubStmt)) in BuildScopeInformation()
391 else if (DefaultStmt *DS = dyn_cast<DefaultStmt>(SubStmt)) in BuildScopeInformation()
393 else if (LabelStmt *LS = dyn_cast<LabelStmt>(SubStmt)) in BuildScopeInformation()
398 LabelAndGotoScopes[SubStmt] = ParentScope; in BuildScopeInformation()
399 SubStmt = Next; in BuildScopeInformation()
404 if (DeclStmt *DS = dyn_cast<DeclStmt>(SubStmt)) { in BuildScopeInformation()
413 if (ObjCAtTryStmt *AT = dyn_cast<ObjCAtTryStmt>(SubStmt)) { in BuildScopeInformation()
451 dyn_cast<ObjCAtSynchronizedStmt>(SubStmt)) { in BuildScopeInformation()
[all …]
DSemaStmt.cpp427 void Sema::ActOnCaseStmtBody(Stmt *caseStmt, Stmt *SubStmt) { in ActOnCaseStmtBody() argument
428 DiagnoseUnusedExprResult(SubStmt); in ActOnCaseStmtBody()
431 CS->setSubStmt(SubStmt); in ActOnCaseStmtBody()
436 Stmt *SubStmt, Scope *CurScope) { in ActOnDefaultStmt() argument
437 DiagnoseUnusedExprResult(SubStmt); in ActOnDefaultStmt()
441 return SubStmt; in ActOnDefaultStmt()
444 DefaultStmt *DS = new (Context) DefaultStmt(DefaultLoc, ColonLoc, SubStmt); in ActOnDefaultStmt()
451 SourceLocation ColonLoc, Stmt *SubStmt) { in ActOnLabelStmt() argument
456 return SubStmt; in ActOnLabelStmt()
460 LabelStmt *LS = new (Context) LabelStmt(IdentLoc, TheDecl, SubStmt); in ActOnLabelStmt()
[all …]
DTreeTransform.h1115 Stmt *SubStmt) { in RebuildDefaultStmt() argument
1116 return getSema().ActOnDefaultStmt(DefaultLoc, ColonLoc, SubStmt, in RebuildDefaultStmt()
1125 SourceLocation ColonLoc, Stmt *SubStmt) { in RebuildLabelStmt() argument
1126 return SemaRef.ActOnLabelStmt(IdentLoc, L, ColonLoc, SubStmt); in RebuildLabelStmt()
1135 Stmt *SubStmt) { in RebuildAttributedStmt() argument
1136 return SemaRef.ActOnAttributedStmt(AttrLoc, Attrs, SubStmt); in RebuildAttributedStmt()
2047 Stmt *SubStmt, in RebuildStmtExpr() argument
2049 return getSema().ActOnStmtExpr(LParenLoc, SubStmt, RParenLoc); in RebuildStmtExpr()
5690 StmtResult SubStmt = getDerived().TransformStmt(S->getSubStmt()); in TransformCaseStmt() local
5691 if (SubStmt.isInvalid()) in TransformCaseStmt()
[all …]
DSemaExprCXX.cpp5167 Stmt *Sema::MaybeCreateStmtWithCleanups(Stmt *SubStmt) { in MaybeCreateStmtWithCleanups() argument
5168 assert(SubStmt && "sub-statement can't be null!"); in MaybeCreateStmtWithCleanups()
5173 return SubStmt; in MaybeCreateStmtWithCleanups()
5179 CompoundStmt *CompStmt = new (Context) CompoundStmt(Context, SubStmt, in MaybeCreateStmtWithCleanups()
DSemaDeclCXX.cpp12853 Stmt *SubStmt = *CI; in SearchForReturnInStmt() local
12854 if (!SubStmt) in SearchForReturnInStmt()
12856 if (isa<ReturnStmt>(SubStmt)) in SearchForReturnInStmt()
12857 Self.Diag(SubStmt->getLocStart(), in SearchForReturnInStmt()
12859 if (!isa<Expr>(SubStmt)) in SearchForReturnInStmt()
12860 SearchForReturnInStmt(Self, SubStmt); in SearchForReturnInStmt()
DSemaExpr.cpp10791 Sema::ActOnStmtExpr(SourceLocation LPLoc, Stmt *SubStmt, in ActOnStmtExpr() argument
10793 assert(SubStmt && isa<CompoundStmt>(SubStmt) && "Invalid action invocation!"); in ActOnStmtExpr()
10794 CompoundStmt *Compound = cast<CompoundStmt>(SubStmt); in ActOnStmtExpr()
/external/clang/lib/Parse/
DParseStmt.cpp559 StmtResult SubStmt; in ParseLabeledStatement() local
579 SubStmt = ParseStatementOrDeclarationAfterAttributes( in ParseLabeledStatement()
581 if (!TempAttrs.empty() && !SubStmt.isInvalid()) in ParseLabeledStatement()
582 SubStmt = Actions.ProcessStmtAttributes( in ParseLabeledStatement()
583 SubStmt.get(), TempAttrs.getList(), TempAttrs.Range); in ParseLabeledStatement()
590 if (!SubStmt.isInvalid() && !SubStmt.isUsable()) in ParseLabeledStatement()
591 SubStmt = ParseStatement(); in ParseLabeledStatement()
594 if (SubStmt.isInvalid()) in ParseLabeledStatement()
595 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseLabeledStatement()
605 SubStmt.get()); in ParseLabeledStatement()
[all …]
/external/clang/lib/CodeGen/
DCGStmt.cpp461 const Stmt *SubStmt = S.getSubStmt(); in EmitAttributedStmt() local
462 switch (SubStmt->getStmtClass()) { in EmitAttributedStmt()
464 EmitDoStmt(cast<DoStmt>(*SubStmt), S.getAttrs()); in EmitAttributedStmt()
467 EmitForStmt(cast<ForStmt>(*SubStmt), S.getAttrs()); in EmitAttributedStmt()
470 EmitWhileStmt(cast<WhileStmt>(*SubStmt), S.getAttrs()); in EmitAttributedStmt()
473 EmitCXXForRangeStmt(cast<CXXForRangeStmt>(*SubStmt), S.getAttrs()); in EmitAttributedStmt()
476 EmitStmt(SubStmt); in EmitAttributedStmt()
/external/clang/include/clang/Analysis/
DProgramPoint.h266 const Stmt *SubStmt = nullptr)
267 : StmtPoint(S, SubStmt, PreStmtKind, L, tag) {} in StmtPoint() argument
/external/clang/include/clang/Sema/
DSema.h3075 void ActOnCaseStmtBody(Stmt *CaseStmt, Stmt *SubStmt);
3079 Stmt *SubStmt, Scope *CurScope);
3081 SourceLocation ColonLoc, Stmt *SubStmt);
3085 Stmt *SubStmt);
3731 ExprResult ActOnStmtExpr(SourceLocation LPLoc, Stmt *SubStmt,
4529 Stmt *MaybeCreateStmtWithCleanups(Stmt *SubStmt);
/external/clang/lib/AST/
DStmt.cpp313 Stmt *SubStmt) { in Create() argument
317 return new (Mem) AttributedStmt(Loc, Attrs, SubStmt); in Create()
DExprConstant.cpp3471 if (const Stmt *SubStmt = Cond ? IS->getThen() : IS->getElse()) { in EvaluateStmt() local
3472 EvalStmtResult ESR = EvaluateStmt(Result, Info, SubStmt); in EvaluateStmt()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp180 S->SubStmt = Reader.ReadSubStmt(); in VisitAttributedStmt()
1178 S->SubStmt = Reader.ReadSubStmt(); in VisitMSDependentExistsStmt()