Home
last modified time | relevance | path

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

/external/clang/include/clang/AST/
DExprOpenMP.h47 Stmt *SubExprs[END_EXPR]; variable
70 SubExprs[BASE] = Base; in OMPArraySectionExpr()
71 SubExprs[LOWER_BOUND] = LowerBound; in OMPArraySectionExpr()
72 SubExprs[LENGTH] = Length; in OMPArraySectionExpr()
82 Expr *getBase() { return cast<Expr>(SubExprs[BASE]); } in getBase()
83 const Expr *getBase() const { return cast<Expr>(SubExprs[BASE]); } in getBase()
85 void setBase(Expr *E) { SubExprs[BASE] = E; } in setBase()
91 Expr *getLowerBound() { return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); } in getLowerBound()
93 return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); in getLowerBound()
96 void setLowerBound(Expr *E) { SubExprs[LOWER_BOUND] = E; } in setLowerBound()
[all …]
DStmtCXX.h133 Stmt *SubExprs[END]; variable
154 DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); } in getRangeStmt()
156 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]); in getBeginStmt()
158 DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); } in getEndStmt()
159 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond()
160 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); } in getInc()
161 DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); } in getLoopVarStmt()
162 Stmt *getBody() { return SubExprs[BODY]; } in getBody()
165 return cast<DeclStmt>(SubExprs[RANGE]); in getRangeStmt()
168 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]); in getBeginStmt()
[all …]
DStmt.h692 Stmt* SubExprs[END_EXPR]; // The expression for the RHS is Non-null for variable
698 SubExprs[SUBSTMT] = nullptr; in CaseStmt()
699 SubExprs[LHS] = reinterpret_cast<Stmt*>(lhs); in CaseStmt()
700 SubExprs[RHS] = reinterpret_cast<Stmt*>(rhs); in CaseStmt()
714 Expr *getLHS() { return reinterpret_cast<Expr*>(SubExprs[LHS]); } in getLHS()
715 Expr *getRHS() { return reinterpret_cast<Expr*>(SubExprs[RHS]); } in getRHS()
716 Stmt *getSubStmt() { return SubExprs[SUBSTMT]; } in getSubStmt()
719 return reinterpret_cast<const Expr*>(SubExprs[LHS]); in getLHS()
722 return reinterpret_cast<const Expr*>(SubExprs[RHS]); in getRHS()
724 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 …]
DExprCXX.h731 Stmt *SubExprs[NUM_SUBEXPRS]; variable
734 void setBase(Expr *Base) { SubExprs[BASE_EXPR] = Base; } in setBase()
735 void setIdx(Expr *Idx) { SubExprs[IDX_EXPR] = Idx; } in setIdx()
744 SubExprs[BASE_EXPR] = Base; in MSPropertySubscriptExpr()
745 SubExprs[IDX_EXPR] = Idx; in MSPropertySubscriptExpr()
752 Expr *getBase() { return cast<Expr>(SubExprs[BASE_EXPR]); } in getBase()
753 const Expr *getBase() const { return cast<Expr>(SubExprs[BASE_EXPR]); } in getBase()
755 Expr *getIdx() { return cast<Expr>(SubExprs[IDX_EXPR]); } in getIdx()
756 const Expr *getIdx() const { return cast<Expr>(SubExprs[IDX_EXPR]); } in getIdx()
776 return child_range(&SubExprs[0], &SubExprs[0] + NUM_SUBEXPRS); in children()
[all …]
DExprObjC.h767 Stmt* SubExprs[END_EXPR];
790 {SubExprs[BASE] = base; SubExprs[KEY] = key;}
799 return SubExprs[BASE]->getLocStart();
807 Expr *getBaseExpr() const { return cast<Expr>(SubExprs[BASE]); }
808 void setBaseExpr(Stmt *S) { SubExprs[BASE] = S; }
810 Expr *getKeyExpr() const { return cast<Expr>(SubExprs[KEY]); }
811 void setKeyExpr(Stmt *S) { SubExprs[KEY] = S; }
826 return child_range(SubExprs, SubExprs+END_EXPR);
/external/clang/lib/AST/
DStmtCXX.cpp60 SubExprs[RANGE] = Range; in CXXForRangeStmt()
61 SubExprs[BEGINSTMT] = BeginStmt; in CXXForRangeStmt()
62 SubExprs[ENDSTMT] = EndStmt; in CXXForRangeStmt()
63 SubExprs[COND] = Cond; in CXXForRangeStmt()
64 SubExprs[INC] = Inc; in CXXForRangeStmt()
65 SubExprs[LOOPVAR] = LoopVar; in CXXForRangeStmt()
66 SubExprs[BODY] = Body; in CXXForRangeStmt()
DStmt.cpp772 SubExprs[INIT] = init; in IfStmt()
773 SubExprs[COND] = cond; in IfStmt()
774 SubExprs[THEN] = then; in IfStmt()
775 SubExprs[ELSE] = elsev; in IfStmt()
779 if (!SubExprs[VAR]) in getConditionVariable()
782 DeclStmt *DS = cast<DeclStmt>(SubExprs[VAR]); in getConditionVariable()
788 SubExprs[VAR] = nullptr; in setConditionVariable()
793 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable()
802 SubExprs[INIT] = Init; in ForStmt()
804 SubExprs[COND] = Cond; in ForStmt()
[all …]
DStmtObjC.cpp25 SubExprs[ELEM] = Elem; in ObjCForCollectionStmt()
26 SubExprs[COLLECTION] = Collect; in ObjCForCollectionStmt()
27 SubExprs[BODY] = Body; in ObjCForCollectionStmt()
DExpr.cpp1138 SubExprs = new (C) Stmt *[args.size()+PREARGS_START+NumPreArgs]; in CallExpr()
1139 SubExprs[FN] = fn; in CallExpr()
1142 SubExprs[i+PREARGS_START] = preargs[i]; in CallExpr()
1146 SubExprs[i+PREARGS_START+NumPreArgs] = args[i]; in CallExpr()
1168 : Expr(SC, Empty), SubExprs(nullptr), NumArgs(0) { in CallExpr()
1170 SubExprs = new (C) Stmt*[PREARGS_START+NumPreArgs](); in CallExpr()
1231 NewSubExprs[i] = SubExprs[i]; in setNumArgs()
1237 if (SubExprs) C.Deallocate(SubExprs); in setNumArgs()
1238 SubExprs = NewSubExprs; in setNumArgs()
3436 SubExprs = new (C) Stmt*[args.size()]; in ShuffleVectorExpr()
[all …]
DExprCXX.cpp76 SubExprs(nullptr), OperatorNew(operatorNew), OperatorDelete(operatorDelete), in CXXNewExpr()
93 SubExprs[i++] = arraySize; in CXXNewExpr()
103 SubExprs[i++] = initializer; in CXXNewExpr()
112 SubExprs[i++] = placementArgs[j]; in CXXNewExpr()
129 assert(SubExprs == nullptr && "SubExprs already allocated"); in AllocateArgsArray()
134 SubExprs = new (C) Stmt*[TotalSize]; in AllocateArgsArray()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp698 E->SubExprs[ConditionalOperator::COND] = Reader.ReadSubExpr(); in VisitConditionalOperator()
699 E->SubExprs[ConditionalOperator::LHS] = Reader.ReadSubExpr(); in VisitConditionalOperator()
700 E->SubExprs[ConditionalOperator::RHS] = Reader.ReadSubExpr(); in VisitConditionalOperator()
709 E->SubExprs[BinaryConditionalOperator::COMMON] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
710 E->SubExprs[BinaryConditionalOperator::COND] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
711 E->SubExprs[BinaryConditionalOperator::LHS] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
712 E->SubExprs[BinaryConditionalOperator::RHS] = Reader.ReadSubExpr(); in VisitBinaryConditionalOperator()
918 E->SubExprs = in VisitGenericSelectionExpr()
921 E->SubExprs[GenericSelectionExpr::CONTROLLING] = Reader.ReadSubExpr(); in VisitGenericSelectionExpr()
924 E->SubExprs[GenericSelectionExpr::END_EXPR+I] = Reader.ReadSubExpr(); in VisitGenericSelectionExpr()
[all …]
DASTWriterStmt.cpp1659 Record.AddStmt(E->SubExprs[0]); in VisitCXXFoldExpr()
1660 Record.AddStmt(E->SubExprs[1]); in VisitCXXFoldExpr()
/external/clang/lib/Sema/
DSemaChecking.cpp2557 SmallVector<Expr*, 5> SubExprs; in SemaAtomicOpsOverloaded() local
2558 SubExprs.push_back(Ptr); in SemaAtomicOpsOverloaded()
2562 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
2565 SubExprs.push_back(TheCall->getArg(1)); // Order in SemaAtomicOpsOverloaded()
2571 SubExprs.push_back(TheCall->getArg(2)); // Order in SemaAtomicOpsOverloaded()
2572 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
2576 SubExprs.push_back(TheCall->getArg(3)); // Order in SemaAtomicOpsOverloaded()
2577 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
2578 SubExprs.push_back(TheCall->getArg(2)); // Val2 in SemaAtomicOpsOverloaded()
2581 SubExprs.push_back(TheCall->getArg(3)); // Order in SemaAtomicOpsOverloaded()
[all …]
DTreeTransform.h2291 MultiExprArg SubExprs, in RebuildParenListExpr() argument
2293 return getSema().ActOnParenListExpr(LParenLoc, RParenLoc, SubExprs); in RebuildParenListExpr()
2995 MultiExprArg SubExprs, in RebuildShuffleVectorExpr() argument
3015 SemaRef.Context, Callee, SubExprs, Builtin->getCallResultType(), in RebuildShuffleVectorExpr()
3114 MultiExprArg SubExprs, in RebuildAtomicExpr() argument
3121 return new (SemaRef.Context) AtomicExpr(BuiltinLoc, SubExprs, RetTy, Op, in RebuildAtomicExpr()
11299 SmallVector<Expr*, 8> SubExprs; in TransformShuffleVectorExpr() local
11300 SubExprs.reserve(E->getNumSubExprs()); in TransformShuffleVectorExpr()
11302 SubExprs, &ArgumentChanged)) in TransformShuffleVectorExpr()
11310 SubExprs, in TransformShuffleVectorExpr()
[all …]