Home
last modified time | relevance | path

Searched refs:DRE (Results 1 – 25 of 47) sorted by relevance

12

/freebsd-10-stable/contrib/llvm/tools/clang/lib/ARCMigrate/
DTransGCCalls.cpp53 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) { in VisitCallExpr() local
54 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) { in VisitCallExpr()
63 DRE->getSourceRange()); in VisitCallExpr()
64 TA.replace(DRE->getSourceRange(), "CFBridgingRelease"); in VisitCallExpr()
68 "receives in ARC", DRE->getLocation(), in VisitCallExpr()
69 DRE->getSourceRange()); in VisitCallExpr()
DTransProtectedScope.cpp182 DeclRefExpr *DRE = LocalRefs[i]; in hasVarReferencedOutside() local
183 if (isInRange(DRE->getDecl()->getLocation(), info.Range) && in hasVarReferencedOutside()
184 !isInRange(DRE->getLocation(), info.Range)) in hasVarReferencedOutside()
DTransforms.cpp205 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in isGlobalVar() local
206 return DRE->getDecl()->getDeclContext()->isFileContext() && in isGlobalVar()
207 DRE->getDecl()->isExternallyVisible(); in isGlobalVar()
DTransRetainReleaseDealloc.cpp311 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in getReferencedDecl() local
312 return DRE->getDecl(); in getReferencedDecl()
DTransUnbridgedCasts.cpp454 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in isSelf() local
455 if (ImplicitParamDecl *IPD = dyn_cast<ImplicitParamDecl>(DRE->getDecl())) in isSelf()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Sema/
DScopeInfo.cpp115 const DeclRefExpr *DRE) in WeakObjectProfileTy() argument
116 : Base(0, true), Property(DRE->getDecl()) { in WeakObjectProfileTy()
160 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in markSafeWeakUse() local
161 Uses = WeakObjectUses.find(WeakObjectProfileTy(DRE)); in markSafeWeakUse()
192 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in getPotentialVariableCapture() local
193 VD = dyn_cast<VarDecl>(DRE->getFoundDecl()); in getPotentialVariableCapture()
DSemaChecking.cpp471 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); in CheckARMBuiltinExclusiveCall() local
489 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer) in CheckARMBuiltinExclusiveCall()
506 Diag(DRE->getLocStart(), diag::ext_typecheck_convert_discards_qualifiers) in CheckARMBuiltinExclusiveCall()
524 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer_intfltptr) in CheckARMBuiltinExclusiveCall()
531 Diag(DRE->getLocStart(), diag::err_atomic_exclusive_builtin_pointer_size) in CheckARMBuiltinExclusiveCall()
545 Diag(DRE->getLocStart(), diag::err_arc_atomic_ownership) in CheckARMBuiltinExclusiveCall()
888 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); in SemaAtomicOpsOverloaded() local
1007 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer) in SemaAtomicOpsOverloaded()
1017 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_atomic) in SemaAtomicOpsOverloaded()
1022 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_non_const_atomic) in SemaAtomicOpsOverloaded()
[all …]
DSemaTemplate.cpp2300 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr()); in isTemplateArgumentTemplateParameter() local
2301 if (!DRE || !DRE->getDecl()) in isTemplateArgumentTemplateParameter()
2304 dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl()); in isTemplateArgumentTemplateParameter()
4354 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg); in CheckTemplateArgumentAddressOfObjectOrFunction() local
4355 if (!DRE) { in CheckTemplateArgumentAddressOfObjectOrFunction()
4362 ValueDecl *Entity = DRE->getDecl(); in CheckTemplateArgumentAddressOfObjectOrFunction()
4390 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here); in CheckTemplateArgumentAddressOfObjectOrFunction()
4557 DeclRefExpr *DRE = 0; in CheckTemplateArgumentPointerToMember() local
4582 DRE = dyn_cast<DeclRefExpr>(UnOp->getSubExpr()); in CheckTemplateArgumentPointerToMember()
4583 if (DRE && !DRE->getQualifier()) in CheckTemplateArgumentPointerToMember()
[all …]
DAnalysisBasedWarnings.cpp668 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Use.getUser())) { in DiagnoseUninitializedUse() local
681 if (!alwaysReportSelfInit && DRE == Initializer->IgnoreParenImpCasts()) in DiagnoseUninitializedUse()
684 ContainsReference CR(S.Context, DRE); in DiagnoseUninitializedUse()
687 S.Diag(DRE->getLocStart(), in DiagnoseUninitializedUse()
689 << VD->getDeclName() << VD->getLocation() << DRE->getSourceRange(); in DiagnoseUninitializedUse()
DSemaStmt.cpp1421 DeclRefExpr *&DRE) { in ProcessIterationStmt() argument
1434 DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr()); in ProcessIterationStmt()
1435 return DRE; in ProcessIterationStmt()
1450 DRE = dyn_cast<DeclRefExpr>(Call->getArg(0)); in ProcessIterationStmt()
1451 return DRE; in ProcessIterationStmt()
2138 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Range)) { in BuildCXXForRangeStmt() local
2139 if (ParmVarDecl *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) { in BuildCXXForRangeStmt()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Analysis/
DUninitializedValues.cpp293 if (const DeclRefExpr *DRE = in findVar() local
295 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar()
297 return FindVarResult(VD, DRE); in findVar()
334 Class get(const DeclRefExpr *DRE) const { in get()
336 = Classification.find(DRE); in get()
340 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get()
351 const DeclRefExpr *DRE in getSelfInitExpr() local
353 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr()
354 return DRE; in getSelfInitExpr()
371 if (const DeclRefExpr *DRE = Var.getDeclRefExpr()) in classify() local
[all …]
DThreadSafety.cpp287 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp)) { in buildSExpr() local
288 const NamedDecl *ND = cast<NamedDecl>(DRE->getDecl()->getCanonicalDecl()); in buildSExpr()
403 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(UOE->getSubExpr())) { in buildSExpr() local
404 if (DRE->getDecl()->isCXXInstanceMember()) { in buildSExpr()
407 unsigned Root = makeDot(DRE->getDecl(), false); in buildSExpr()
1210 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHSExp)) { in VisitBinaryOperator() local
1211 ValueDecl *VDec = DRE->getDecl(); in VisitBinaryOperator()
1643 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Cond)) { in getTrylockCallExpr() local
1644 const Expr *E = LocalVarMap.lookupExpr(DRE->getDecl(), C); in getTrylockCallExpr()
2076 DeclRefExpr DRE(VD, false, VD->getType(), VK_LValue, VD->getLocation()); in handleCall() local
[all …]
/freebsd-10-stable/contrib/llvm/tools/clang/lib/CodeGen/
DCGCUDARuntime.cpp41 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) { in EmitCUDAKernelCallExpr() local
42 TargetDecl = DRE->getDecl(); in EmitCUDAKernelCallExpr()
DCGDecl.cpp427 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false, in Emit() local
429 llvm::Value *value = CGF.EmitLoadOfScalar(CGF.EmitDeclRefLValue(&DRE), in Emit()
445 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false, in Emit() local
449 llvm::Value *Addr = CGF.EmitDeclRefLValue(&DRE).getAddress(); in Emit()
DCGCXXABI.cpp285 const DeclRefExpr *DRE) { in EmitThreadLocalDeclRefExpr() argument
DCGCXXABI.h489 const DeclRefExpr *DRE);
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Rewrite/Frontend/
DRewriteObjC.cpp326 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2050 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType, in SynthesizeCallToFunctionDecl() local
2057 DRE, 0, VK_RValue); in SynthesizeCallToFunctionDecl()
2548 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, in RewriteObjCStringLiteral() local
2550 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf, in RewriteObjCStringLiteral()
2551 Context->getPointerType(DRE->getType()), in RewriteObjCStringLiteral()
2751 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, in SynthMessageExpr() local
2754 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthMessageExpr()
2859 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, in SynthMessageExpr() local
2862 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthMessageExpr()
[all …]
DRewriteModernObjC.cpp401 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2160 DeclRefExpr *DRE = in SynthesizeCallToFunctionDecl() local
2167 DRE, 0, VK_RValue); in SynthesizeCallToFunctionDecl()
2648 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, in RewriteObjCStringLiteral() local
2650 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf, in RewriteObjCStringLiteral()
2651 Context->getPointerType(DRE->getType()), in RewriteObjCStringLiteral()
2747 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, in RewriteObjCBoxedExpr() local
2752 CK_BitCast, DRE); in RewriteObjCBoxedExpr()
2884 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, in RewriteObjCArrayLiteralExpr() local
2889 CK_BitCast, DRE); in RewriteObjCArrayLiteralExpr()
[all …]
/freebsd-10-stable/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypePropagation.cpp229 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(RecE)) { in getObjectTypeForAllocAndNew() local
233 if (DRE->getDecl() == SFCtx->getSelfDecl()) { in getObjectTypeForAllocAndNew()
DDeadStoresChecker.cpp354 if (const DeclRefExpr *DRE = in observeStmt() local
356 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt()
DMacOSKeychainAPIChecker.cpp165 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in REGISTER_MAP_WITH_PROGRAMSTATE() local
166 const ValueDecl *VD = DRE->getDecl(); in REGISTER_MAP_WITH_PROGRAMSTATE()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/AST/
DNSAPI.cpp411 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts())) in isObjCEnumerator() local
413 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
DExpr.cpp1177 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) in getCalleeDecl() local
1178 return DRE->getDecl(); in getCalleeDecl()
1228 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); in isBuiltinCall() local
1229 if (!DRE) in isBuiltinCall()
1232 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); in isBuiltinCall()
2217 const DeclRefExpr *DRE = in isUnusedResultAWarning() local
2219 if (!(DRE && isa<VarDecl>(DRE->getDecl()) && in isUnusedResultAWarning()
2220 cast<VarDecl>(DRE->getDecl())->hasLocalStorage())) { in isUnusedResultAWarning()
3191 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); in isObjCSelfExpr() local
3192 if (!DRE) in isObjCSelfExpr()
[all …]
DASTDiagnostic.cpp1124 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ArgExpr); in GetValueDecl() local
1125 if (!DRE) { in GetValueDecl()
1126 DRE = cast<DeclRefExpr>(cast<UnaryOperator>(ArgExpr)->getSubExpr()); in GetValueDecl()
1129 return DRE->getDecl(); in GetValueDecl()
DItaniumMangle.cpp3007 const DependentScopeDeclRefExpr *DRE = cast<DependentScopeDeclRefExpr>(E); in mangleExpression() local
3008 mangleUnresolvedName(DRE->getQualifier(), 0, DRE->getDeclName(), Arity); in mangleExpression()
3013 if (DRE->hasExplicitTemplateArgs()) in mangleExpression()
3014 mangleTemplateArgs(DRE->getExplicitTemplateArgs()); in mangleExpression()
3288 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in mangleTemplateArg() local
3289 const ValueDecl *D = DRE->getDecl(); in mangleTemplateArg()

12