Home
last modified time | relevance | path

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

12

/external/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()
DTransRetainReleaseDealloc.cpp226 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in getReferencedDecl() local
227 return DRE->getDecl(); in getReferencedDecl()
DTransforms.cpp189 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in isGlobalVar() local
190 return DRE->getDecl()->getDeclContext()->isFileContext() && in isGlobalVar()
191 DRE->getDecl()->getLinkage() == ExternalLinkage; in isGlobalVar()
DTransUnbridgedCasts.cpp367 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in isSelf() local
368 if (ImplicitParamDecl *IPD = dyn_cast<ImplicitParamDecl>(DRE->getDecl())) in isSelf()
/external/clang/test/SemaTemplate/
Dtemplate-id-printing.cpp17 namespace DRE { namespace
24 DRE::foo<int>; in test()
26 DRE::template foo<int>; in test()
28 DRE::foo<int>(); in test()
30 DRE::template foo<int>(); in test()
/external/clang/lib/Analysis/
DUninitializedValues.cpp280 if (const DeclRefExpr *DRE = in findVar() local
282 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar()
284 return FindVarResult(VD, DRE); in findVar()
321 Class get(const DeclRefExpr *DRE) const { in get()
323 = Classification.find(DRE); in get()
327 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get()
338 const DeclRefExpr *DRE in getSelfInitExpr() local
340 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr()
341 return DRE; in getSelfInitExpr()
348 if (const DeclRefExpr *DRE = Var.getDeclRefExpr()) in classify() local
[all …]
DThreadSafety.cpp266 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp)) { in buildSExpr() local
267 NamedDecl *ND = cast<NamedDecl>(DRE->getDecl()->getCanonicalDecl()); in buildSExpr()
386 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(UOE->getSubExpr())) { in buildSExpr() local
387 if (DRE->getDecl()->isCXXInstanceMember()) { in buildSExpr()
390 unsigned Root = makeDot(DRE->getDecl(), false); in buildSExpr()
1161 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHSExp)) { in VisitBinaryOperator() local
1162 ValueDecl *VDec = DRE->getDecl(); in VisitBinaryOperator()
1592 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Cond)) { in getTrylockCallExpr() local
1593 const Expr *E = LocalVarMap.lookupExpr(DRE->getDecl(), C); in getTrylockCallExpr()
1949 DeclRefExpr DRE(VD, false, VD->getType(), VK_LValue, VD->getLocation()); in handleCall() local
[all …]
/external/clang/lib/CodeGen/
DCGCUDARuntime.cpp41 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) { in EmitCUDAKernelCallExpr() local
42 TargetDecl = DRE->getDecl(); in EmitCUDAKernelCallExpr()
DCGDecl.cpp412 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false, in Emit() local
414 llvm::Value *value = CGF.EmitLoadOfScalar(CGF.EmitDeclRefLValue(&DRE)); in Emit()
429 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false, in Emit() local
433 llvm::Value *Addr = CGF.EmitDeclRefLValue(&DRE).getAddress(); in Emit()
/external/clang/lib/Rewrite/Frontend/
DRewriteObjC.cpp324 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2050 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType, in SynthesizeCallToFunctionDecl() local
2057 DRE, 0, VK_RValue); in SynthesizeCallToFunctionDecl()
2563 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, in RewriteObjCStringLiteral() local
2565 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf, in RewriteObjCStringLiteral()
2566 Context->getPointerType(DRE->getType()), in RewriteObjCStringLiteral()
2765 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperContructorFunctionDecl, in SynthMessageExpr() local
2768 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthMessageExpr()
2873 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperContructorFunctionDecl, in SynthMessageExpr() local
2876 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthMessageExpr()
[all …]
DRewriteModernObjC.cpp345 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2061 DeclRefExpr *DRE = in SynthesizeCallToFunctionDecl() local
2068 DRE, 0, VK_RValue); in SynthesizeCallToFunctionDecl()
2560 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, in RewriteObjCStringLiteral() local
2562 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf, in RewriteObjCStringLiteral()
2563 Context->getPointerType(DRE->getType()), in RewriteObjCStringLiteral()
2659 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, in RewriteObjCBoxedExpr() local
2664 CK_BitCast, DRE); in RewriteObjCBoxedExpr()
2797 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, in RewriteObjCArrayLiteralExpr() local
2802 CK_BitCast, DRE); in RewriteObjCArrayLiteralExpr()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypePropagation.cpp212 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(RecE)) { in getObjectTypeForAllocAndNew() local
216 if (DRE->getDecl() == SFCtx->getSelfDecl()) { in getObjectTypeForAllocAndNew()
DDeadStoresChecker.cpp351 if (const DeclRefExpr *DRE = in observeStmt() local
353 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt()
DMacOSKeychainAPIChecker.cpp174 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in isEnclosingFunctionParam() local
175 const ValueDecl *VD = DRE->getDecl(); in isEnclosingFunctionParam()
/external/clang/lib/Sema/
DSemaChecking.cpp612 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); in SemaAtomicOpsOverloaded() local
731 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer) in SemaAtomicOpsOverloaded()
741 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_atomic) in SemaAtomicOpsOverloaded()
752 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_atomic_int_or_ptr) in SemaAtomicOpsOverloaded()
757 Diag(DRE->getLocStart(), diag::err_atomic_op_bitwise_needs_atomic_int) in SemaAtomicOpsOverloaded()
764 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_atomic_int_or_ptr) in SemaAtomicOpsOverloaded()
772 Diag(DRE->getLocStart(), diag::err_atomic_op_needs_trivial_copy) in SemaAtomicOpsOverloaded()
791 Diag(DRE->getLocStart(), diag::err_arc_atomic_ownership) in SemaAtomicOpsOverloaded()
933 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); in SemaBuiltinAtomicOverloaded() local
934 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl()); in SemaBuiltinAtomicOverloaded()
[all …]
DSemaTemplate.cpp3754 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg); in CheckTemplateArgumentAddressOfObjectOrFunction() local
3755 if (!DRE) { in CheckTemplateArgumentAddressOfObjectOrFunction()
3762 if (!isa<ValueDecl>(DRE->getDecl())) { in CheckTemplateArgumentAddressOfObjectOrFunction()
3770 NamedDecl *Entity = DRE->getDecl(); in CheckTemplateArgumentAddressOfObjectOrFunction()
3798 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here); in CheckTemplateArgumentAddressOfObjectOrFunction()
4011 DeclRefExpr *DRE = 0; in CheckTemplateArgumentPointerToMember() local
4036 DRE = dyn_cast<DeclRefExpr>(UnOp->getSubExpr()); in CheckTemplateArgumentPointerToMember()
4037 if (DRE && !DRE->getQualifier()) in CheckTemplateArgumentPointerToMember()
4038 DRE = 0; in CheckTemplateArgumentPointerToMember()
4042 else if ((DRE = dyn_cast<DeclRefExpr>(Arg))) { in CheckTemplateArgumentPointerToMember()
[all …]
DAnalysisBasedWarnings.cpp634 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Use.getUser())) { in DiagnoseUninitializedUse() local
647 if (!alwaysReportSelfInit && DRE == Initializer->IgnoreParenImpCasts()) in DiagnoseUninitializedUse()
650 ContainsReference CR(S.Context, DRE); in DiagnoseUninitializedUse()
653 S.Diag(DRE->getLocStart(), in DiagnoseUninitializedUse()
655 << VD->getDeclName() << VD->getLocation() << DRE->getSourceRange(); in DiagnoseUninitializedUse()
DSemaLambda.cpp246 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()); in checkReturnValueType() local
247 if (DRE) { in checkReturnValueType()
248 const Decl *D = DRE->getDecl(); in checkReturnValueType()
DSemaType.cpp4236 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParens())) { in RequireCompleteExprType() local
4237 if (VarDecl *Var = dyn_cast<VarDecl>(DRE->getDecl())) { in RequireCompleteExprType()
4260 DRE->setDecl(Def); in RequireCompleteExprType()
4262 DRE->setType(T); in RequireCompleteExprType()
4598 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in getDecltypeForExpr() local
4599 if (const ValueDecl *VD = dyn_cast<ValueDecl>(DRE->getDecl())) in getDecltypeForExpr()
4617 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParens())) { in getDecltypeForExpr() local
4618 if (VarDecl *Var = dyn_cast<VarDecl>(DRE->getDecl())) { in getDecltypeForExpr()
4619 QualType T = S.getCapturedDeclRefType(Var, DRE->getLocation()); in getDecltypeForExpr()
DSemaDecl.cpp6265 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in HandleExpr() local
6266 HandleDeclRefExpr(DRE); in HandleExpr()
6281 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(E)) { in HandleValue() local
6282 HandleDeclRefExpr(DRE); in HandleValue()
6307 if (DeclRefExpr *DRE in VisitMemberExpr() local
6309 HandleDeclRefExpr(DRE); in VisitMemberExpr()
6325 void HandleDeclRefExpr(DeclRefExpr *DRE) { in HandleDeclRefExpr() argument
6326 Decl* ReferenceDecl = DRE->getDecl(); in HandleDeclRefExpr()
6328 LookupResult Result(S, DRE->getNameInfo(), Sema::LookupOrdinaryName, in HandleDeclRefExpr()
6333 S.DiagRuntimeBehavior(DRE->getLocStart(), DRE, in HandleDeclRefExpr()
[all …]
/external/clang/lib/AST/
DNSAPI.cpp396 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts())) in isObjCEnumerator() local
398 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
DItaniumMangle.cpp2814 const DependentScopeDeclRefExpr *DRE = cast<DependentScopeDeclRefExpr>(E); in mangleExpression() local
2815 mangleUnresolvedName(DRE->getQualifier(), 0, DRE->getDeclName(), Arity); in mangleExpression()
2820 if (DRE->hasExplicitTemplateArgs()) in mangleExpression()
2821 mangleTemplateArgs(DRE->getExplicitTemplateArgs()); in mangleExpression()
3120 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in mangleTemplateArg() local
3121 const ValueDecl *D = DRE->getDecl(); in mangleTemplateArg()
DExpr.cpp1013 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) in getCalleeDecl() local
1014 return DRE->getDecl(); in getCalleeDecl()
1064 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); in isBuiltinCall() local
1065 if (!DRE) in isBuiltinCall()
1068 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); in isBuiltinCall()
2029 const DeclRefExpr *DRE = in isUnusedResultAWarning() local
2031 if (!(DRE && isa<VarDecl>(DRE->getDecl()) && in isUnusedResultAWarning()
2032 cast<VarDecl>(DRE->getDecl())->hasLocalStorage())) { in isUnusedResultAWarning()
/external/clang/lib/StaticAnalyzer/Core/
DBugReporterVisitors.cpp35 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in isDeclRefExprToReference() local
36 return DRE->getDecl()->getType()->isReferenceType(); in isDeclRefExprToReference()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp813 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts())) in isEnumConstant() local
814 if (const ValueDecl *VD = DRE->getDecl()) in isEnumConstant()

12