Lines Matching refs:Expr

39 const CXXRecordDecl *Expr::getBestDynamicClassType() const {  in getBestDynamicClassType()
40 const Expr *E = ignoreParenBaseCasts(); in getBestDynamicClassType()
54 const Expr *Expr::skipRValueSubobjectAdjustments( in skipRValueSubobjectAdjustments()
55 SmallVectorImpl<const Expr *> &CommaLHSs, in skipRValueSubobjectAdjustments()
57 const Expr *E = this; in skipRValueSubobjectAdjustments()
112 bool Expr::isKnownToHaveBooleanValue() const { in isKnownToHaveBooleanValue()
113 const Expr *E = IgnoreParens(); in isKnownToHaveBooleanValue()
177 SourceLocation getExprLocImpl(const Expr *expr, in getExprLocImpl()
187 SourceLocation getExprLocImpl(const Expr *expr, in getExprLocImpl()
188 SourceLocation (Expr::*v)() const) { in getExprLocImpl()
193 SourceLocation Expr::getExprLoc() const { in getExprLoc()
275 if (const Expr *Init = Var->getAnyInitializer()) in computeDeclRefDependence()
330 : Expr(DeclRefExprClass, T, VK, OK_Ordinary, false, false, false, false), in DeclRefExpr()
443 : Expr(PredefinedExprClass, FNTy, VK_LValue, OK_Ordinary, in PredefinedExpr()
716 : Expr(IntegerLiteralClass, type, VK_RValue, OK_Ordinary, false, false, in IntegerLiteral()
738 : Expr(FloatingLiteralClass, Type, VK_RValue, OK_Ordinary, false, false, in FloatingLiteral()
746 : Expr(FloatingLiteralClass, Empty) { in FloatingLiteral()
1115 CallExpr::CallExpr(const ASTContext& C, StmtClass SC, Expr *fn, in CallExpr()
1116 unsigned NumPreArgs, ArrayRef<Expr*> args, QualType t, in CallExpr()
1118 : Expr(SC, t, VK, OK_Ordinary, in CallExpr()
1144 CallExpr::CallExpr(const ASTContext &C, Expr *fn, ArrayRef<Expr *> args, in CallExpr()
1154 : Expr(SC, Empty), SubExprs(nullptr), NumArgs(0) { in CallExpr()
1161 Expr *CEE = getCallee()->IgnoreParenImpCasts(); in getCalleeDecl()
1248 const Expr *Callee = getCallee(); in getCallReturnType()
1259 CalleeType = Expr::findBoundMemberType(Callee); in getCallReturnType()
1289 ArrayRef<Expr*> exprs, in Create()
1293 sizeof(Expr*) * exprs.size()); in Create()
1303 sizeof(Expr*) * numExprs); in CreateEmpty()
1309 ArrayRef<OffsetOfNode> comps, ArrayRef<Expr*> exprs, in OffsetOfExpr()
1311 : Expr(OffsetOfExprClass, type, VK_RValue, OK_Ordinary, in OffsetOfExpr()
1342 UnaryExprOrTypeTrait ExprKind, Expr *E, QualType resultType, in UnaryExprOrTypeTraitExpr()
1344 : Expr(UnaryExprOrTypeTraitExprClass, resultType, VK_RValue, OK_Ordinary, in UnaryExprOrTypeTraitExpr()
1380 const ASTContext &C, Expr *base, bool isarrow, SourceLocation OperatorLoc, in Create()
1690 Expr *CastExpr::getSubExprAsWritten() { in getSubExprAsWritten()
1691 Expr *SubExpr = nullptr; in getSubExprAsWritten()
1738 CastKind Kind, Expr *Operand, in Create()
1759 ExprValueKind VK, CastKind K, Expr *Op, in Create()
1883 ArrayRef<Expr*> initExprs, SourceLocation rbraceloc) in InitListExpr()
1884 : Expr(InitListExprClass, QualType(), VK_RValue, OK_Ordinary, false, false, in InitListExpr()
1913 Expr *InitListExpr::updateInit(const ASTContext &C, unsigned Init, Expr *expr) { in updateInit()
1920 Expr *Result = cast_or_null<Expr>(InitExprs[Init]); in updateInit()
1925 void InitListExpr::setArrayFiller(Expr *filler) { in setArrayFiller()
1929 Expr **inits = getInits(); in setArrayFiller()
1942 const Expr *Init = getInit(0); in isStringLiteralInit()
2012 bool Expr::isUnusedResultAWarning(const Expr *&WarnE, SourceLocation &Loc, in isUnusedResultAWarning()
2256 if (const Expr *E = dyn_cast<Expr>(CS->body_back())) in isUnusedResultAWarning()
2259 if (const Expr *E = dyn_cast<Expr>(Label->getSubStmt())) in isUnusedResultAWarning()
2339 bool Expr::isOBJCGCCandidate(ASTContext &Ctx) const { in isOBJCGCCandidate()
2340 const Expr *E = IgnoreParens(); in isOBJCGCCandidate()
2346 case Expr::UnaryOperatorClass: in isOBJCGCCandidate()
2378 bool Expr::isBoundMemberFunction(ASTContext &Ctx) const { in isBoundMemberFunction()
2381 return ClassifyLValue(Ctx) == Expr::LV_MemberFunction; in isBoundMemberFunction()
2384 QualType Expr::findBoundMemberType(const Expr *expr) { in findBoundMemberType()
2408 Expr* Expr::IgnoreParens() { in IgnoreParens()
2409 Expr* E = this; in IgnoreParens()
2439 Expr *Expr::IgnoreParenCasts() { in IgnoreParenCasts()
2440 Expr *E = this; in IgnoreParenCasts()
2461 Expr *Expr::IgnoreCasts() { in IgnoreCasts()
2462 Expr *E = this; in IgnoreCasts()
2486 Expr *Expr::IgnoreParenLValueCasts() { in IgnoreParenLValueCasts()
2487 Expr *E = this; in IgnoreParenLValueCasts()
2509 Expr *Expr::ignoreParenBaseCasts() { in ignoreParenBaseCasts()
2510 Expr *E = this; in ignoreParenBaseCasts()
2526 Expr *Expr::IgnoreParenImpCasts() { in IgnoreParenImpCasts()
2527 Expr *E = this; in IgnoreParenImpCasts()
2548 Expr *Expr::IgnoreConversionOperator() { in IgnoreConversionOperator()
2559 Expr *Expr::IgnoreParenNoopCasts(ASTContext &Ctx) { in IgnoreParenNoopCasts()
2560 Expr *E = this; in IgnoreParenNoopCasts()
2567 Expr *SE = P->getSubExpr(); in IgnoreParenNoopCasts()
2594 bool Expr::isDefaultArgument() const { in isDefaultArgument()
2595 const Expr *E = this; in isDefaultArgument()
2607 static const Expr *skipTemporaryBindingsNoOpCastsAndParens(const Expr *E) { in skipTemporaryBindingsNoOpCastsAndParens()
2633 bool Expr::isTemporaryObject(ASTContext &C, const CXXRecordDecl *TempTy) const { in isTemporaryObject()
2637 const Expr *E = skipTemporaryBindingsNoOpCastsAndParens(this); in isTemporaryObject()
2675 bool Expr::isImplicitCXXThis() const { in isImplicitCXXThis()
2676 const Expr *E = this; in isImplicitCXXThis()
2719 bool Expr::hasAnyTypeDependentArguments(ArrayRef<Expr *> Exprs) { in hasAnyTypeDependentArguments()
2727 bool Expr::isConstantInitializer(ASTContext &Ctx, bool IsForRef, in isConstantInitializer()
2728 const Expr **Culprit) const { in isConstantInitializer()
2772 const Expr *Exp = cast<CompoundLiteralExpr>(this)->getInitializer(); in isConstantInitializer()
2799 const Expr *Elt = ILE->getInit(ElementNo++); in isConstantInitializer()
2884 bool Expr::HasSideEffects(const ASTContext &Ctx, in HasSideEffects()
3009 if (const Expr *E = cast<InitListExpr>(this)->getArrayFiller()) in HasSideEffects()
3028 if (const Expr *E = FD->getInClassInitializer()) in HasSideEffects()
3094 const Expr *Subexpr = *I; in HasSideEffects()
3123 if (cast<Expr>(S)->HasSideEffects(Ctx, IncludePossibleEffects)) in HasSideEffects()
3177 bool Expr::hasNonTrivialCall(ASTContext &Ctx) { in hasNonTrivialCall()
3188 Expr::NullPointerConstantKind
3189 Expr::isNullPointerConstant(ASTContext &Ctx, in isNullPointerConstant()
3250 if (const Expr *Source = OVE->getSourceExpr()) in isNullPointerConstant()
3262 const Expr *InitExpr = CLE->getInitializer(); in isNullPointerConstant()
3297 const ObjCPropertyRefExpr *Expr::getObjCProperty() const { in getObjCProperty()
3298 const Expr *E = this; in getObjCProperty()
3317 bool Expr::isObjCSelfExpr() const { in isObjCSelfExpr()
3318 const Expr *E = IgnoreParenImpCasts(); in isObjCSelfExpr()
3335 FieldDecl *Expr::getSourceBitField() { in getSourceBitField()
3336 Expr *E = this->IgnoreParens(); in getSourceBitField()
3376 bool Expr::refersToVectorElement() const { in refersToVectorElement()
3377 const Expr *E = this->IgnoreParens(); in refersToVectorElement()
3469 ArrayRef<Expr *> Args, in ObjCMessageExpr()
3472 : Expr(ObjCMessageExprClass, T, VK, OK_Ordinary, in ObjCMessageExpr()
3495 ArrayRef<Expr *> Args, in ObjCMessageExpr()
3498 : Expr(ObjCMessageExprClass, T, VK, OK_Ordinary, T->isDependentType(), in ObjCMessageExpr()
3514 Expr *Receiver, in ObjCMessageExpr()
3519 ArrayRef<Expr *> Args, in ObjCMessageExpr()
3522 : Expr(ObjCMessageExprClass, T, VK, OK_Ordinary, Receiver->isTypeDependent(), in ObjCMessageExpr()
3536 void ObjCMessageExpr::initArgsAndSelLocs(ArrayRef<Expr *> Args, in initArgsAndSelLocs()
3540 Expr **MyArgs = getArgs(); in initArgsAndSelLocs()
3570 ArrayRef<Expr *> Args, in Create()
3593 ArrayRef<Expr *> Args, in Create()
3612 Expr *Receiver, in Create()
3616 ArrayRef<Expr *> Args, in Create()
3640 ArrayRef<Expr *> Args, in alloc()
3655 NumArgs * sizeof(Expr *) + NumStoredSelLocs * sizeof(SourceLocation); in alloc()
3728 ShuffleVectorExpr::ShuffleVectorExpr(const ASTContext &C, ArrayRef<Expr*> args, in ShuffleVectorExpr()
3731 : Expr(ShuffleVectorExprClass, Type, VK_RValue, OK_Ordinary, in ShuffleVectorExpr()
3752 void ShuffleVectorExpr::setExprs(const ASTContext &C, ArrayRef<Expr *> Exprs) { in setExprs()
3757 memcpy(SubExprs, Exprs.data(), sizeof(Expr *) * Exprs.size()); in setExprs()
3761 SourceLocation GenericLoc, Expr *ControllingExpr, in GenericSelectionExpr()
3763 ArrayRef<Expr*> AssocExprs, in GenericSelectionExpr()
3768 : Expr(GenericSelectionExprClass, in GenericSelectionExpr()
3787 SourceLocation GenericLoc, Expr *ControllingExpr, in GenericSelectionExpr()
3789 ArrayRef<Expr*> AssocExprs, in GenericSelectionExpr()
3793 : Expr(GenericSelectionExprClass, in GenericSelectionExpr()
3828 ArrayRef<Expr*> IndexExprs, in DesignatedInitExpr()
3829 Expr *Init) in DesignatedInitExpr()
3830 : Expr(DesignatedInitExprClass, Ty, in DesignatedInitExpr()
3851 Expr *Index = IndexExprs[IndexIdx]; in DesignatedInitExpr()
3864 Expr *Start = IndexExprs[IndexIdx]; in DesignatedInitExpr()
3865 Expr *End = IndexExprs[IndexIdx + 1]; in DesignatedInitExpr()
3892 ArrayRef<Expr*> IndexExprs, in Create()
3894 bool UsesColonSyntax, Expr *Init) { in Create()
3945 Expr *DesignatedInitExpr::getArrayIndex(const Designator& D) const { in getArrayIndex()
3948 return cast<Expr>(*(SubExprs + D.ArrayOrRange.Index + 1)); in getArrayIndex()
3951 Expr *DesignatedInitExpr::getArrayRangeStart(const Designator &D) const { in getArrayRangeStart()
3955 return cast<Expr>(*(SubExprs + D.ArrayOrRange.Index + 1)); in getArrayRangeStart()
3958 Expr *DesignatedInitExpr::getArrayRangeEnd(const Designator &D) const { in getArrayRangeEnd()
3962 return cast<Expr>(*(SubExprs + D.ArrayOrRange.Index + 2)); in getArrayRangeEnd()
3993 ArrayRef<Expr*> exprs, in ParenListExpr()
3995 : Expr(ParenListExprClass, QualType(), VK_RValue, OK_Ordinary, in ParenListExpr()
4013 const OpaqueValueExpr *OpaqueValueExpr::findInCopyConstruct(const Expr *e) { in findInCopyConstruct()
4028 (1 + numSemanticExprs) * sizeof(Expr*), in Create()
4034 : Expr(PseudoObjectExprClass, shell) { in PseudoObjectExpr()
4038 PseudoObjectExpr *PseudoObjectExpr::Create(const ASTContext &C, Expr *syntax, in Create()
4039 ArrayRef<Expr*> semantics, in Create()
4057 (1 + semantics.size()) * sizeof(Expr*), in Create()
4064 Expr *syntax, ArrayRef<Expr*> semantics, in PseudoObjectExpr()
4066 : Expr(PseudoObjectExprClass, type, VK, OK_Ordinary, in PseudoObjectExpr()
4072 Expr *E = (i == 0 ? syntax : semantics[i-1]); in PseudoObjectExpr()
4095 Expr* ExprIterator::operator[](size_t idx) { return cast<Expr>(I[idx]); } in operator []()
4096 Expr* ExprIterator::operator*() const { return cast<Expr>(*I); } in operator *()
4097 Expr* ExprIterator::operator->() const { return cast<Expr>(*I); } in operator ->()
4098 const Expr* ConstExprIterator::operator[](size_t idx) const { in operator []()
4099 return cast<Expr>(I[idx]); in operator []()
4101 const Expr* ConstExprIterator::operator*() const { return cast<Expr>(*I); } in operator *()
4102 const Expr* ConstExprIterator::operator->() const { return cast<Expr>(*I); } in operator ->()
4133 ObjCArrayLiteral::ObjCArrayLiteral(ArrayRef<Expr *> Elements, in ObjCArrayLiteral()
4136 : Expr(ObjCArrayLiteralClass, T, VK_RValue, OK_Ordinary, in ObjCArrayLiteral()
4140 Expr **SaveElements = getElements(); in ObjCArrayLiteral()
4154 ArrayRef<Expr *> Elements, in Create()
4158 + Elements.size() * sizeof(Expr *)); in Create()
4166 + NumElements * sizeof(Expr *)); in CreateEmpty()
4175 : Expr(ObjCDictionaryLiteralClass, T, VK_RValue, OK_Ordinary, false, false, in ObjCDictionaryLiteral()
4234 Expr *base, in Create()
4235 Expr *key, QualType T, in Create()
4245 AtomicExpr::AtomicExpr(SourceLocation BLoc, ArrayRef<Expr*> args, in AtomicExpr()
4247 : Expr(AtomicExprClass, t, VK_RValue, OK_Ordinary, in AtomicExpr()