Searched defs:Init (Results 226 - 250 of 1406) sorted by last modified time

1234567891011>>

/external/clang/include/clang/AST/
H A DDeclCXX.h1896 Stmt *Init; member in class:clang::CXXCtorInitializer
1923 SourceLocation MemberLoc, SourceLocation L, Expr *Init,
1930 SourceLocation L, Expr *Init, SourceLocation R,
1936 SourceLocation MemberLoc, SourceLocation L, Expr *Init,
1942 SourceLocation MemberLoc, SourceLocation L, Expr *Init,
1948 SourceLocation L, Expr *Init, SourceLocation R);
1954 Expr *Init, SourceLocation R,
1981 return Init->getStmtClass() == Stmt::CXXDefaultInitExprClass;
2112 Expr *getInit() const { return static_cast<Expr*>(Init); }
H A DExpr.h2595 Stmt *Init; member in class:clang::StringLiteral::OffsetOfExpr::CompoundLiteralExpr
2605 LParenLoc(lparenloc), TInfoAndScope(tinfo, fileScope), Init(init) {}
2611 const Expr *getInitializer() const { return cast<Expr>(Init); }
2612 Expr *getInitializer() { return cast<Expr>(Init); }
2613 void setInitializer(Expr *E) { Init = E; }
2629 // FIXME: Init should never be null.
2630 if (!Init)
2633 return Init->getLocStart();
2637 // FIXME: Init should never be null.
2638 if (!Init)
3889 setSyntacticForm(InitListExpr *Init) argument
[all...]
H A DGlobalDecl.h31 void Init(const Decl *D) { function in class:clang::GlobalDecl
41 GlobalDecl(const VarDecl *D) { Init(D);}
42 GlobalDecl(const FunctionDecl *D) { Init(D); }
43 GlobalDecl(const BlockDecl *D) { Init(D); }
44 GlobalDecl(const CapturedDecl *D) { Init(D); }
45 GlobalDecl(const ObjCMethodDecl *D) { Init(D); }
H A DRecursiveASTVisitor.h242 bool TraverseConstructorInitializer(CXXCtorInitializer *Init);
844 CXXCtorInitializer *Init) {
845 if (TypeSourceInfo *TInfo = Init->getTypeSourceInfo())
848 if (Init->isWritten() || getDerived().shouldVisitImplicitCode())
849 TRY_TO(TraverseStmt(Init->getInit()));
843 TraverseConstructorInitializer( CXXCtorInitializer *Init) argument
/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h926 const Stmt *const Init = Node.getInit(); local
927 return (Init != nullptr && InnerMatcher.matches(*Init, Finder, Builder));
963 const Expr *const Init = Node.getRangeInit(); local
964 return (Init != nullptr && InnerMatcher.matches(*Init, Finder, Builder));
/external/clang/include/clang/Sema/
H A DDeclSpec.h2168 ExprResult Init; member in struct:LambdaIntroducer::LambdaCapture
2172 ExprResult Init, ParsedType InitCaptureType)
2173 : Kind(Kind), Loc(Loc), Id(Id), EllipsisLoc(EllipsisLoc), Init(Init),
2190 ExprResult Init,
2192 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, Init,
2170 LambdaCapture(LambdaCaptureKind Kind, SourceLocation Loc, IdentifierInfo *Id, SourceLocation EllipsisLoc, ExprResult Init, ParsedType InitCaptureType) argument
2186 addCapture(LambdaCaptureKind Kind, SourceLocation Loc, IdentifierInfo* Id, SourceLocation EllipsisLoc, ExprResult Init, ParsedType InitCaptureType) argument
/external/clang/lib/AST/
H A DASTContext.cpp1958 void ASTContext::setBlockVarCopyInits(VarDecl*VD, Expr* Init) { argument
1959 assert(VD && Init && "Passed null params");
1962 BlockVarCopyInits[VD] = Init;
H A DASTDumper.cpp228 void dumpCXXCtorInitializer(const CXXCtorInitializer *Init);
689 void ASTDumper::dumpCXXCtorInitializer(const CXXCtorInitializer *Init) { argument
692 if (Init->isAnyMemberInitializer()) {
694 dumpBareDeclRef(Init->getAnyMember());
696 dumpType(QualType(Init->getBaseClass(), 0));
698 dumpStmt(Init->getInit());
881 if (const Expr *Init = D->getInitExpr()) {
883 dumpStmt(Init);
996 Expr *Init = D->getInClassInitializer(); local
997 bool HasInit = Init;
[all...]
H A DASTImporter.cpp2630 Expr *Init = Importer.Import(D->getInitExpr()); local
2631 if (D->getInitExpr() && !Init)
2637 Init, D->getInitVal());
3095 Expr *Init = Importer.Import(DDef->getInit()); local
3096 MergeWithVar->setInit(Init);
H A DDecl.cpp1691 redeclarable_base(C), Init() {
1735 if (const Expr *Init = getInit()) {
1736 SourceLocation InitEnd = Init->getLocEnd();
1737 // If Init is implicit, ignore its source range and fallback on
1954 if (EvaluatedStmt *Eval = Init.dyn_cast<EvaluatedStmt *>()) {
1959 Init = I;
1993 EvaluatedStmt *Eval = Init.dyn_cast<EvaluatedStmt *>();
1995 Stmt *S = Init.get<Stmt *>();
2002 Init = Eval;
2029 const Expr *Init local
2076 const Expr *Init = cast<Expr>(Eval->Value); local
3298 setInClassInitializer(Expr *Init) argument
[all...]
H A DDeclCXX.cpp1579 SourceLocation L, Expr *Init,
1582 : Initializee(TInfo), MemberOrEllipsisLocation(EllipsisLoc), Init(Init),
1591 SourceLocation L, Expr *Init,
1593 : Initializee(Member), MemberOrEllipsisLocation(MemberLoc), Init(Init),
1602 SourceLocation L, Expr *Init,
1604 : Initializee(Member), MemberOrEllipsisLocation(MemberLoc), Init(Init),
1612 SourceLocation L, Expr *Init,
1577 CXXCtorInitializer(ASTContext &Context, TypeSourceInfo *TInfo, bool IsVirtual, SourceLocation L, Expr *Init, SourceLocation R, SourceLocation EllipsisLoc) argument
1588 CXXCtorInitializer(ASTContext &Context, FieldDecl *Member, SourceLocation MemberLoc, SourceLocation L, Expr *Init, SourceLocation R) argument
1599 CXXCtorInitializer(ASTContext &Context, IndirectFieldDecl *Member, SourceLocation MemberLoc, SourceLocation L, Expr *Init, SourceLocation R) argument
1610 CXXCtorInitializer(ASTContext &Context, TypeSourceInfo *TInfo, SourceLocation L, Expr *Init, SourceLocation R) argument
1620 CXXCtorInitializer(ASTContext &Context, FieldDecl *Member, SourceLocation MemberLoc, SourceLocation L, Expr *Init, SourceLocation R, VarDecl **Indices, unsigned NumIndices) argument
1635 Create(ASTContext &Context, FieldDecl *Member, SourceLocation MemberLoc, SourceLocation L, Expr *Init, SourceLocation R, VarDecl **Indices, unsigned NumIndices) argument
[all...]
H A DDeclPrinter.cpp380 if (Expr *Init = D->getInitExpr()) {
382 Init->printPretty(Out, nullptr, Policy, Indentation);
516 Expr *Init = BMInitializer->getInit(); local
517 if (ExprWithCleanups *Tmp = dyn_cast<ExprWithCleanups>(Init))
518 Init = Tmp->getSubExpr();
520 Init = Init->IgnoreParens();
525 if (ParenListExpr *ParenList = dyn_cast<ParenListExpr>(Init)) {
529 = dyn_cast<CXXConstructExpr>(Init)) {
533 SimpleInit = Init;
635 Expr *Init = D->getInClassInitializer(); local
679 Expr *Init = D->getInit(); local
[all...]
H A DExpr.cpp275 if (const Expr *Init = Var->getAnyInitializer())
276 if (Init->isValueDependent()) {
1863 Expr *InitListExpr::updateInit(const ASTContext &C, unsigned Init, Expr *expr) { argument
1864 if (Init >= InitExprs.size()) {
1865 InitExprs.insert(C, InitExprs.end(), Init - InitExprs.size() + 1, nullptr);
1866 setInit(Init, expr);
1870 Expr *Result = cast_or_null<Expr>(InitExprs[Init]);
1871 setInit(Init, expr);
1892 const Expr *Init = getInit(0); local
1893 if (!Init)
3729 DesignatedInitExpr(const ASTContext &C, QualType Ty, unsigned NumDesignators, const Designator *Designators, SourceLocation EqualOrColonLoc, bool GNUSyntax, ArrayRef<Expr*> IndexExprs, Expr *Init) argument
3796 Create(const ASTContext &C, Designator *Designators, unsigned NumDesignators, ArrayRef<Expr*> IndexExprs, SourceLocation ColonOrEqualLoc, bool UsesColonSyntax, Expr *Init) argument
[all...]
H A DExprConstant.cpp1952 const Expr *Init = VD->getAnyInitializer(VD); local
1953 if (!Init || Init->isValueDependent()) {
5109 const Expr *Init = HaveInit ? E->getInit(ElementNo++) : &VIE;
5113 isa<CXXDefaultInitExpr>(Init));
5116 if (!EvaluateInPlace(FieldVal, Info, Subobject, Init) ||
5117 (Field->isBitField() && !truncateBitfieldValue(Info, Init,
5557 const Expr *Init =
5560 Info, Subobject, Init) ||
5561 !HandleLValueArrayAdjustment(Info, Init, Subobjec
[all...]
H A DItaniumMangle.cpp2745 const Expr *Init = New->getInitializer(); local
2746 if (const CXXConstructExpr *CCE = dyn_cast<CXXConstructExpr>(Init)) {
2752 } else if (const ParenListExpr *PLE = dyn_cast<ParenListExpr>(Init)) {
2756 isa<InitListExpr>(Init)) {
2758 const InitListExpr *InitList = cast<InitListExpr>(Init);
2762 mangleExpression(Init);
H A DStmt.cpp851 ForStmt::ForStmt(const ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar, argument
856 SubExprs[INIT] = Init;
1063 // | CapturedStmt, Init, ..., Init, S, Capture, ..., Capture |
/external/clang/lib/Analysis/
H A DCFG.cpp82 /// - Init CFGBuilder::ScopePos with invalid position (equivalent for null),
1008 Expr *Init = I->getInit(); local
1009 if (Init) {
1012 HasTemporaries = isa<ExprWithCleanups>(Init);
1016 VisitForTemporaryDtors(cast<ExprWithCleanups>(Init)->getSubExpr(),
1024 if (Init) {
1028 return Visit(cast<ExprWithCleanups>(Init)->getSubExpr());
1030 return Visit(Init);
1039 const Expr *Init) {
1042 Init
1038 getReferenceInitTemporaryType(ASTContext &Context, const Expr *Init) argument
1245 const Expr *Init = VD->getInit(); local
1969 Expr *Init = VD->getInit(); local
[all...]
H A DUninitializedValues.cpp307 Init, enumerator in enum:__anon17787::ClassifyRefs::Class
344 return Init;
350 if (Expr *Init = VD->getInit()) {
352 = dyn_cast<DeclRefExpr>(stripCasts(VD->getASTContext(), Init));
677 case ClassifyRefs::Init:
/external/clang/lib/CodeGen/
H A DCGClass.cpp377 static bool BaseInitializerUsesThis(ASTContext &C, const Expr *Init) { argument
379 Checker.Visit(const_cast<Expr*>(Init));
431 Expr *Init,
457 CGF.EmitScalarInit(Init, /*decl*/ nullptr, LV, false);
460 CGF.EmitComplexExprIntoLValue(Init, LV, /*isInit*/ true);
469 CGF.EmitAggExpr(Init, Slot);
513 EmitAggMemberInitializer(CGF, LHS, Init, ArrayIndexVar,
594 LValue LHS, Expr *Init,
600 EmitExprAsInit(Init, Field, LHS, false);
602 RValue RHS = RValue::get(EmitScalarExpr(Init));
429 EmitAggMemberInitializer(CodeGenFunction &CGF, LValue LHS, Expr *Init, llvm::Value *ArrayIndexVar, QualType T, ArrayRef<VarDecl *> ArrayIndexes, unsigned Index) argument
593 EmitInitializerForField(FieldDecl *Field, LValue LHS, Expr *Init, ArrayRef<VarDecl *> ArrayIndexes) argument
[all...]
H A DCGDebugInfo.cpp3193 llvm::Constant *Init) {
3218 true, Init,
3192 EmitGlobalVariable(const ValueDecl *VD, llvm::Constant *Init) argument
H A DCGDecl.cpp236 llvm::Constant *Init = CGM.EmitConstantInit(D, this); local
240 if (!Init) {
257 if (GV->getType()->getElementType() != Init->getType()) {
260 GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(),
262 OldGV->getLinkage(), Init, "",
281 GV->setInitializer(Init);
706 static bool canEmitInitWithFewStoresAfterMemset(llvm::Constant *Init, argument
709 if (isa<llvm::ConstantAggregateZero>(Init) ||
710 isa<llvm::ConstantPointerNull>(Init) ||
711 isa<llvm::UndefValue>(Init))
745 emitStoresForInitAfterMemset(llvm::Constant *Init, llvm::Value *Loc, bool isVolatile, CGBuilderTy &Builder) argument
788 shouldUseMemSetPlusStoresToInitialize(llvm::Constant *Init, uint64_t GlobalSize) argument
1016 const Expr *Init = VD->getInit(); local
1038 isTrivialInitializer(const Expr *Init) argument
1061 const Expr *Init = D.getInit(); local
[all...]
H A DCGDeclCXX.cpp37 const Expr *Init = D.getInit(); local
42 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init),
45 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init),
48 CGF.EmitScalarInit(Init, &D, lv, false);
52 CGF.EmitComplexExprIntoLValue(Init, lv, /*isInit*/ true);
55 CGF.EmitAggExpr(Init, AggValueSlot::forLValue(lv,AggValueSlot::IsDestructed,
138 const Expr *Init = D.getInit(); local
154 RValue RV = EmitReferenceBindingToExpr(Init);
H A DCGExpr.cpp62 llvm::Value *Init) {
63 auto *Store = new llvm::StoreInst(Init, Var);
1835 const Expr *Init = VD->getAnyInitializer(VD); local
1836 if (Init && !isa<ParmVarDecl>(VD) && VD->getType()->isReferenceType() &&
2677 /*Init*/ true);
61 InitTempAlloca(llvm::AllocaInst *Var, llvm::Value *Init) argument
H A DCGExprCXX.cpp723 static void StoreAnyExprIntoOneUnit(CodeGenFunction &CGF, const Expr *Init, argument
729 CGF.EmitScalarInit(Init, nullptr, CGF.MakeAddrLValue(NewPtr, AllocType,
734 CGF.EmitComplexExprIntoLValue(Init, CGF.MakeAddrLValue(NewPtr, AllocType,
744 CGF.EmitAggExpr(Init, Slot);
766 const Expr *Init = E->getInitializer(); local
773 if (const InitListExpr *ILE = dyn_cast<InitListExpr>(Init)) {
816 Init = ILE->getArrayFiller();
821 while (Init && Init->getType()->isConstantArrayType()) {
822 auto *SubILE = dyn_cast<InitListExpr>(Init);
[all...]
H A DCGExprConstant.cpp743 Expr *Init = ILE->getInit(i); local
744 llvm::Constant *C = CGM.EmitConstantExpr(Init, Init->getType(), CGF);
1114 const llvm::APFloat &Init = Value.getFloat(); local
1115 if (&Init.getSemantics() == &llvm::APFloat::IEEEhalf &&
1117 return llvm::ConstantInt::get(VMContext, Init.bitcastToAPInt());
1119 return llvm::ConstantFP::get(VMContext, Init);

Completed in 390 milliseconds

1234567891011>>