Searched defs:DRE (Results 1 - 20 of 20) sorted by relevance

/external/clang/test/SemaTemplate/
H A Dtemplate-id-printing.cpp17 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 DScopeInfo.cpp139 const DeclRefExpr *DRE)
140 : Base(nullptr, true), Property(DRE->getDecl()) {
192 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
193 Uses = WeakObjectUses.find(WeakObjectProfileTy(DRE));
225 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
226 VD = dyn_cast<VarDecl>(DRE->getFoundDecl());
138 WeakObjectProfileTy( const DeclRefExpr *DRE) argument
H A DSemaTemplateDeduction.cpp129 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
130 return dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
4602 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local
4603 if (!DRE)
4607 = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
H A DSemaOpenMP.cpp2115 if (auto DRE = dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens()))
2116 return SetVarAndLB(dyn_cast<VarDecl>(DRE->getDecl()), DRE,
2133 if (auto DRE = dyn_cast<DeclRefExpr>(CE->getArg(0)))
2134 return SetVarAndLB(dyn_cast<VarDecl>(DRE->getDecl()), DRE,
2153 auto DRE = dyn_cast_or_null<DeclRefExpr>(E); local
2154 if (!DRE)
2156 return dyn_cast<VarDecl>(DRE->getDecl());
H A DSemaStmt.cpp703 if (const DeclRefExpr *DRE =
705 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
1479 // variables Increment and DRE.
1481 DeclRefExpr *&DRE) {
1494 DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr());
1495 return DRE;
1510 DRE = dyn_cast<DeclRefExpr>(Call->getArg(0));
1511 return DRE;
2228 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Range)) {
2229 if (ParmVarDecl *PVD = dyn_cast<ParmVarDecl>(DRE
1480 ProcessIterationStmt(Sema &S, Stmt* Statement, bool &Increment, DeclRefExpr *&DRE) argument
[all...]
H A DSemaTemplate.cpp2362 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr()); local
2363 if (!DRE || !DRE->getDecl())
2366 dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
4441 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg); local
4442 ValueDecl *Entity = DRE ? DRE->getDecl() : nullptr;
4484 if (!DRE) {
4517 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
4687 DeclRefExpr *DRE local
[all...]
H A DSemaChecking.cpp218 auto *DRE = cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
220 << DRE->getDecl()->getIdentifier();
720 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
738 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer)
755 Diag(DRE->getLocStart(), diag::ext_typecheck_convert_discards_qualifiers)
773 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer_intfltptr)
781 Diag(DRE->getLocStart(), diag::err_atomic_exclusive_builtin_pointer_size)
795 Diag(DRE->getLocStart(), diag::err_arc_atomic_ownership)
1363 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
1483 Diag(DRE
1713 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
2510 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
9114 const DeclRefExpr *DRE = cast<DeclRefExpr>(TypeExpr); local
[all...]
H A DSemaDecl.cpp8417 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base); local
8418 if (!DRE || DRE->getDecl() != OrigDecl)
8446 HandleDeclRefExpr(DRE);
8455 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(E)) {
8456 HandleDeclRefExpr(DRE);
8501 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base))
8502 HandleDeclRefExpr(DRE);
8545 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base)) {
8547 HandleDeclRefExpr(DRE);
8634 HandleDeclRefExpr(DeclRefExpr *DRE) argument
13518 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InitExpr); local
[all...]
H A DTreeTransform.h640 ParenExpr *PE, DependentScopeDeclRefExpr *DRE, bool IsAddressOfOperand,
7397 if (DependentScopeDeclRefExpr *DRE = dyn_cast<DependentScopeDeclRefExpr>(E))
7398 return getDerived().TransformDependentScopeDeclRefExpr(DRE, true, nullptr);
7554 if (auto *DRE =
7557 PE, DRE, false, &RecoveryTSI);
8949 ParenExpr *PE, DependentScopeDeclRefExpr *DRE, bool AddrTaken,
8952 DRE, AddrTaken, RecoveryTSI);
8959 if (!getDerived().AlwaysRebuild() && NewDRE.get() == DRE)
10733 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Callee)) {
10734 DeclarationNameLoc NameLoc = DRE
8948 TransformParenDependentScopeDeclRefExpr( ParenExpr *PE, DependentScopeDeclRefExpr *DRE, bool AddrTaken, TypeSourceInfo **RecoveryTSI) argument
[all...]
H A DSemaDeclCXX.cpp67 bool VisitDeclRefExpr(DeclRefExpr *DRE);
84 bool CheckDefaultArgumentVisitor::VisitDeclRefExpr(DeclRefExpr *DRE) { argument
85 NamedDecl *Decl = DRE->getDecl();
95 return S->Diag(DRE->getLocStart(),
103 return S->Diag(DRE->getLocStart(),
3055 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Init->IgnoreParens())) {
3057 const ParmVarDecl *Parameter = dyn_cast<ParmVarDecl>(DRE->getDecl());
H A DSemaExpr.cpp3699 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
3700 D = DRE->getDecl();
8962 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local
8963 if (!DRE) return NCCK_None;
8964 if (!DRE->refersToEnclosingVariableOrCapture()) return NCCK_None;
8967 VarDecl *var = dyn_cast<VarDecl>(DRE->getDecl());
9081 } else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
9083 if (const ValueDecl *VD = DRE->getDecl()) {
9317 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InnerLHS); local
9318 if (!DRE || DR
9637 DeclRefExpr *DRE = cast<DeclRefExpr>(op); local
9749 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp); local
14064 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local
14280 auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()); local
[all...]
/external/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp182 DeclRefExpr *DRE = LocalRefs[i]; local
183 if (isInRange(DRE->getDecl()->getLocation(), info.Range) &&
184 !isInRange(DRE->getLocation(), info.Range))
/external/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp273 til::SExpr *SExprBuilder::translateDeclRefExpr(const DeclRefExpr *DRE, argument
275 const ValueDecl *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl());
427 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr())) {
428 if (DRE->getDecl()->isCXXInstanceMember()) {
432 return new (Arena) til::Project(W, DRE->getDecl());
488 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHS)) {
489 VD = DRE->getDecl();
555 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) {
556 til::SExpr *E0 = lookupVarDecl(DRE->getDecl());
H A DUninitializedValues.cpp294 if (const DeclRefExpr *DRE =
296 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()))
298 return FindVarResult(VD, DRE);
335 Class get(const DeclRefExpr *DRE) const {
337 = Classification.find(DRE);
341 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl());
353 const DeclRefExpr *DRE local
355 if (DRE && DRE->getDecl() == VD)
356 return DRE;
[all...]
/external/clang/lib/AST/
H A DASTDiagnostic.cpp1262 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ArgExpr); local
1263 if (!DRE) {
1267 DRE = cast<DeclRefExpr>(UO->getSubExpr());
1270 return DRE->getDecl();
1282 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
1283 if (!DRE)
1286 VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl());
H A DItaniumMangle.cpp3221 const DependentScopeDeclRefExpr *DRE = cast<DependentScopeDeclRefExpr>(E); local
3222 mangleUnresolvedName(DRE->getQualifier(), DRE->getDeclName(), Arity);
3227 if (DRE->hasExplicitTemplateArgs())
3228 mangleTemplateArgs(DRE->getExplicitTemplateArgs());
3530 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
3531 const ValueDecl *D = DRE->getDecl();
H A DStmtPrinter.cpp690 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(*I)) {
692 cast<NamedDecl>(DRE->getDecl())->printQualifiedName(OS);
1621 DeclRefExpr *DRE = cast<DeclRefExpr>(Node->getCallee()->IgnoreImpCasts()); local
1623 cast<FunctionDecl>(DRE->getDecl())->getTemplateSpecializationArgs();
H A DExpr.cpp1176 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE))
1177 return DRE->getDecl();
1227 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); local
1228 if (!DRE)
1231 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl());
1361 if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
1362 D = DRE->getDecl();
2278 const DeclRefExpr *DRE = local
2280 if (!(DRE && isa<VarDecl>(DRE
3320 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local
[all...]
/external/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp318 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2013 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType, local
2020 DRE, nullptr, VK_RValue);
2512 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, local
2514 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf,
2515 Context->getPointerType(DRE->getType()),
2710 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
2713 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs,
2810 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
2813 SuperRep = new (Context) CallExpr(*Context, DRE, InitExpr
2956 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3061 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), local
3897 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument
4446 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, local
[all...]
H A DRewriteModernObjC.cpp393 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2121 DeclRefExpr *DRE = local
2128 DRE, nullptr, VK_RValue);
2610 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, local
2612 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf,
2613 Context->getPointerType(DRE->getType()),
2702 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
2707 CK_BitCast, DRE);
2829 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
2834 CK_BitCast, DRE);
2989 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3220 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, castType, VK_RValue, local
3324 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
3424 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
3570 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3648 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), local
4802 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument
5385 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, local
7643 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, local
[all...]

Completed in 739 milliseconds