Home
last modified time | relevance | path

Searched refs:SubExprs (Results 1 – 12 of 12) sorted by relevance

/external/clang/include/clang/AST/
DStmtCXX.h132 Stmt *SubExprs[END]; variable
150 DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); } in getRangeStmt()
152 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt()
154 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond()
155 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); } in getInc()
156 DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); } in getLoopVarStmt()
157 Stmt *getBody() { return SubExprs[BODY]; } in getBody()
160 return cast<DeclStmt>(SubExprs[RANGE]); in getRangeStmt()
163 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt()
166 return cast_or_null<Expr>(SubExprs[COND]); in getCond()
[all …]
DStmt.h664 Stmt* SubExprs[END_EXPR]; // The expression for the RHS is Non-null for variable
671 SubExprs[SUBSTMT] = 0; in CaseStmt()
672 SubExprs[LHS] = reinterpret_cast<Stmt*>(lhs); in CaseStmt()
673 SubExprs[RHS] = reinterpret_cast<Stmt*>(rhs); in CaseStmt()
687 Expr *getLHS() { return reinterpret_cast<Expr*>(SubExprs[LHS]); } in getLHS()
688 Expr *getRHS() { return reinterpret_cast<Expr*>(SubExprs[RHS]); } in getRHS()
689 Stmt *getSubStmt() { return SubExprs[SUBSTMT]; } in getSubStmt()
692 return reinterpret_cast<const Expr*>(SubExprs[LHS]); in getLHS()
695 return reinterpret_cast<const Expr*>(SubExprs[RHS]); in getRHS()
697 const Stmt *getSubStmt() const { return SubExprs[SUBSTMT]; } in getSubStmt()
[all …]
DStmtObjC.h26 Stmt* SubExprs[END_EXPR]; // SubExprs[ELEM] is an expression or declstmt. variable
35 Stmt *getElement() { return SubExprs[ELEM]; } in getElement()
37 return reinterpret_cast<Expr*>(SubExprs[COLLECTION]); in getCollection()
39 Stmt *getBody() { return SubExprs[BODY]; } in getBody()
41 const Stmt *getElement() const { return SubExprs[ELEM]; } in getElement()
43 return reinterpret_cast<Expr*>(SubExprs[COLLECTION]); in getCollection()
45 const Stmt *getBody() const { return SubExprs[BODY]; } in getBody()
47 void setElement(Stmt *S) { SubExprs[ELEM] = S; } in setElement()
49 SubExprs[COLLECTION] = reinterpret_cast<Stmt*>(E); in setCollection()
51 void setBody(Stmt *S) { SubExprs[BODY] = S; } in setBody()
[all …]
DExpr.h2043 Stmt* SubExprs[END_EXPR]; variable
2057 SubExprs[LHS] = lhs; in ArraySubscriptExpr()
2058 SubExprs[RHS] = rhs; in ArraySubscriptExpr()
2074 Expr *getLHS() { return cast<Expr>(SubExprs[LHS]); } in getLHS()
2075 const Expr *getLHS() const { return cast<Expr>(SubExprs[LHS]); } in getLHS()
2076 void setLHS(Expr *E) { SubExprs[LHS] = E; } in setLHS()
2078 Expr *getRHS() { return cast<Expr>(SubExprs[RHS]); } in getRHS()
2079 const Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); } in getRHS()
2080 void setRHS(Expr *E) { SubExprs[RHS] = E; } in setRHS()
2116 return child_range(&SubExprs[0], &SubExprs[0]+END_EXPR); in children()
[all …]
DExprObjC.h782 Stmt* SubExprs[END_EXPR];
805 {SubExprs[BASE] = base; SubExprs[KEY] = key;}
821 return SubExprs[BASE]->getLocStart();
829 Expr *getBaseExpr() const { return cast<Expr>(SubExprs[BASE]); }
830 void setBaseExpr(Stmt *S) { SubExprs[BASE] = S; }
832 Expr *getKeyExpr() const { return cast<Expr>(SubExprs[KEY]); }
833 void setKeyExpr(Stmt *S) { SubExprs[KEY] = S; }
848 return child_range(SubExprs, SubExprs+END_EXPR);
DExprCXX.h1673 Stmt **SubExprs; variable
1724 : Expr(CXXNewExprClass, Shell), SubExprs(0) { } in CXXNewExpr()
1758 return Array ? cast<Expr>(SubExprs[0]) : 0; in getArraySize()
1761 return Array ? cast<Expr>(SubExprs[0]) : 0; in getArraySize()
1766 return reinterpret_cast<Expr **>(SubExprs + Array + hasInitializer()); in getPlacementArgs()
1795 return hasInitializer() ? cast<Expr>(SubExprs[Array]) : 0; in getInitializer()
1798 return hasInitializer() ? cast<Expr>(SubExprs[Array]) : 0; in getInitializer()
1817 return SubExprs + Array + hasInitializer(); in placement_arg_begin()
1820 return SubExprs + Array + hasInitializer() + getNumPlacementArgs(); in placement_arg_end()
1823 return SubExprs + Array + hasInitializer(); in placement_arg_begin()
[all …]
/external/clang/lib/AST/
DStmt.cpp712 SubExprs[ELEM] = Elem; in ObjCForCollectionStmt()
713 SubExprs[COLLECTION] = reinterpret_cast<Stmt*>(Collect); in ObjCForCollectionStmt()
714 SubExprs[BODY] = Body; in ObjCForCollectionStmt()
795 SubExprs[RANGE] = Range; in CXXForRangeStmt()
796 SubExprs[BEGINEND] = BeginEndStmt; in CXXForRangeStmt()
797 SubExprs[COND] = reinterpret_cast<Stmt*>(Cond); in CXXForRangeStmt()
798 SubExprs[INC] = reinterpret_cast<Stmt*>(Inc); in CXXForRangeStmt()
799 SubExprs[LOOPVAR] = LoopVar; in CXXForRangeStmt()
800 SubExprs[BODY] = Body; in CXXForRangeStmt()
829 SubExprs[COND] = reinterpret_cast<Stmt*>(cond); in IfStmt()
[all …]
DExpr.cpp1048 SubExprs = new (C) Stmt*[args.size()+PREARGS_START+NumPreArgs]; in CallExpr()
1049 SubExprs[FN] = fn; in CallExpr()
1060 SubExprs[i+PREARGS_START+NumPreArgs] = args[i]; in CallExpr()
1076 SubExprs = new (C) Stmt*[args.size()+PREARGS_START]; in CallExpr()
1077 SubExprs[FN] = fn; in CallExpr()
1088 SubExprs[i+PREARGS_START] = args[i]; in CallExpr()
1096 : Expr(SC, Empty), SubExprs(0), NumArgs(0) { in CallExpr()
1098 SubExprs = new (C) Stmt*[PREARGS_START]; in CallExpr()
1104 : Expr(SC, Empty), SubExprs(0), NumArgs(0) { in CallExpr()
1106 SubExprs = new (C) Stmt*[PREARGS_START+NumPreArgs]; in CallExpr()
[all …]
DExprCXX.cpp94 SubExprs(0), OperatorNew(operatorNew), OperatorDelete(operatorDelete), in CXXNewExpr()
110 SubExprs[i++] = arraySize; in CXXNewExpr()
120 SubExprs[i++] = initializer; in CXXNewExpr()
129 SubExprs[i++] = placementArgs[j]; in CXXNewExpr()
146 assert(SubExprs == 0 && "SubExprs already allocated"); in AllocateArgsArray()
151 SubExprs = new (C) Stmt*[TotalSize]; in AllocateArgsArray()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp665 E->SubExprs[ConditionalOperator::COND] = Reader.ReadSubExpr(); in VisitConditionalOperator()
666 E->SubExprs[ConditionalOperator::LHS] = Reader.ReadSubExpr(); in VisitConditionalOperator()
667 E->SubExprs[ConditionalOperator::RHS] = Reader.ReadSubExpr(); in VisitConditionalOperator()
676 E->SubExprs[BinaryConditionalOperator::COMMON] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
677 E->SubExprs[BinaryConditionalOperator::COND] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
678 E->SubExprs[BinaryConditionalOperator::LHS] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
679 E->SubExprs[BinaryConditionalOperator::RHS] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
866 E->SubExprs = in VisitGenericSelectionExpr()
869 E->SubExprs[GenericSelectionExpr::CONTROLLING] = Reader.ReadSubExpr(); in VisitGenericSelectionExpr()
872 E->SubExprs[GenericSelectionExpr::END_EXPR+I] = Reader.ReadSubExpr(); in VisitGenericSelectionExpr()
[all …]
/external/clang/lib/Sema/
DSemaChecking.cpp1126 SmallVector<Expr*, 5> SubExprs; in SemaAtomicOpsOverloaded() local
1127 SubExprs.push_back(Ptr); in SemaAtomicOpsOverloaded()
1131 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
1134 SubExprs.push_back(TheCall->getArg(1)); // Order in SemaAtomicOpsOverloaded()
1139 SubExprs.push_back(TheCall->getArg(2)); // Order in SemaAtomicOpsOverloaded()
1140 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
1144 SubExprs.push_back(TheCall->getArg(3)); // Order in SemaAtomicOpsOverloaded()
1145 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
1146 SubExprs.push_back(TheCall->getArg(2)); // Val2 in SemaAtomicOpsOverloaded()
1149 SubExprs.push_back(TheCall->getArg(3)); // Order in SemaAtomicOpsOverloaded()
[all …]
DTreeTransform.h1776 MultiExprArg SubExprs, in RebuildParenListExpr() argument
1778 return getSema().ActOnParenListExpr(LParenLoc, RParenLoc, SubExprs); in RebuildParenListExpr()
2508 MultiExprArg SubExprs, in RebuildShuffleVectorExpr() argument
2528 new (SemaRef.Context) CallExpr(SemaRef.Context, Callee, SubExprs, in RebuildShuffleVectorExpr()
2600 MultiExprArg SubExprs, in RebuildAtomicExpr() argument
2607 return new (SemaRef.Context) AtomicExpr(BuiltinLoc, SubExprs, RetTy, Op, in RebuildAtomicExpr()
9103 SmallVector<Expr*, 8> SubExprs; in TransformShuffleVectorExpr() local
9104 SubExprs.reserve(E->getNumSubExprs()); in TransformShuffleVectorExpr()
9106 SubExprs, &ArgumentChanged)) in TransformShuffleVectorExpr()
9114 SubExprs, in TransformShuffleVectorExpr()
[all …]