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

12

/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.cpp205 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
206 return DRE->getDecl()->getDeclContext()->isFileContext() &&
207 DRE->getDecl()->isExternallyVisible();
H A DTransRetainReleaseDealloc.cpp311 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
312 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 DCGDecl.cpp431 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false,
433 llvm::Value *value = CGF.EmitLoadOfScalar(CGF.EmitDeclRefLValue(&DRE),
449 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false,
453 llvm::Value *Addr = CGF.EmitDeclRefLValue(&DRE).getAddress();
/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 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 DAnalysisBasedWarnings.cpp202 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(
204 if (NestedNameSpecifier *NNS = DRE->getQualifier()) {
845 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Use.getUser())) {
858 if (!alwaysReportSelfInit && DRE == Initializer->IgnoreParenImpCasts())
861 ContainsReference CR(S.Context, DRE);
864 S.Diag(DRE->getLocStart(),
866 << VD->getDeclName() << VD->getLocation() << DRE->getSourceRange();
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 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...]
/external/clang/lib/Analysis/
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...]
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 DThreadSafety.cpp280 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp)) {
281 const NamedDecl *ND = cast<NamedDecl>(DRE->getDecl()->getCanonicalDecl());
396 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(UOE->getSubExpr())) {
397 if (DRE->getDecl()->isCXXInstanceMember()) {
400 unsigned Root = makeDot(DRE->getDecl(), false);
1185 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHSExp)) {
1186 ValueDecl *VDec = DRE->getDecl();
1693 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Cond)) {
1694 const Expr *E = LocalVarMap.lookupExpr(DRE->getDecl(), C);
2087 DeclRefExpr DRE(V
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypePropagation.cpp229 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(RecE)) {
233 if (DRE->getDecl() == SFCtx->getSelfDecl()) {
H A DDeadStoresChecker.cpp358 if (const DeclRefExpr *DRE =
360 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
H A DMacOSKeychainAPIChecker.cpp165 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
166 const ValueDecl *VD = DRE->getDecl();
/external/clang/lib/Rewrite/Frontend/
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...]
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...]
/external/clang/lib/AST/
H A DNSAPI.cpp411 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
413 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl()))
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...]
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();
/external/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyCommon.h261 til::SExpr *translateDeclRefExpr(const DeclRefExpr *DRE,

Completed in 5514 milliseconds

12