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.h683 Stmt* SubExprs[END_EXPR]; // The expression for the RHS is Non-null for variable
690 SubExprs[SUBSTMT] = nullptr; in CaseStmt()
691 SubExprs[LHS] = reinterpret_cast<Stmt*>(lhs); in CaseStmt()
692 SubExprs[RHS] = reinterpret_cast<Stmt*>(rhs); in CaseStmt()
706 Expr *getLHS() { return reinterpret_cast<Expr*>(SubExprs[LHS]); } in getLHS()
707 Expr *getRHS() { return reinterpret_cast<Expr*>(SubExprs[RHS]); } in getRHS()
708 Stmt *getSubStmt() { return SubExprs[SUBSTMT]; } in getSubStmt()
711 return reinterpret_cast<const Expr*>(SubExprs[LHS]); in getLHS()
714 return reinterpret_cast<const Expr*>(SubExprs[RHS]); in getRHS()
716 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.h2065 Stmt* SubExprs[END_EXPR]; variable
2079 SubExprs[LHS] = lhs; in ArraySubscriptExpr()
2080 SubExprs[RHS] = rhs; in ArraySubscriptExpr()
2096 Expr *getLHS() { return cast<Expr>(SubExprs[LHS]); } in getLHS()
2097 const Expr *getLHS() const { return cast<Expr>(SubExprs[LHS]); } in getLHS()
2098 void setLHS(Expr *E) { SubExprs[LHS] = E; } in setLHS()
2100 Expr *getRHS() { return cast<Expr>(SubExprs[RHS]); } in getRHS()
2101 const Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); } in getRHS()
2102 void setRHS(Expr *E) { SubExprs[RHS] = E; } in setRHS()
2138 return child_range(&SubExprs[0], &SubExprs[0]+END_EXPR); in children()
[all …]
DExprObjC.h783 Stmt* SubExprs[END_EXPR];
806 {SubExprs[BASE] = base; SubExprs[KEY] = key;}
822 return SubExprs[BASE]->getLocStart();
830 Expr *getBaseExpr() const { return cast<Expr>(SubExprs[BASE]); }
831 void setBaseExpr(Stmt *S) { SubExprs[BASE] = S; }
833 Expr *getKeyExpr() const { return cast<Expr>(SubExprs[KEY]); }
834 void setKeyExpr(Stmt *S) { SubExprs[KEY] = S; }
849 return child_range(SubExprs, SubExprs+END_EXPR);
DExprCXX.h1587 Stmt **SubExprs; variable
1638 : Expr(CXXNewExprClass, Shell), SubExprs(nullptr) { } in CXXNewExpr()
1672 return Array ? cast<Expr>(SubExprs[0]) : nullptr; in getArraySize()
1675 return Array ? cast<Expr>(SubExprs[0]) : nullptr; in getArraySize()
1680 return reinterpret_cast<Expr **>(SubExprs + Array + hasInitializer()); in getPlacementArgs()
1709 return hasInitializer() ? cast<Expr>(SubExprs[Array]) : nullptr; in getInitializer()
1712 return hasInitializer() ? cast<Expr>(SubExprs[Array]) : nullptr; in getInitializer()
1731 return SubExprs + Array + hasInitializer(); in placement_arg_begin()
1734 return SubExprs + Array + hasInitializer() + getNumPlacementArgs(); in placement_arg_end()
1737 return SubExprs + Array + hasInitializer(); in placement_arg_begin()
[all …]
/external/clang/lib/AST/
DStmt.cpp711 SubExprs[ELEM] = Elem; in ObjCForCollectionStmt()
712 SubExprs[COLLECTION] = Collect; in ObjCForCollectionStmt()
713 SubExprs[BODY] = Body; in ObjCForCollectionStmt()
793 SubExprs[RANGE] = Range; in CXXForRangeStmt()
794 SubExprs[BEGINEND] = BeginEndStmt; in CXXForRangeStmt()
795 SubExprs[COND] = Cond; in CXXForRangeStmt()
796 SubExprs[INC] = Inc; in CXXForRangeStmt()
797 SubExprs[LOOPVAR] = LoopVar; in CXXForRangeStmt()
798 SubExprs[BODY] = Body; in CXXForRangeStmt()
827 SubExprs[COND] = cond; in IfStmt()
[all …]
DExpr.cpp1087 SubExprs = new (C) Stmt*[args.size()+PREARGS_START+NumPreArgs]; in CallExpr()
1088 SubExprs[FN] = fn; in CallExpr()
1099 SubExprs[i+PREARGS_START+NumPreArgs] = args[i]; in CallExpr()
1115 SubExprs = new (C) Stmt*[args.size()+PREARGS_START]; in CallExpr()
1116 SubExprs[FN] = fn; in CallExpr()
1127 SubExprs[i+PREARGS_START] = args[i]; in CallExpr()
1135 : Expr(SC, Empty), SubExprs(nullptr), NumArgs(0) { in CallExpr()
1137 SubExprs = new (C) Stmt*[PREARGS_START]; in CallExpr()
1143 : Expr(SC, Empty), SubExprs(nullptr), NumArgs(0) { in CallExpr()
1145 SubExprs = new (C) Stmt*[PREARGS_START+NumPreArgs]; in CallExpr()
[all …]
DExprCXX.cpp152 SubExprs(nullptr), OperatorNew(operatorNew), OperatorDelete(operatorDelete), in CXXNewExpr()
169 SubExprs[i++] = arraySize; in CXXNewExpr()
179 SubExprs[i++] = initializer; in CXXNewExpr()
188 SubExprs[i++] = placementArgs[j]; in CXXNewExpr()
205 assert(SubExprs == nullptr && "SubExprs already allocated"); in AllocateArgsArray()
210 SubExprs = new (C) Stmt*[TotalSize]; in AllocateArgsArray()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp663 E->SubExprs[ConditionalOperator::COND] = Reader.ReadSubExpr(); in VisitConditionalOperator()
664 E->SubExprs[ConditionalOperator::LHS] = Reader.ReadSubExpr(); in VisitConditionalOperator()
665 E->SubExprs[ConditionalOperator::RHS] = Reader.ReadSubExpr(); in VisitConditionalOperator()
674 E->SubExprs[BinaryConditionalOperator::COMMON] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
675 E->SubExprs[BinaryConditionalOperator::COND] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
676 E->SubExprs[BinaryConditionalOperator::LHS] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
677 E->SubExprs[BinaryConditionalOperator::RHS] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
872 E->SubExprs = in VisitGenericSelectionExpr()
875 E->SubExprs[GenericSelectionExpr::CONTROLLING] = Reader.ReadSubExpr(); in VisitGenericSelectionExpr()
878 E->SubExprs[GenericSelectionExpr::END_EXPR+I] = Reader.ReadSubExpr(); in VisitGenericSelectionExpr()
[all …]
/external/clang/lib/Sema/
DSemaChecking.cpp1191 SmallVector<Expr*, 5> SubExprs; in SemaAtomicOpsOverloaded() local
1192 SubExprs.push_back(Ptr); in SemaAtomicOpsOverloaded()
1196 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
1199 SubExprs.push_back(TheCall->getArg(1)); // Order in SemaAtomicOpsOverloaded()
1204 SubExprs.push_back(TheCall->getArg(2)); // Order in SemaAtomicOpsOverloaded()
1205 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
1209 SubExprs.push_back(TheCall->getArg(3)); // Order in SemaAtomicOpsOverloaded()
1210 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
1211 SubExprs.push_back(TheCall->getArg(2)); // Val2 in SemaAtomicOpsOverloaded()
1214 SubExprs.push_back(TheCall->getArg(3)); // Order in SemaAtomicOpsOverloaded()
[all …]
DTreeTransform.h1970 MultiExprArg SubExprs, in RebuildParenListExpr() argument
1972 return getSema().ActOnParenListExpr(LParenLoc, RParenLoc, SubExprs); in RebuildParenListExpr()
2640 MultiExprArg SubExprs, in RebuildShuffleVectorExpr() argument
2660 SemaRef.Context, Callee, SubExprs, Builtin->getCallResultType(), in RebuildShuffleVectorExpr()
2738 MultiExprArg SubExprs, in RebuildAtomicExpr() argument
2745 return new (SemaRef.Context) AtomicExpr(BuiltinLoc, SubExprs, RetTy, Op, in RebuildAtomicExpr()
9628 SmallVector<Expr*, 8> SubExprs; in TransformShuffleVectorExpr() local
9629 SubExprs.reserve(E->getNumSubExprs()); in TransformShuffleVectorExpr()
9631 SubExprs, &ArgumentChanged)) in TransformShuffleVectorExpr()
9639 SubExprs, in TransformShuffleVectorExpr()
[all …]