/external/clang/include/clang/Basic/ |
D | StmtNodes.td | 49 def Expr : Stmt<1>; 50 def PredefinedExpr : DStmt<Expr>; 51 def DeclRefExpr : DStmt<Expr>; 52 def IntegerLiteral : DStmt<Expr>; 53 def FloatingLiteral : DStmt<Expr>; 54 def ImaginaryLiteral : DStmt<Expr>; 55 def StringLiteral : DStmt<Expr>; 56 def CharacterLiteral : DStmt<Expr>; 57 def ParenExpr : DStmt<Expr>; 58 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, 38 const Expr *E, in ClassifyExprValueKind() 52 Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const { in ClassifyImpl() 90 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { in ClassifyInternal() 97 #define STMT(Kind, Base) case Expr::Kind##Class: in ClassifyInternal() 103 case Expr::ObjCIsaExprClass: in ClassifyInternal() [all …]
|
D | Expr.cpp | 40 bool Expr::isKnownToHaveBooleanValue() const { in isKnownToHaveBooleanValue() 41 const Expr *E = IgnoreParens(); in isKnownToHaveBooleanValue() 103 SourceLocation getExprLocImpl(const Expr *expr, in getExprLocImpl() 113 SourceLocation getExprLocImpl(const Expr *expr, in getExprLocImpl() 114 SourceLocation (Expr::*v)() const) { in getExprLocImpl() 119 SourceLocation Expr::getExprLoc() const { in getExprLoc() 201 if (const Expr *Init = Var->getAnyInitializer()) in computeDeclRefDependence() 271 : Expr(DeclRefExprClass, T, VK, OK_Ordinary, false, false, false, false), in DeclRefExpr() 795 CallExpr::CallExpr(ASTContext& C, StmtClass SC, Expr *fn, unsigned NumPreArgs, in CallExpr() 796 Expr **args, unsigned numargs, QualType t, ExprValueKind VK, in CallExpr() [all …]
|
D | ExprConstant.cpp | 65 return B.get<const Expr*>()->getType(); in getType() 201 bool checkSubobject(EvalInfo &Info, const Expr *E, CheckSubobjectKind CSK); 241 void diagnosePointerArithmetic(EvalInfo &Info, const Expr *E, uint64_t N); 243 void adjustIndex(EvalInfo &Info, const Expr *E, uint64_t N) { in adjustIndex() 290 typedef llvm::DenseMap<const Expr*, APValue> MapTy; 353 Expr::EvalStatus &EvalStatus; 390 EvalInfo(const ASTContext &C, Expr::EvalStatus &S) in EvalInfo() 476 OptionalDiagnostic Diag(const Expr *E, diag::kind DiagId in Diag() 542 Expr::EvalStatus Old; 557 bool SubobjectDesignator::checkSubobject(EvalInfo &Info, const Expr *E, in checkSubobject() [all …]
|
D | ItaniumMangle.cpp | 336 void mangleMemberExpr(const Expr *base, bool isArrow, 341 void mangleExpression(const Expr *E, unsigned Arity = UnknownArity); 2212 Expr *E = T->getUnderlyingExpr(); in mangleType() 2284 void CXXNameMangler::mangleMemberExpr(const Expr *base, in mangleMemberExpr() 2310 const Expr *callee = call->getCallee(); in isParenthesizedADLCallee() 2311 const Expr *fn = callee->IgnoreParens(); in isParenthesizedADLCallee() 2337 void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity) { in mangleExpression() 2361 case Expr::NoStmtClass: in mangleExpression() 2365 case Expr::Type##Class: in mangleExpression() 2371 case Expr::AddrLabelExprClass: in mangleExpression() [all …]
|
/external/llvm/utils/TableGen/ |
D | SetTheory.cpp | 30 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts) { in apply() 31 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts); in apply() 37 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts) { in apply() 38 if (Expr->arg_size() < 2) in apply() 40 Expr->getAsString(); in apply() 42 ST.evaluate(*Expr->arg_begin(), Add); in apply() 43 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub); in apply() 52 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts) { in apply() 53 if (Expr->arg_size() != 2) in apply() 54 throw "Set intersection requires two arguments: " + Expr->getAsString(); in apply() [all …]
|
/external/clang/include/clang/AST/ |
D | Expr.h | 55 class Expr : public Stmt { 59 Expr(StmtClass SC, QualType T, ExprValueKind VK, ExprObjectKind OK, in Expr() function 73 explicit Expr(StmtClass SC, EmptyShell) : Stmt(SC) { } in Expr() function 281 friend class Expr; 383 return const_cast<Expr*>(this)->getBitField(); in getBitField() 582 static QualType findBoundMemberType(const Expr *expr); 586 Expr *IgnoreImpCasts() LLVM_READONLY; 590 Expr *IgnoreImplicit() LLVM_READONLY { in IgnoreImplicit() 591 return cast<Expr>(Stmt::IgnoreImplicit()); in IgnoreImplicit() 598 Expr *IgnoreParens() LLVM_READONLY; [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() 62 class ObjCBoolLiteralExpr : public Expr { 67 Expr(ObjCBoolLiteralExprClass, Ty, VK_RValue, OK_Ordinary, false, false, in ObjCBoolLiteralExpr() 71 : 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 …]
|
D | ExprCXX.h | 55 CXXOperatorCallExpr(ASTContext& C, OverloadedOperatorKind Op, Expr *fn, in CXXOperatorCallExpr() 56 Expr **args, unsigned numargs, QualType t, in CXXOperatorCallExpr() 95 CXXMemberCallExpr(ASTContext &C, Expr *fn, Expr **args, unsigned numargs, in CXXMemberCallExpr() 105 Expr *getImplicitObjectArgument() const; 129 CUDAKernelCallExpr(ASTContext &C, Expr *fn, CallExpr *Config, in CUDAKernelCallExpr() 130 Expr **args, unsigned numargs, QualType t, in CUDAKernelCallExpr() 166 CastKind kind, Expr *op, unsigned PathSize, in CXXNamedCastExpr() 210 CXXStaticCastExpr(QualType ty, ExprValueKind vk, CastKind kind, Expr *op, in CXXStaticCastExpr() 221 ExprValueKind VK, CastKind K, Expr *Op, 242 Expr *op, unsigned pathSize, TypeSourceInfo *writtenTy, in CXXDynamicCastExpr() [all …]
|
D | Stmt.h | 35 class Expr; variable 51 class Expr; variable 61 Expr* operator[](size_t idx); 64 Expr* operator*() const; 65 Expr* operator->() const; 80 const Expr * operator[](size_t idx) const; 82 const Expr * operator*() const; 83 const Expr * operator->() const; 134 friend class Expr; variable 671 CaseStmt(Expr *lhs, Expr *rhs, SourceLocation caseLoc, in CaseStmt() [all …]
|
D | StmtCXX.h | 139 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, Stmt *Body, 145 Expr *getRangeInit(); 148 const Expr *getRangeInit() const; 155 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() 156 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); } in getInc() 166 const Expr *getCond() const { in getCond() 167 return cast_or_null<Expr>(SubExprs[COND]); in getCond() 169 const Expr *getInc() const { in getInc() 170 return cast_or_null<Expr>(SubExprs[INC]); in getInc() 177 void setRangeInit(Expr *E) { SubExprs[RANGE] = reinterpret_cast<Stmt*>(E); } in setRangeInit() [all …]
|
/external/clang/lib/Sema/ |
D | SemaExceptionSpec.cpp | 717 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) in CheckExceptionSpecCompatibility() 766 static CanThrowResult canSubExprsThrow(Sema &S, const Expr *CE) { in canSubExprsThrow() 767 Expr *E = const_cast<Expr*>(CE); in canSubExprsThrow() 769 for (Expr::child_range I = E->children(); I && R != CT_Can; ++I) in canSubExprsThrow() 770 R = mergeCanThrow(R, S.canThrow(cast<Expr>(*I))); in canSubExprsThrow() 774 static CanThrowResult canCalleeThrow(Sema &S, const Expr *E, in canCalleeThrow() 838 Expr *Op = DC->getExprOperand(); in canTypeidThrow() 855 CanThrowResult Sema::canThrow(const Expr *E) { in canThrow() 860 case Expr::CXXThrowExprClass: in canThrow() 864 case Expr::CXXDynamicCastExprClass: { in canThrow() [all …]
|
D | SemaFixItUtils.cpp | 50 bool ConversionFixItGenerator::tryToFixConversion(const Expr *FullExpr, in tryToFixConversion() 65 const Expr* Expr = FullExpr->IgnoreImpCasts(); in tryToFixConversion() local 68 if (isa<ArraySubscriptExpr>(Expr) || in tryToFixConversion() 69 isa<CallExpr>(Expr) || in tryToFixConversion() 70 isa<DeclRefExpr>(Expr) || in tryToFixConversion() 71 isa<CastExpr>(Expr) || in tryToFixConversion() 72 isa<CXXNewExpr>(Expr) || in tryToFixConversion() 73 isa<CXXConstructExpr>(Expr) || in tryToFixConversion() 74 isa<CXXDeleteExpr>(Expr) || in tryToFixConversion() 75 isa<CXXNoexceptExpr>(Expr) || in tryToFixConversion() [all …]
|
D | SemaPseudoObject.cpp | 49 Expr *rebuild(Expr *e) { in rebuild() 80 SmallVector<Expr*, 8> assocs(numAssocs); in rebuild() 84 Expr *assoc = gse->getAssocExpr(i); in rebuild() 107 Expr *NewBase; 108 ObjCPropertyRefRebuilder(Sema &S, Expr *newBase) in ObjCPropertyRefRebuilder() 112 Expr *rebuildSpecific(ObjCPropertyRefExpr *refExpr) { in rebuildSpecific() 134 Expr *NewBase; 135 Expr *NewKeyExpr; 136 ObjCSubscriptRefRebuilder(Sema &S, Expr *newBase, Expr *newKeyExpr) in ObjCSubscriptRefRebuilder() 141 Expr *rebuildSpecific(ObjCSubscriptRefExpr *refExpr) { in rebuildSpecific() [all …]
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 93 class Expr; variable 241 llvm::SmallPtrSet<Expr*, 8> MaybeODRUseExprs; 614 llvm::SmallPtrSet<Expr*, 8> SavedMaybeODRUseExprs; 759 bool isSelfExpr(Expr *RExpr); 845 ExprResult Owned(Expr* E) { return E; } in Owned() 894 Expr *ArraySize, unsigned Quals, 896 QualType BuildExtVectorType(QualType T, Expr *ArraySize, 922 CanThrowResult canThrow(const Expr *E); 960 bool RequireCompleteExprType(Expr *E, const PartialDiagnostic &PD, 970 QualType BuildTypeofExprType(Expr *E, SourceLocation Loc); [all …]
|
D | AttributeList.h | 27 class Expr; variable 89 const Expr *MessageExpr; 97 Expr **getArgsBuffer() { in getArgsBuffer() 98 return reinterpret_cast<Expr**>(this+1); in getArgsBuffer() 100 Expr * const *getArgsBuffer() const { in getArgsBuffer() 101 return reinterpret_cast<Expr* const *>(this+1); in getArgsBuffer() 125 Expr **args, unsigned numArgs, in AttributeList() 133 if (numArgs) memcpy(getArgsBuffer(), args, numArgs * sizeof(Expr*)); in AttributeList() 144 const Expr *messageExpr, in AttributeList() 215 Expr *getArg(unsigned Arg) const { in getArg() [all …]
|
D | Designator.h | 23 class Expr; variable 51 Expr *Index; 56 Expr *Start, *End; 89 Expr *getArrayIndex() const { in getArrayIndex() 94 Expr *getArrayRangeStart() const { in getArrayRangeStart() 98 Expr *getArrayRangeEnd() const { in getArrayRangeEnd() 136 static Designator getArray(Expr *Index, in getArray() 146 static Designator getArrayRange(Expr *Start, in getArrayRange() 147 Expr *End, in getArrayRange()
|
/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() 105 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern() 106 const Expr *SrcArg = CE->getArg(1); in containsBadStrncatPattern() 107 const Expr *LenArg = CE->getArg(2); in containsBadStrncatPattern() 114 const Expr *L = BE->getLHS(); in containsBadStrncatPattern() 115 const Expr *R = BE->getRHS(); in containsBadStrncatPattern() [all …]
|
D | UndefBranchChecker.cpp | 36 const Expr *FindExpr(const Expr *Ex) { in FindExpr() 42 if (const Expr *ExI = dyn_cast_or_null<Expr>(*I)) { in FindExpr() 43 const Expr *E2 = FindExpr(ExI); in FindExpr() 50 bool MatchesCriteria(const Expr *Ex) { in MatchesCriteria() 88 const Expr *Ex = cast<Expr>(Condition); in checkBranchCondition()
|
D | MallocOverflowSecurityChecker.cpp | 34 const Expr *variable; 36 MallocOverflowCheck (const BinaryOperator *m, const Expr *v) in MallocOverflowCheck() 48 const Expr *TheArgument, ASTContext &Context) const; 59 const Expr *TheArgument, in CheckMallocArgument() 67 const Expr * e = TheArgument; in CheckMallocArgument() 81 const Expr *lhs = binop->getLHS(); in CheckMallocArgument() 82 const Expr *rhs = binop->getRHS(); in CheckMallocArgument() 120 bool isIntZeroExpr(const Expr *E) const { in isIntZeroExpr() 129 void CheckExpr(const Expr *E_p) { in CheckExpr() 130 const Expr *E = E_p->IgnoreParenImpCasts(); in CheckExpr() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMMCInstLower.cpp | 28 const MCExpr *Expr; in GetSymbolRef() local 31 Expr = MCSymbolRefExpr::Create(Symbol, MCSymbolRefExpr::VK_None, in GetSymbolRef() 38 Expr = MCSymbolRefExpr::Create(Symbol, MCSymbolRefExpr::VK_None, in GetSymbolRef() 40 Expr = ARMMCExpr::CreateLower16(Expr, OutContext); in GetSymbolRef() 43 Expr = MCSymbolRefExpr::Create(Symbol, MCSymbolRefExpr::VK_None, in GetSymbolRef() 45 Expr = ARMMCExpr::CreateUpper16(Expr, OutContext); in GetSymbolRef() 52 Expr = MCSymbolRefExpr::Create(Symbol, MCSymbolRefExpr::VK_ARM_PLT, in GetSymbolRef() 58 Expr = MCBinaryExpr::CreateAdd(Expr, in GetSymbolRef() 62 return MCOperand::CreateExpr(Expr); in GetSymbolRef()
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMMCExpr.h | 27 const MCExpr *Expr; variable 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()
|
D | ARMMCExpr.cpp | 17 ARMMCExpr::Create(VariantKind Kind, const MCExpr *Expr, in Create() argument 19 return new (Ctx) ARMMCExpr(Kind, Expr); in Create() 29 const MCExpr *Expr = getSubExpr(); in PrintImpl() local 30 if (Expr->getKind() != MCExpr::SymbolRef) in PrintImpl() 32 Expr->print(OS); in PrintImpl() 33 if (Expr->getKind() != MCExpr::SymbolRef) in PrintImpl()
|
/external/javassist/src/main/javassist/compiler/ast/ |
D | Expr.java | 24 public class Expr extends ASTList implements TokenId { class 33 Expr(int op, ASTree _head, ASTList _tail) { in Expr() method in Expr 38 Expr(int op, ASTree _head) { in Expr() method in Expr 43 public static Expr make(int op, ASTree oprand1, ASTree oprand2) { in make() 44 return new Expr(op, oprand1, new ASTList(oprand2)); in make() 47 public static Expr make(int op, ASTree oprand1) { in make() 48 return new Expr(op, oprand1); in make()
|
/external/javassist/src/main/javassist/compiler/ |
D | TypeChecker.java | 221 if (left instanceof Expr) { in atAssignExpr() 222 Expr e = (Expr)left; in atAssignExpr() 224 atArrayAssign(expr, op, (Expr)left, right); in atAssignExpr() 237 private void atVariableAssign(Expr expr, int op, Variable var, in atVariableAssign() 254 private void atArrayAssign(Expr expr, int op, Expr array, in atArrayAssign() 267 protected void atFieldAssign(Expr expr, int op, ASTree left, ASTree right) in atFieldAssign() 311 Expr e = atPlusExpr(expr); in atBinExpr() 316 e = CallExpr.makeCall(Expr.make('.', e, in atBinExpr() 344 private Expr atPlusExpr(BinExpr expr) throws CompileError { in atPlusExpr() 355 Expr newExpr = atPlusExpr((BinExpr)left); in atPlusExpr() [all …]
|