/external/clang/include/clang/Basic/ |
D | StmtNodes.td | 56 def Expr : Stmt<1>; 57 def PredefinedExpr : DStmt<Expr>; 58 def DeclRefExpr : DStmt<Expr>; 59 def IntegerLiteral : DStmt<Expr>; 60 def FloatingLiteral : DStmt<Expr>; 61 def ImaginaryLiteral : DStmt<Expr>; 62 def StringLiteral : DStmt<Expr>; 63 def CharacterLiteral : DStmt<Expr>; 64 def ParenExpr : DStmt<Expr>; 65 def UnaryOperator : DStmt<Expr>; [all …]
|
/external/clang/lib/AST/ |
D | ExprClassification.cpp | 24 typedef Expr::Classification Cl; 26 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E); 32 const Expr *trueExpr, 33 const Expr *falseExpr); 34 static Cl::ModifiableType IsModifiable(ASTContext &Ctx, const Expr *E, 37 Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const { in ClassifyImpl() 89 const Expr *E, in ClassifyExprValueKind() 102 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { in ClassifyInternal() 109 #define STMT(Kind, Base) case Expr::Kind##Class: in ClassifyInternal() 115 case Expr::ObjCIsaExprClass: in ClassifyInternal() [all …]
|
D | OpenMPClause.cpp | 32 void OMPPrivateClause::setPrivateCopies(ArrayRef<Expr *> VL) { in setPrivateCopies() 41 ArrayRef<Expr *> VL, ArrayRef<Expr *> PrivateVL) { in Create() 44 llvm::alignOf<Expr *>()) + in Create() 45 2 * sizeof(Expr *) * VL.size()); in Create() 56 llvm::alignOf<Expr *>()) + in CreateEmpty() 57 2 * sizeof(Expr *) * N); in CreateEmpty() 61 void OMPFirstprivateClause::setPrivateCopies(ArrayRef<Expr *> VL) { in setPrivateCopies() 67 void OMPFirstprivateClause::setInits(ArrayRef<Expr *> VL) { in setInits() 76 ArrayRef<Expr *> VL, ArrayRef<Expr *> PrivateVL, in Create() 77 ArrayRef<Expr *> InitVL) { in Create() [all …]
|
/external/clang/unittests/Tooling/ |
D | LookupTest.cpp | 19 bool VisitCallExpr(CallExpr *Expr) { in VisitCallExpr() 20 OnCall(Expr); in VisitCallExpr() 35 auto replaceCallExpr = [&](const CallExpr *Expr, in TEST() 37 const auto *Callee = cast<DeclRefExpr>(Expr->getCallee()->IgnoreImplicit()); in TEST() 44 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 45 EXPECT_EQ("bar", replaceCallExpr(Expr, "::bar")); in TEST() 50 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 51 EXPECT_EQ("bar", replaceCallExpr(Expr, "::a::bar")); in TEST() 56 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 57 EXPECT_EQ("a::bar", replaceCallExpr(Expr, "::a::bar")); in TEST() [all …]
|
/external/clang/include/clang/AST/ |
D | OpenMPClause.h | 85 MutableArrayRef<Expr *> getVarRefs() { in getVarRefs() 86 return MutableArrayRef<Expr *>( in getVarRefs() 87 reinterpret_cast<Expr **>( in getVarRefs() 89 llvm::RoundUpToAlignment(sizeof(T), llvm::alignOf<Expr *>())), in getVarRefs() 94 void setVarRefs(ArrayRef<Expr *> VL) { in setVarRefs() 99 reinterpret_cast<Expr **>( in setVarRefs() 101 llvm::RoundUpToAlignment(sizeof(T), llvm::alignOf<Expr *>()))); in setVarRefs() 117 typedef MutableArrayRef<Expr *>::iterator varlist_iterator; 118 typedef ArrayRef<const Expr *>::iterator varlist_const_iterator; 143 ArrayRef<const Expr *> getVarRefs() const { in getVarRefs() [all …]
|
D | Expr.h | 72 Expr *RHS; 93 SubobjectAdjustment(const MemberPointerType *MPT, Expr *RHS) in SubobjectAdjustment() 104 class Expr : public Stmt { 108 Expr(StmtClass SC, QualType T, ExprValueKind VK, ExprObjectKind OK, in Expr() function 122 explicit Expr(StmtClass SC, EmptyShell) : Stmt(SC) { } in Expr() function 229 bool isUnusedResultAWarning(const Expr *&WarnExpr, SourceLocation &Loc, 330 friend class Expr; 444 return const_cast<Expr*>(this)->getSourceBitField(); in getSourceBitField() 518 static bool isPotentialConstantExprUnevaluated(Expr *E, 528 const Expr **Culprit = nullptr) const; [all …]
|
D | ExprOpenMP.h | 45 class OMPArraySectionExpr : public Expr { 52 OMPArraySectionExpr(Expr *Base, Expr *LowerBound, Expr *Length, QualType Type, in OMPArraySectionExpr() 55 : Expr( in OMPArraySectionExpr() 77 : Expr(OMPArraySectionExprClass, Shell) {} 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() 88 static QualType getBaseOriginalType(Expr *Base); 91 Expr *getLowerBound() { return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); } in getLowerBound() 92 const Expr *getLowerBound() const { in getLowerBound() [all …]
|
D | ExprCXX.h | 66 CXXOperatorCallExpr(ASTContext& C, OverloadedOperatorKind Op, Expr *fn, in CXXOperatorCallExpr() 67 ArrayRef<Expr*> args, QualType t, ExprValueKind VK, in CXXOperatorCallExpr() 126 CXXMemberCallExpr(ASTContext &C, Expr *fn, ArrayRef<Expr*> args, in CXXMemberCallExpr() 136 Expr *getImplicitObjectArgument() const; 160 CUDAKernelCallExpr(ASTContext &C, Expr *fn, CallExpr *Config, in CUDAKernelCallExpr() 161 ArrayRef<Expr*> args, QualType t, ExprValueKind VK, in CUDAKernelCallExpr() 195 CastKind kind, Expr *op, unsigned PathSize, in CXXNamedCastExpr() 239 CXXStaticCastExpr(QualType ty, ExprValueKind vk, CastKind kind, Expr *op, in CXXStaticCastExpr() 251 ExprValueKind VK, CastKind K, Expr *Op, 271 Expr *op, unsigned pathSize, TypeSourceInfo *writtenTy, in CXXDynamicCastExpr() [all …]
|
D | StmtOpenMP.h | 334 MutableArrayRef<Expr *> getCounters() { in getCounters() 335 Expr **Storage = reinterpret_cast<Expr **>( in getCounters() 337 return MutableArrayRef<Expr *>(Storage, CollapsedNum); in getCounters() 341 MutableArrayRef<Expr *> getPrivateCounters() { in getPrivateCounters() 342 Expr **Storage = reinterpret_cast<Expr **>(&*std::next( in getPrivateCounters() 344 return MutableArrayRef<Expr *>(Storage, CollapsedNum); in getPrivateCounters() 348 MutableArrayRef<Expr *> getInits() { in getInits() 349 Expr **Storage = reinterpret_cast<Expr **>( in getInits() 352 return MutableArrayRef<Expr *>(Storage, CollapsedNum); in getInits() 356 MutableArrayRef<Expr *> getUpdates() { in getUpdates() [all …]
|
D | ExprObjC.h | 29 class ObjCStringLiteral : public Expr { 34 : Expr(ObjCStringLiteralClass, T, VK_RValue, OK_Ordinary, false, false, in ObjCStringLiteral() 38 : Expr(ObjCStringLiteralClass, Empty) {} in ObjCStringLiteral() 60 class ObjCBoolLiteralExpr : public Expr { 65 Expr(ObjCBoolLiteralExprClass, Ty, VK_RValue, OK_Ordinary, false, false, in ObjCBoolLiteralExpr() 69 : Expr(ObjCBoolLiteralExprClass, Empty) { } in ObjCBoolLiteralExpr() 94 class ObjCBoxedExpr : public Expr { 99 ObjCBoxedExpr(Expr *E, QualType T, ObjCMethodDecl *method, in ObjCBoxedExpr() 101 : Expr(ObjCBoxedExprClass, T, VK_RValue, OK_Ordinary, in ObjCBoxedExpr() 106 : Expr(ObjCBoxedExprClass, Empty) {} in ObjCBoxedExpr() [all …]
|
/external/clang/lib/Sema/ |
D | SemaExceptionSpec.cpp | 797 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) { in CheckExceptionSpecCompatibility() 865 static CanThrowResult canSubExprsThrow(Sema &S, const Expr *E) { in canSubExprsThrow() 868 R = mergeCanThrow(R, S.canThrow(cast<Expr>(SubStmt))); in canSubExprsThrow() 875 static CanThrowResult canCalleeThrow(Sema &S, const Expr *E, const Decl *D) { in canCalleeThrow() 927 Expr *Op = DC->getExprOperand(); in canTypeidThrow() 944 CanThrowResult Sema::canThrow(const Expr *E) { in canThrow() 949 case Expr::CXXThrowExprClass: in canThrow() 953 case Expr::CXXDynamicCastExprClass: { in canThrow() 962 case Expr::CXXTypeidExprClass: in canThrow() 970 case Expr::CallExprClass: in canThrow() [all …]
|
D | SemaFixItUtils.cpp | 51 bool ConversionFixItGenerator::tryToFixConversion(const Expr *FullExpr, in tryToFixConversion() 66 const Expr* Expr = FullExpr->IgnoreImpCasts(); in tryToFixConversion() local 69 if (isa<ArraySubscriptExpr>(Expr) || in tryToFixConversion() 70 isa<CallExpr>(Expr) || in tryToFixConversion() 71 isa<DeclRefExpr>(Expr) || in tryToFixConversion() 72 isa<CastExpr>(Expr) || in tryToFixConversion() 73 isa<CXXNewExpr>(Expr) || in tryToFixConversion() 74 isa<CXXConstructExpr>(Expr) || in tryToFixConversion() 75 isa<CXXDeleteExpr>(Expr) || in tryToFixConversion() 76 isa<CXXNoexceptExpr>(Expr) || in tryToFixConversion() [all …]
|
D | SemaPseudoObject.cpp | 50 typedef llvm::function_ref<Expr *(Expr *, unsigned)> SpecificRebuilderRefTy; 56 Expr *rebuildObjCPropertyRefExpr(ObjCPropertyRefExpr *refExpr) { in rebuildObjCPropertyRefExpr() 74 Expr *rebuildObjCSubscriptRefExpr(ObjCSubscriptRefExpr *refExpr) { in rebuildObjCSubscriptRefExpr() 85 Expr *rebuildMSPropertyRefExpr(MSPropertyRefExpr *refExpr) { in rebuildMSPropertyRefExpr() 94 Expr *rebuildMSPropertySubscriptExpr(MSPropertySubscriptExpr *refExpr) { in rebuildMSPropertySubscriptExpr() 107 Expr *rebuild(Expr *e) { in rebuild() 143 SmallVector<Expr*, 8> assocs(numAssocs); in rebuild() 147 Expr *assoc = gse->getAssocExpr(i); in rebuild() 167 Expr *LHS = ce->getLHS(), *RHS = ce->getRHS(); in rebuild() 168 Expr *&rebuiltExpr = ce->isConditionTrue() ? LHS : RHS; in rebuild() [all …]
|
/external/llvm/lib/TableGen/ |
D | SetTheory.cpp | 30 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 32 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply() 38 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 40 if (Expr->arg_size() < 2) in apply() 42 Expr->getAsString()); in apply() 44 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply() 45 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply() 54 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 56 if (Expr->arg_size() != 2) in apply() 58 Expr->getAsString()); in apply() [all …]
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldChecker.cpp | 34 bool evaluate(StringRef Expr) const { in evaluate() 36 Expr = Expr.trim(); in evaluate() 37 size_t EQIdx = Expr.find('='); in evaluate() 42 StringRef LHSExpr = Expr.substr(0, EQIdx).rtrim(); in evaluate() 48 return handleError(Expr, LHSResult); in evaluate() 50 return handleError(Expr, unexpectedToken(RemainingExpr, LHSExpr, "")); in evaluate() 53 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate() 58 return handleError(Expr, RHSResult); in evaluate() 60 return handleError(Expr, unexpectedToken(RemainingExpr, RHSExpr, "")); in evaluate() 63 Checker.ErrStream << "Expression '" << Expr << "' is false: " in evaluate() [all …]
|
/external/clang/lib/Analysis/ |
D | BodyFarm.cpp | 48 BinaryOperator *makeAssignment(const Expr *LHS, const Expr *RHS, QualType Ty); 51 BinaryOperator *makeComparison(const Expr *LHS, const Expr *RHS, 61 UnaryOperator *makeDereference(const Expr *Arg, QualType Ty); 64 Expr *makeIntegralCast(const Expr *Arg, QualType Ty); 67 ImplicitCastExpr *makeIntegralCastToBoolean(const Expr *Arg); 70 ImplicitCastExpr *makeLvalueToRvalue(const Expr *Arg, QualType Ty); 76 ObjCIvarRefExpr *makeObjCIvarRef(const Expr *Base, const ObjCIvarDecl *IVar); 79 ReturnStmt *makeReturn(const Expr *RetVal); 86 BinaryOperator *ASTMaker::makeAssignment(const Expr *LHS, const Expr *RHS, in makeAssignment() 88 return new (C) BinaryOperator(const_cast<Expr*>(LHS), const_cast<Expr*>(RHS), in makeAssignment() [all …]
|
/external/opencv3/modules/cudev/include/opencv2/cudev/expr/ |
D | binary_op.hpp | 68 …__host__ Expr<BinaryTransformPtrSz<typename PtrTraits<GpuMat_<T> >::ptr_type, typename PtrTraits<G… 74 …__host__ Expr<BinaryTransformPtrSz<typename PtrTraits<GpuMat_<T> >::ptr_type, typename PtrTraits<G… 80 …__host__ Expr<BinaryTransformPtrSz<typename PtrTraits<GlobPtrSz<T> >::ptr_type, typename PtrTraits… 86 …__host__ Expr<BinaryTransformPtrSz<typename PtrTraits<GpuMat_<T> >::ptr_type, typename PtrTraits<T… 92 …__host__ Expr<BinaryTransformPtrSz<typename PtrTraits<Texture<T> >::ptr_type, typename PtrTraits<G… 98 …__host__ Expr<BinaryTransformPtrSz<typename PtrTraits<GpuMat_<T> >::ptr_type, typename PtrTraits<B… 99 operator op(const GpuMat_<T>& src1, const Expr<Body>& src2) \ 104 …__host__ Expr<BinaryTransformPtrSz<typename PtrTraits<Body>::ptr_type, typename PtrTraits<GpuMat_<… 105 operator op(const Expr<Body>& src1, const GpuMat_<T>& src2) \ 110 …__host__ Expr<UnaryTransformPtrSz<typename PtrTraits<GpuMat_<T> >::ptr_type, Binder2nd< functor<T>… [all …]
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCMCExpr.h | 34 const MCExpr *Expr; variable 39 explicit PPCMCExpr(VariantKind Kind, const MCExpr *Expr, bool IsDarwin) in PPCMCExpr() argument 40 : Kind(Kind), Expr(Expr), IsDarwin(IsDarwin) {} in PPCMCExpr() 46 static const PPCMCExpr *create(VariantKind Kind, const MCExpr *Expr, 49 static const PPCMCExpr *createLo(const MCExpr *Expr, in createLo() argument 51 return create(VK_PPC_LO, Expr, isDarwin, Ctx); in createLo() 54 static const PPCMCExpr *createHi(const MCExpr *Expr, in createHi() argument 56 return create(VK_PPC_HI, Expr, isDarwin, Ctx); in createHi() 59 static const PPCMCExpr *createHa(const MCExpr *Expr, in createHa() argument 61 return create(VK_PPC_HA, Expr, isDarwin, Ctx); in createHa() [all …]
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86ELFRelocationInfo.cpp | 48 const MCExpr *Expr = nullptr; in createExprForRelocation() local 85 Expr = MCSymbolRefExpr::create(Sym, Ctx); in createExprForRelocation() 94 Expr = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOT, Ctx); in createExprForRelocation() 99 Expr = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_PLT, Ctx); in createExprForRelocation() 104 Expr = MCSymbolRefExpr::create(Sym, Ctx); in createExprForRelocation() 110 Expr = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, Ctx); in createExprForRelocation() 114 Expr = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTOFF, Ctx); in createExprForRelocation() 122 Expr = MCConstantExpr::create(SymSize, Ctx); in createExprForRelocation() 125 Expr = MCSymbolRefExpr::create(Sym, Ctx); in createExprForRelocation() 128 if (Expr && hasAddend && Addend != 0) in createExprForRelocation() [all …]
|
/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 67 const Expr *Arg = Msg->getArg(0)->IgnoreParenImpCasts(); in rewriteObjCRedundantCallWithLiteral() 110 const Expr *Receiver, in maybeAdjustInterfaceForSubscriptingCheck() 160 const Expr *Rec = Msg->getInstanceReceiver(); in canRewriteToSubscriptSyntax() 172 static bool subscriptOperatorNeedsParens(const Expr *FullExpr); 174 static void maybePutParensOnReceiver(const Expr *Receiver, Commit &commit) { in maybePutParensOnReceiver() 185 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToSubscriptGetCommon() 233 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToArraySubscriptSet() 267 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToDictionarySubscriptSet() 376 static void objectifyExpr(const Expr *E, Commit &commit); 412 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in rewriteToArrayLiteral() [all …]
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMMCExpr.h | 27 const MCExpr *Expr; variable 29 explicit ARMMCExpr(VariantKind Kind, const MCExpr *Expr) in ARMMCExpr() argument 30 : Kind(Kind), Expr(Expr) {} in ARMMCExpr() 36 static const ARMMCExpr *create(VariantKind Kind, const MCExpr *Expr, 39 static const ARMMCExpr *createUpper16(const MCExpr *Expr, MCContext &Ctx) { in createUpper16() argument 40 return create(VK_ARM_HI16, Expr, Ctx); in createUpper16() 43 static const ARMMCExpr *createLower16(const MCExpr *Expr, MCContext &Ctx) { in createLower16() argument 44 return create(VK_ARM_LO16, Expr, Ctx); in createLower16() 55 const MCExpr *getSubExpr() const { return Expr; } in getSubExpr()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | CStringSyntaxChecker.cpp | 39 inline bool sameDecl(const Expr *A1, const Expr *A2) { in sameDecl() 47 inline bool isSizeof(const Expr *E, const Expr *WithArg) { in isSizeof() 56 inline bool isStrlen(const Expr *E, const Expr *WithArg) { in isStrlen() 68 inline bool isOne(const Expr *E) { in isOne() 74 inline StringRef getPrintableName(const Expr *E) { in getPrintableName() 106 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern() 107 const Expr *SrcArg = CE->getArg(1); in containsBadStrncatPattern() 108 const Expr *LenArg = CE->getArg(2); in containsBadStrncatPattern() 115 const Expr *L = BE->getLHS(); in containsBadStrncatPattern() 116 const Expr *R = BE->getRHS(); in containsBadStrncatPattern() [all …]
|
/external/llvm/lib/Target/Hexagon/MCTargetDesc/ |
D | HexagonMCExpr.cpp | 20 HexagonNoExtendOperand *HexagonNoExtendOperand::Create(MCExpr const *Expr, in Create() argument 22 return new (Ctx) HexagonNoExtendOperand(Expr); in Create() 27 return Expr->evaluateAsRelocatable(Res, Layout, Fixup); in evaluateAsRelocatableImpl() 33 return Expr->findAssociatedFragment(); in findAssociatedFragment() 38 MCExpr const *HexagonNoExtendOperand::getExpr() const { return Expr; } in getExpr() 44 HexagonNoExtendOperand::HexagonNoExtendOperand(MCExpr const *Expr) in HexagonNoExtendOperand() argument 45 : Expr(Expr) {} in HexagonNoExtendOperand() 48 Expr->print(OS, MAI); in printImpl()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 109 class Expr; variable 426 llvm::SmallPtrSet<Expr*, 2> MaybeODRUseExprs; 814 llvm::SmallPtrSet<Expr*, 2> SavedMaybeODRUseExprs; 989 bool isSelfExpr(Expr *RExpr); 990 bool isSelfExpr(Expr *RExpr, const ObjCMethodDecl *Method); 1226 Expr *ArraySize, unsigned Quals, 1228 QualType BuildExtVectorType(QualType T, Expr *ArraySize, 1284 CanThrowResult canThrow(const Expr *E); 1338 static SourceRange getPrintable(const Expr *E) { return E->getSourceRange(); } in getPrintable() 1429 void completeExprArrayBound(Expr *E); [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolutionExpressions.h | 569 const SCEV *visitTruncateExpr(const SCEVTruncateExpr *Expr) { in visitTruncateExpr() argument 570 const SCEV *Operand = ((SC*)this)->visit(Expr->getOperand()); in visitTruncateExpr() 571 return SE.getTruncateExpr(Operand, Expr->getType()); in visitTruncateExpr() 574 const SCEV *visitZeroExtendExpr(const SCEVZeroExtendExpr *Expr) { in visitZeroExtendExpr() argument 575 const SCEV *Operand = ((SC*)this)->visit(Expr->getOperand()); in visitZeroExtendExpr() 576 return SE.getZeroExtendExpr(Operand, Expr->getType()); in visitZeroExtendExpr() 579 const SCEV *visitSignExtendExpr(const SCEVSignExtendExpr *Expr) { in visitSignExtendExpr() argument 580 const SCEV *Operand = ((SC*)this)->visit(Expr->getOperand()); in visitSignExtendExpr() 581 return SE.getSignExtendExpr(Operand, Expr->getType()); in visitSignExtendExpr() 584 const SCEV *visitAddExpr(const SCEVAddExpr *Expr) { in visitAddExpr() argument [all …]
|