/external/clang/test/SemaTemplate/ |
H A D | template-id-printing.cpp | 17 namespace DRE { namespace 23 // CHECK: DRE::foo<int>; 24 DRE::foo<int>; 25 // CHECK: DRE::template foo<int>; 26 DRE::template foo<int>; 27 // CHECK: DRE::foo<int>(); 28 DRE::foo<int>(); 29 // CHECK: DRE::template foo<int>(); 30 DRE::template foo<int>(); 33 } // namespace DRE [all...] |
/external/clang/lib/Sema/ |
H A D | SemaLambda.cpp | 246 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()); local 247 if (DRE) { 248 const Decl *D = DRE->getDecl();
|
H A D | SemaTemplateDeduction.cpp | 152 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) 153 return dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl()); 4200 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local 4201 if (!DRE) 4205 = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
|
H A D | SemaChecking.cpp | 612 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local 731 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer) 741 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_atomic) 752 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_atomic_int_or_ptr) 757 Diag(DRE->getLocStart(), diag::err_atomic_op_bitwise_needs_atomic_int) 764 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_atomic_int_or_ptr) 772 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_trivial_copy) 791 Diag(DRE->getLocStart(), diag::err_arc_atomic_ownership) 933 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local 934 FunctionDecl *FDecl = cast<FunctionDecl>(DRE 1562 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local 5878 const DeclRefExpr *DRE = cast<DeclRefExpr>(TypeExpr); local [all...] |
H A D | SemaTemplate.cpp | 3754 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg); local 3755 if (!DRE) { 3762 if (!isa<ValueDecl>(DRE->getDecl())) { 3770 NamedDecl *Entity = DRE->getDecl(); 3798 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here); 4011 DeclRefExpr *DRE = 0; local 4036 DRE = dyn_cast<DeclRefExpr>(UnOp->getSubExpr()); 4037 if (DRE && !DRE->getQualifier()) 4038 DRE [all...] |
H A D | SemaDecl.cpp | 6265 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) 6266 HandleDeclRefExpr(DRE); 6281 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(E)) { 6282 HandleDeclRefExpr(DRE); 6307 if (DeclRefExpr *DRE 6309 HandleDeclRefExpr(DRE); 6325 void HandleDeclRefExpr(DeclRefExpr *DRE) { argument 6326 Decl* ReferenceDecl = DRE->getDecl(); 6328 LookupResult Result(S, DRE->getNameInfo(), Sema::LookupOrdinaryName, 6333 S.DiagRuntimeBehavior(DRE 10631 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InitExpr); local [all...] |
H A D | SemaDeclCXX.cpp | 64 bool VisitDeclRefExpr(DeclRefExpr *DRE); 80 bool CheckDefaultArgumentVisitor::VisitDeclRefExpr(DeclRefExpr *DRE) { argument 81 NamedDecl *Decl = DRE->getDecl(); 91 return S->Diag(DRE->getLocStart(), 99 return S->Diag(DRE->getLocStart(), 2044 } else if (const DeclRefExpr *DRE 2047 const ParmVarDecl *Parameter = dyn_cast<ParmVarDecl>(DRE->getDecl());
|
H A D | SemaExpr.cpp | 7488 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local 7489 if (!DRE) return NCCK_None; 7490 if (!DRE->refersToEnclosingLocal()) return NCCK_None; 7493 VarDecl *var = dyn_cast<VarDecl>(DRE->getDecl()); 7977 DeclRefExpr *DRE = cast<DeclRefExpr>(op); local 7978 CXXMethodDecl *MD = cast<CXXMethodDecl>(DRE->getDecl()); 7981 if (OrigOp.get() != DRE) { 7986 } else if (!DRE->getQualifier()) { 8779 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { 8780 if (!DRE [all...] |
H A D | SemaOverload.cpp | 44 DeclRefExpr *DRE = new (S.Context) DeclRefExpr(Fn, false, Fn->getType(), local 47 DRE->setHadMultipleCandidates(true); 48 ExprResult E = S.Owned(DRE); 11411 DeclRefExpr *DRE = DeclRefExpr::Create(Context, local 11421 MarkDeclRefReferenced(DRE); 11422 DRE->setHadMultipleCandidates(ULE->getNumDecls() > 1); 11423 return DRE; 11440 DeclRefExpr *DRE = DeclRefExpr::Create(Context, local 11450 MarkDeclRefReferenced(DRE); 11451 DRE [all...] |
/external/clang/lib/Analysis/ |
H A D | UninitializedValues.cpp | 280 if (const DeclRefExpr *DRE = 282 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) 284 return FindVarResult(VD, DRE); 321 Class get(const DeclRefExpr *DRE) const { 323 = Classification.find(DRE); 327 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); 338 const DeclRefExpr *DRE local 340 if (DRE && DRE->getDecl() == VD) 341 return DRE; [all...] |
/external/clang/lib/AST/ |
H A D | ItaniumMangle.cpp | 2814 const DependentScopeDeclRefExpr *DRE = cast<DependentScopeDeclRefExpr>(E); local 2815 mangleUnresolvedName(DRE->getQualifier(), 0, DRE->getDeclName(), Arity); 2820 if (DRE->hasExplicitTemplateArgs()) 2821 mangleTemplateArgs(DRE->getExplicitTemplateArgs()); 3120 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { 3121 const ValueDecl *D = DRE->getDecl();
|
H A D | StmtPrinter.cpp | 1202 DeclRefExpr *DRE = cast<DeclRefExpr>(Node->getCallee()->IgnoreImpCasts()); local 1204 cast<FunctionDecl>(DRE->getDecl())->getTemplateSpecializationArgs();
|
H A D | Expr.cpp | 1013 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) 1014 return DRE->getDecl(); 1064 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); local 1065 if (!DRE) 1068 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); 2029 const DeclRefExpr *DRE = local 2031 if (!(DRE && isa<VarDecl>(DRE->getDecl()) && 2032 cast<VarDecl>(DRE->getDecl())->hasLocalStorage())) {
|
/external/clang/lib/Rewrite/Frontend/ |
H A D | RewriteObjC.cpp | 324 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE); 2050 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType, local 2057 DRE, 0, VK_RValue); 2563 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, local 2565 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf, 2566 Context->getPointerType(DRE->getType()), 2765 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperContructorFunctionDecl, local 2768 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, 2873 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperContructorFunctionDecl, local 2876 SuperRep = new (Context) CallExpr(*Context, DRE, InitExpr 3024 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local 3129 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), local 3978 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument 4529 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, local [all...] |
H A D | RewriteModernObjC.cpp | 345 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE); 2061 DeclRefExpr *DRE = local 2068 DRE, 0, VK_RValue); 2560 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, local 2562 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf, 2563 Context->getPointerType(DRE->getType()), 2659 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local 2664 CK_BitCast, DRE); 2797 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local 2802 CK_BitCast, DRE); 2971 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local 3156 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, castType, VK_RValue, local 3264 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperContructorFunctionDecl, local 3372 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperContructorFunctionDecl, local 3523 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local 3628 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), local 4644 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument 5229 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, local 7470 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, local [all...] |