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

12

/freebsd-9.3-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransGCCalls.cpp53 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) {
54 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) {
63 DRE->getSourceRange());
64 TA.replace(DRE->getSourceRange(), "CFBridgingRelease");
68 "receives in ARC", DRE->getLocation(),
69 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.cpp454 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
455 if (ImplicitParamDecl *IPD = dyn_cast<ImplicitParamDecl>(DRE->getDecl()))
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGCUDARuntime.cpp41 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) {
42 TargetDecl = DRE->getDecl();
H A DCGCXXABI.cpp285 const DeclRefExpr *DRE) {
284 EmitThreadLocalDeclRefExpr(CodeGenFunction &CGF, const DeclRefExpr *DRE) argument
H A DCGCXXABI.h489 const DeclRefExpr *DRE);
H A DCGDecl.cpp427 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false,
429 llvm::Value *value = CGF.EmitLoadOfScalar(CGF.EmitDeclRefLValue(&DRE),
445 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false,
449 llvm::Value *Addr = CGF.EmitDeclRefLValue(&DRE).getAddress();
H A DItaniumCXXABI.cpp213 const DeclRefExpr *DRE);
1636 const DeclRefExpr *DRE) {
1637 const VarDecl *VD = cast<VarDecl>(DRE->getDecl());
1650 LV = CGF.MakeAddrLValue(Val, DRE->getType(),
1635 EmitThreadLocalDeclRefExpr(CodeGenFunction &CGF, const DeclRefExpr *DRE) argument
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Sema/
H A DScopeInfo.cpp115 const DeclRefExpr *DRE)
116 : Base(0, true), Property(DRE->getDecl()) {
160 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
161 Uses = WeakObjectUses.find(WeakObjectProfileTy(DRE));
192 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
193 VD = dyn_cast<VarDecl>(DRE->getFoundDecl());
114 WeakObjectProfileTy( const DeclRefExpr *DRE) argument
H A DSemaChecking.cpp471 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
489 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer)
506 Diag(DRE->getLocStart(), diag::ext_typecheck_convert_discards_qualifiers)
524 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer_intfltptr)
531 Diag(DRE->getLocStart(), diag::err_atomic_exclusive_builtin_pointer_size)
545 Diag(DRE->getLocStart(), diag::err_arc_atomic_ownership)
888 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
1007 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer)
1017 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_atomic)
1022 Diag(DRE
1223 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
1909 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); local
7198 const DeclRefExpr *DRE = cast<DeclRefExpr>(TypeExpr); local
[all...]
H A DSemaTemplate.cpp2300 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr()); local
2301 if (!DRE || !DRE->getDecl())
2304 dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
4354 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg); local
4355 if (!DRE) {
4362 ValueDecl *Entity = DRE->getDecl();
4390 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
4557 DeclRefExpr *DRE = 0; local
4582 DRE
[all...]
H A DAnalysisBasedWarnings.cpp668 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Use.getUser())) {
681 if (!alwaysReportSelfInit && DRE == Initializer->IgnoreParenImpCasts())
684 ContainsReference CR(S.Context, DRE);
687 S.Diag(DRE->getLocStart(),
689 << VD->getDeclName() << VD->getLocation() << DRE->getSourceRange();
/freebsd-9.3-release/contrib/llvm/tools/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 DThreadSafety.cpp287 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp)) {
288 const NamedDecl *ND = cast<NamedDecl>(DRE->getDecl()->getCanonicalDecl());
403 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(UOE->getSubExpr())) {
404 if (DRE->getDecl()->isCXXInstanceMember()) {
407 unsigned Root = makeDot(DRE->getDecl(), false);
1210 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHSExp)) {
1211 ValueDecl *VDec = DRE->getDecl();
1643 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Cond)) {
1644 const Expr *E = LocalVarMap.lookupExpr(DRE->getDecl(), C);
2076 DeclRefExpr DRE(V
[all...]
/freebsd-9.3-release/contrib/llvm/tools/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.cpp354 if (const DeclRefExpr *DRE =
356 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();
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Rewrite/Frontend/
H A DRewriteObjC.cpp326 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2050 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType, local
2057 DRE, 0, VK_RValue);
2548 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, local
2550 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf,
2551 Context->getPointerType(DRE->getType()),
2751 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
2754 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs,
2859 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
2862 SuperRep = new (Context) CallExpr(*Context, DRE, InitExpr
3010 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3116 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), local
3964 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument
4515 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, local
[all...]
H A DRewriteModernObjC.cpp401 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2160 DeclRefExpr *DRE = local
2167 DRE, 0, VK_RValue);
2648 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, local
2650 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf,
2651 Context->getPointerType(DRE->getType()),
2747 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
2752 CK_BitCast, DRE);
2884 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
2889 CK_BitCast, DRE);
3057 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3289 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, castType, VK_RValue, local
3397 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
3505 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, local
3656 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, local
3734 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), local
4909 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument
5494 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, local
7784 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, local
[all...]
/freebsd-9.3-release/contrib/llvm/tools/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 DASTDiagnostic.cpp1124 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ArgExpr); local
1125 if (!DRE) {
1126 DRE = cast<DeclRefExpr>(cast<UnaryOperator>(ArgExpr)->getSubExpr());
1129 return DRE->getDecl();
H A DExpr.cpp1177 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE))
1178 return DRE->getDecl();
1228 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); local
1229 if (!DRE)
1232 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl());
2213 const DeclRefExpr *DRE = local
2215 if (!(DRE && isa<VarDecl>(DRE->getDecl()) &&
2216 cast<VarDecl>(DRE->getDecl())->hasLocalStorage())) {
3187 const DeclRefExpr *DRE local
[all...]
H A DItaniumMangle.cpp3007 const DependentScopeDeclRefExpr *DRE = cast<DependentScopeDeclRefExpr>(E); local
3008 mangleUnresolvedName(DRE->getQualifier(), 0, DRE->getDeclName(), Arity);
3013 if (DRE->hasExplicitTemplateArgs())
3014 mangleTemplateArgs(DRE->getExplicitTemplateArgs());
3288 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
3289 const ValueDecl *D = DRE->getDecl();

Completed in 218 milliseconds

12