Searched defs:DRE (Results 1 - 21 of 21) 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.cpp120 const DeclRefExpr *DRE)
121 : Base(nullptr, true), Property(DRE->getDecl()) {
171 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
172 Uses = WeakObjectUses.find(WeakObjectProfileTy(DRE));
204 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
205 VD = dyn_cast<VarDecl>(DRE->getFoundDecl());
119 WeakObjectProfileTy( const DeclRefExpr *DRE) argument
H A DSemaOpenMP.cpp1392 if (auto DRE = dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens()))
1393 return SetVarAndLB(dyn_cast<VarDecl>(DRE->getDecl()), BO->getLHS());
1409 if (auto DRE = dyn_cast<DeclRefExpr>(CE->getArg(0)))
1410 return SetVarAndLB(dyn_cast<VarDecl>(DRE->getDecl()), CE->getArg(1));
1428 auto DRE = dyn_cast_or_null<DeclRefExpr>(E); local
1429 if (!DRE)
1431 return dyn_cast<VarDecl>(DRE->getDecl());
H A DSemaTemplateDeduction.cpp155 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
156 return dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
4716 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local
4717 if (!DRE)
4721 = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
H A DSemaStmt.cpp683 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CaseExpr)) {
684 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
1460 // variables Increment and DRE.
1462 DeclRefExpr *&DRE) {
1475 DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr());
1476 return DRE;
1491 DRE = dyn_cast<DeclRefExpr>(Call->getArg(0));
1492 return DRE;
2204 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Range)) {
2205 if (ParmVarDecl *PVD = dyn_cast<ParmVarDecl>(DRE
1461 ProcessIterationStmt(Sema &S, Stmt* Statement, bool &Increment, DeclRefExpr *&DRE) argument
[all...]
H A DSemaTemplate.cpp2344 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr()); local
2345 if (!DRE || !DRE->getDecl())
2348 dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
4427 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg); local
4428 ValueDecl *Entity = DRE ? DRE->getDecl() : nullptr;
4469 if (!DRE) {
4502 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
4671 DeclRefExpr *DRE local
[all...]
H A DSemaChecking.cpp502 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
520 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer)
537 Diag(DRE->getLocStart(), diag::ext_typecheck_convert_discards_qualifiers)
555 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer_intfltptr)
563 Diag(DRE->getLocStart(), diag::err_atomic_exclusive_builtin_pointer_size)
577 Diag(DRE->getLocStart(), diag::err_arc_atomic_ownership)
942 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
1061 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer)
1071 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_atomic)
1076 Diag(DRE
1286 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
1950 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
7954 const DeclRefExpr *DRE = cast<DeclRefExpr>(TypeExpr); local
[all...]
H A DSemaDecl.cpp8128 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(E)) {
8129 HandleDeclRefExpr(DRE);
8147 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base))
8148 HandleDeclRefExpr(DRE);
8183 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base)) {
8185 HandleDeclRefExpr(DRE);
8196 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->getArg(0)))
8197 HandleDeclRefExpr(DRE);
8215 void HandleDeclRefExpr(DeclRefExpr *DRE) { argument
8216 Decl* ReferenceDecl = DRE
12944 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InitExpr); local
[all...]
H A DSemaDeclCXX.cpp66 bool VisitDeclRefExpr(DeclRefExpr *DRE);
83 bool CheckDefaultArgumentVisitor::VisitDeclRefExpr(DeclRefExpr *DRE) { argument
84 NamedDecl *Decl = DRE->getDecl();
94 return S->Diag(DRE->getLocStart(),
102 return S->Diag(DRE->getLocStart(),
2754 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Init->IgnoreParens())) {
2756 const ParmVarDecl *Parameter = dyn_cast<ParmVarDecl>(DRE->getDecl());
H A DSemaOverload.cpp57 DeclRefExpr *DRE = new (S.Context) DeclRefExpr(Fn, false, Fn->getType(),
60 DRE->setHadMultipleCandidates(true);
62 S.MarkDeclRefReferenced(DRE);
64 ExprResult E = DRE;
12189 DeclRefExpr *DRE = DeclRefExpr::Create(Context, local
12199 MarkDeclRefReferenced(DRE);
12200 DRE->setHadMultipleCandidates(ULE->getNumDecls() > 1);
12201 return DRE;
12218 DeclRefExpr *DRE = DeclRefExpr::Create(Context, local
12228 MarkDeclRefReferenced(DRE);
[all...]
H A DTreeTransform.h613 ParenExpr *PE, DependentScopeDeclRefExpr *DRE, bool IsAddressOfOperand,
6898 if (DependentScopeDeclRefExpr *DRE = dyn_cast<DependentScopeDeclRefExpr>(E))
6899 return getDerived().TransformDependentScopeDeclRefExpr(DRE, true, nullptr);
7049 if (auto *DRE =
7052 PE, DRE, false, &RecoveryTSI);
8441 ParenExpr *PE, DependentScopeDeclRefExpr *DRE, bool AddrTaken,
8444 DRE, AddrTaken, RecoveryTSI);
8451 if (!getDerived().AlwaysRebuild() && NewDRE.get() == DRE)
10128 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Callee)) {
10129 DeclarationNameLoc &NameLoc = DRE
8440 TransformParenDependentScopeDeclRefExpr( ParenExpr *PE, DependentScopeDeclRefExpr *DRE, bool AddrTaken, TypeSourceInfo **RecoveryTSI) argument
[all...]
H A DSemaExpr.cpp3553 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
3554 D = DRE->getDecl();
8463 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local
8464 if (!DRE) return NCCK_None;
8465 if (!DRE->refersToEnclosingLocal()) return NCCK_None;
8468 VarDecl *var = dyn_cast<VarDecl>(DRE->getDecl());
8680 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InnerLHS); local
8681 if (!DRE || DRE->getDecl()->hasAttr<BlocksAttr>())
8998 DeclRefExpr *DRE 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.cpp165 til::SExpr *SExprBuilder::translateDeclRefExpr(const DeclRefExpr *DRE, argument
167 const ValueDecl *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl());
290 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHS)) {
291 VD = DRE->getDecl();
357 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) {
358 til::SExpr *E0 = lookupVarDecl(DRE->getDecl());
H A DUninitializedValues.cpp293 if (const DeclRefExpr *DRE =
295 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()))
297 return FindVarResult(VD, DRE);
334 Class get(const DeclRefExpr *DRE) const {
336 = Classification.find(DRE);
340 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl());
351 const DeclRefExpr *DRE local
353 if (DRE && DRE->getDecl() == VD)
354 return DRE;
[all...]
/external/clang/lib/AST/
H A DASTDiagnostic.cpp1165 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ArgExpr); local
1166 if (!DRE) {
1167 DRE = cast<DeclRefExpr>(cast<UnaryOperator>(ArgExpr)->getSubExpr());
1170 return DRE->getDecl();
H A DItaniumMangle.cpp3060 const DependentScopeDeclRefExpr *DRE = cast<DependentScopeDeclRefExpr>(E); local
3061 mangleUnresolvedName(DRE->getQualifier(), nullptr, DRE->getDeclName(),
3067 if (DRE->hasExplicitTemplateArgs())
3068 mangleTemplateArgs(DRE->getExplicitTemplateArgs());
3342 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
3343 const ValueDecl *D = DRE->getDecl();
H A DStmtPrinter.cpp660 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(*I)) {
662 cast<NamedDecl>(DRE->getDecl())->printQualifiedName(OS);
1534 DeclRefExpr *DRE = cast<DeclRefExpr>(Node->getCallee()->IgnoreImpCasts()); local
1536 cast<FunctionDecl>(DRE->getDecl())->getTemplateSpecializationArgs();
H A DExpr.cpp1165 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE))
1166 return DRE->getDecl();
1216 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); local
1217 if (!DRE)
1220 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl());
2223 const DeclRefExpr *DRE = local
2225 if (!(DRE && isa<VarDecl>(DRE->getDecl()) &&
2226 cast<VarDecl>(DRE->getDecl())->hasLocalStorage())) {
3230 const DeclRefExpr *DRE local
[all...]
/external/clang/lib/Rewrite/Frontend/
H A DRewriteObjC.cpp327 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2022 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType, local
2029 DRE, nullptr, VK_RValue);
2521 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, local
2523 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf,
2524 Context->getPointerType(DRE->getType()),
2719 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
2722 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs,
2819 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
2822 SuperRep = new (Context) CallExpr(*Context, DRE, InitExpr
2965 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3070 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), local
3916 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument
4465 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, local
[all...]
H A DRewriteModernObjC.cpp402 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2133 DeclRefExpr *DRE = local
2140 DRE, nullptr, VK_RValue);
2622 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, local
2624 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf,
2625 Context->getPointerType(DRE->getType()),
2714 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
2719 CK_BitCast, DRE);
2843 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
2848 CK_BitCast, DRE);
3007 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3238 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, castType, VK_RValue, local
3342 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
3442 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
3588 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3666 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), local
4832 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument
5415 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, local
7670 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, local
[all...]

Completed in 1299 milliseconds