Searched refs:DRE (Results 1 - 25 of 53) sorted by relevance

123

/external/clang/lib/ARCMigrate/
H A DTransGCCalls.cpp47 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) {
48 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) {
57 DRE->getSourceRange());
58 TA.replace(DRE->getSourceRange(), "CFBridgingRelease");
62 "receives in ARC", DRE->getLocation(),
63 DRE->getSourceRange());
H A DTransProtectedScope.cpp182 DeclRefExpr *DRE = LocalRefs[i]; local
183 if (isInRange(DRE->getDecl()->getLocation(), info.Range) &&
184 !isInRange(DRE->getLocation(), info.Range))
H A DTransforms.cpp204 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
205 return DRE->getDecl()->getDeclContext()->isFileContext() &&
206 DRE->getDecl()->isExternallyVisible();
H A DTransRetainReleaseDealloc.cpp301 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
302 return DRE->getDecl();
H A DTransUnbridgedCasts.cpp455 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
456 if (ImplicitParamDecl *IPD = dyn_cast<ImplicitParamDecl>(DRE->getDecl()))
/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/CodeGen/
H A DCGCUDARuntime.cpp42 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) {
43 TargetDecl = DRE->getDecl();
H A DCGStmtOpenMP.cpp370 DeclRefExpr DRE(
375 Address OriginalAddr = EmitLValue(&DRE).getAddress();
482 DeclRefExpr DRE(const_cast<VarDecl *>(VD), true, (*IRef)->getType(),
484 MasterAddr = EmitLValue(&DRE).getAddress();
540 DeclRefExpr DRE(
545 return EmitLValue(&DRE).getAddress();
790 DeclRefExpr DRE(const_cast<VarDecl *>(OrigVD),
793 return EmitLValue(&DRE).getAddress();
984 DeclRefExpr DRE(const_cast<VarDecl *>(OrigVD),
989 EmitExprAsInit(&DRE, V
[all...]
/external/clang/lib/Sema/
H A DScopeInfo.cpp142 const DeclRefExpr *DRE)
143 : Base(nullptr, true), Property(DRE->getDecl()) {
195 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
196 Uses = WeakObjectUses.find(WeakObjectProfileTy(DRE));
228 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
229 VD = dyn_cast<VarDecl>(DRE->getFoundDecl());
141 WeakObjectProfileTy( const DeclRefExpr *DRE) argument
H A DSemaChecking.cpp252 auto *DRE = cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
254 << DRE->getDecl()->getIdentifier();
766 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
784 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer)
801 Diag(DRE->getLocStart(), diag::ext_typecheck_convert_discards_qualifiers)
819 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer_intfltptr)
827 Diag(DRE->getLocStart(), diag::err_atomic_exclusive_builtin_pointer_size)
841 Diag(DRE->getLocStart(), diag::err_arc_atomic_ownership)
1566 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
1686 Diag(DRE
1927 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
2292 DeclRefExpr *DRE = local
2839 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
9685 const DeclRefExpr *DRE = cast<DeclRefExpr>(TypeExpr); local
[all...]
H A DSemaTemplate.cpp2429 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr()); local
2430 if (!DRE || !DRE->getDecl())
2433 dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
4523 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg); local
4524 ValueDecl *Entity = DRE ? DRE->getDecl() : nullptr;
4566 if (!DRE) {
4599 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
4767 DeclRefExpr *DRE local
[all...]
H A DSemaStmtAsm.cpp95 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
96 if (isa<ParmVarDecl>(DRE->getDecl())) {
97 S.Diag(DRE->getLocStart(), diag::err_asm_naked_parm_ref);
H A DAnalysisBasedWarnings.cpp180 if (const DeclRefExpr *DRE =
182 if (NestedNameSpecifier *NNS = DRE->getQualifier()) {
851 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Use.getUser())) {
864 if (!alwaysReportSelfInit && DRE == Initializer->IgnoreParenImpCasts())
867 ContainsReference CR(S.Context, DRE);
870 S.Diag(DRE->getLocStart(),
872 << VD->getDeclName() << VD->getLocation() << DRE->getSourceRange();
H A DSemaExpr.cpp517 if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
518 if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl()))
3697 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
3698 D = DRE->getDecl();
9223 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local
9224 if (!DRE) return NCCK_None;
9225 if (!DRE->refersToEnclosingVariableOrCapture()) return NCCK_None;
9228 VarDecl *var = dyn_cast<VarDecl>(DRE->getDecl());
9342 } else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
9344 if (const ValueDecl *VD = DRE
9581 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InnerLHS); local
9913 DeclRefExpr *DRE = cast<DeclRefExpr>(op); local
10027 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp); local
14326 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local
14542 auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()); local
[all...]
/external/clang/lib/Analysis/
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...]
H A DThreadSafetyCommon.cpp266 til::SExpr *SExprBuilder::translateDeclRefExpr(const DeclRefExpr *DRE, argument
268 const ValueDecl *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl());
416 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr())) {
417 if (DRE->getDecl()->isCXXInstanceMember()) {
421 return new (Arena) til::Project(W, DRE->getDecl());
476 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHS)) {
477 VD = DRE->getDecl();
541 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) {
542 til::SExpr *E0 = lookupVarDecl(DRE->getDecl());
H A DThreadSafety.cpp591 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHSExp)) {
592 ValueDecl *VDec = DRE->getDecl();
1346 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Cond)) {
1347 const Expr *E = LocalVarMap.lookupExpr(DRE->getDecl(), C);
1594 while (const auto *DRE = dyn_cast<DeclRefExpr>(Exp)) {
1595 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()->getCanonicalDecl());
1803 DeclRefExpr DRE(VD, false, VD->getType(), VK_LValue, VD->getLocation());
1804 // FIXME: does this store a pointer to DRE?
1805 CapabilityExpr Scp = Analyzer->SxBuilder.translateAttrExpr(&DRE, nullptr);
2314 DeclRefExpr DRE(V
[all...]
/external/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp318 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2015 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType, local
2022 DRE, nullptr, VK_RValue);
2513 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, local
2515 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf,
2516 Context->getPointerType(DRE->getType()),
2706 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
2709 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs,
2801 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
2804 SuperRep = new (Context) CallExpr(*Context, DRE, InitExpr
2945 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3050 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), local
3883 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument
4432 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, local
[all...]
H A DRewriteModernObjC.cpp393 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2123 DeclRefExpr *DRE = local
2130 DRE, nullptr, VK_RValue);
2611 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, local
2613 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf,
2614 Context->getPointerType(DRE->getType()),
2700 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
2705 CK_BitCast, DRE);
2824 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
2829 CK_BitCast, DRE);
2981 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3212 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, castType, VK_RValue, local
3312 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
3407 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
3551 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3629 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), local
4780 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument
5363 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, local
7620 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, local
[all...]
/external/clang/lib/AST/
H A DExpr.cpp1213 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE))
1214 return DRE->getDecl();
1264 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); local
1265 if (!DRE)
1268 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl());
1398 if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
1399 D = DRE->getDecl();
2318 const DeclRefExpr *DRE = local
2320 if (!(DRE && isa<VarDecl>(DRE
3414 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local
[all...]
H A DASTDiagnostic.cpp1324 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ArgExpr); local
1325 if (!DRE) {
1329 DRE = cast<DeclRefExpr>(UO->getSubExpr());
1332 return DRE->getDecl();
1344 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
1345 if (!DRE)
1348 VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl());
H A DNSAPI.cpp574 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
576 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl()))
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDeadStoresChecker.cpp358 if (const DeclRefExpr *DRE =
360 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
H A DMacOSKeychainAPIChecker.cpp163 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
164 const ValueDecl *VD = DRE->getDecl();
/external/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyCommon.h371 til::SExpr *translateDeclRefExpr(const DeclRefExpr *DRE,

Completed in 479 milliseconds

123