/external/clang/lib/ARCMigrate/ |
D | TransGCCalls.cpp | 47 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) { in VisitCallExpr() local 48 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) { in VisitCallExpr() 57 DRE->getSourceRange()); in VisitCallExpr() 58 TA.replace(DRE->getSourceRange(), "CFBridgingRelease"); in VisitCallExpr() 62 "receives in ARC", DRE->getLocation(), in VisitCallExpr() 63 DRE->getSourceRange()); in VisitCallExpr()
|
D | TransProtectedScope.cpp | 182 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()
|
D | Transforms.cpp | 204 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in isGlobalVar() local 205 return DRE->getDecl()->getDeclContext()->isFileContext() && in isGlobalVar() 206 DRE->getDecl()->isExternallyVisible(); in isGlobalVar()
|
D | TransRetainReleaseDealloc.cpp | 301 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in getReferencedDecl() local 302 return DRE->getDecl(); in getReferencedDecl()
|
D | TransUnbridgedCasts.cpp | 455 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in isSelf() local 456 if (ImplicitParamDecl *IPD = dyn_cast<ImplicitParamDecl>(DRE->getDecl())) in isSelf()
|
/external/clang/test/SemaTemplate/ |
D | template-id-printing.cpp | 17 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/Sema/ |
D | ScopeInfo.cpp | 145 const DeclRefExpr *DRE) in WeakObjectProfileTy() argument 146 : Base(nullptr, true), Property(DRE->getDecl()) { in WeakObjectProfileTy() 198 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in markSafeWeakUse() local 199 Uses = WeakObjectUses.find(WeakObjectProfileTy(DRE)); in markSafeWeakUse() 231 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in getPotentialVariableCapture() local 232 VD = dyn_cast<VarDecl>(DRE->getFoundDecl()); in getPotentialVariableCapture()
|
D | SemaChecking.cpp | 255 auto *DRE = cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); in SemaBuiltinSEHScopeCheck() local 257 << DRE->getDecl()->getIdentifier(); in SemaBuiltinSEHScopeCheck() 1266 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); in CheckARMBuiltinExclusiveCall() local 1284 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer) in CheckARMBuiltinExclusiveCall() 1301 Diag(DRE->getLocStart(), diag::ext_typecheck_convert_discards_qualifiers) in CheckARMBuiltinExclusiveCall() 1319 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer_intfltptr) in CheckARMBuiltinExclusiveCall() 1327 Diag(DRE->getLocStart(), diag::err_atomic_exclusive_builtin_pointer_size) in CheckARMBuiltinExclusiveCall() 1341 Diag(DRE->getLocStart(), diag::err_arc_atomic_ownership) in CheckARMBuiltinExclusiveCall() 2280 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); in SemaAtomicOpsOverloaded() local 2405 Diag(DRE->getLocStart(), diag::err_atomic_builtin_must_be_pointer) in SemaAtomicOpsOverloaded() [all …]
|
D | SemaTemplate.cpp | 2467 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr()); in isTemplateArgumentTemplateParameter() local 2468 if (!DRE || !DRE->getDecl()) in isTemplateArgumentTemplateParameter() 2471 dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl()); in isTemplateArgumentTemplateParameter() 4564 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg); in CheckTemplateArgumentAddressOfObjectOrFunction() local 4565 ValueDecl *Entity = DRE ? DRE->getDecl() : nullptr; in CheckTemplateArgumentAddressOfObjectOrFunction() 4607 if (!DRE) { in CheckTemplateArgumentAddressOfObjectOrFunction() 4640 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here); in CheckTemplateArgumentAddressOfObjectOrFunction() 4808 DeclRefExpr *DRE = nullptr; in CheckTemplateArgumentPointerToMember() local 4833 DRE = dyn_cast<DeclRefExpr>(UnOp->getSubExpr()); in CheckTemplateArgumentPointerToMember() 4834 if (DRE && !DRE->getQualifier()) in CheckTemplateArgumentPointerToMember() [all …]
|
D | AnalysisBasedWarnings.cpp | 180 if (const DeclRefExpr *DRE = in hasRecursiveCallInPath() local 182 if (NestedNameSpecifier *NNS = DRE->getQualifier()) { in hasRecursiveCallInPath() 851 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Use.getUser())) { in DiagnoseUninitializedUse() local 864 if (!alwaysReportSelfInit && DRE == Initializer->IgnoreParenImpCasts()) in DiagnoseUninitializedUse() 867 ContainsReference CR(S.Context, DRE); in DiagnoseUninitializedUse() 870 S.Diag(DRE->getLocStart(), in DiagnoseUninitializedUse() 872 << VD->getDeclName() << VD->getLocation() << DRE->getSourceRange(); in DiagnoseUninitializedUse()
|
D | SemaStmtAsm.cpp | 95 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in CheckNakedParmReference() local 96 if (isa<ParmVarDecl>(DRE->getDecl())) { in CheckNakedParmReference() 97 S.Diag(DRE->getLocStart(), diag::err_asm_naked_parm_ref); in CheckNakedParmReference()
|
D | SemaExpr.cpp | 529 if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in DefaultFunctionArrayConversion() local 530 if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl())) in DefaultFunctionArrayConversion() 3773 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in CheckAlignOfExpr() local 3774 D = DRE->getDecl(); in CheckAlignOfExpr() 9660 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); in isReferenceToNonConstCapture() local 9661 if (!DRE) return NCCK_None; in isReferenceToNonConstCapture() 9662 if (!DRE->refersToEnclosingVariableOrCapture()) return NCCK_None; in isReferenceToNonConstCapture() 9665 VarDecl *var = dyn_cast<VarDecl>(DRE->getDecl()); in isReferenceToNonConstCapture() 9788 } else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in DiagnoseConstAssignment() local 9790 if (const ValueDecl *VD = DRE->getDecl()) { in DiagnoseConstAssignment() [all …]
|
/external/clang/lib/Analysis/ |
D | UninitializedValues.cpp | 294 if (const DeclRefExpr *DRE = in findVar() local 296 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar() 298 return FindVarResult(VD, DRE); in findVar() 335 Class get(const DeclRefExpr *DRE) const { in get() 337 = Classification.find(DRE); in get() 341 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get() 353 const DeclRefExpr *DRE in getSelfInitExpr() local 355 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr() 356 return DRE; in getSelfInitExpr() 404 if (const DeclRefExpr *DRE = Var.getDeclRefExpr()) in classify() local [all …]
|
D | ThreadSafetyCommon.cpp | 266 til::SExpr *SExprBuilder::translateDeclRefExpr(const DeclRefExpr *DRE, in translateDeclRefExpr() argument 268 const ValueDecl *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); in translateDeclRefExpr() 416 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr())) { in translateUnaryOperator() local 417 if (DRE->getDecl()->isCXXInstanceMember()) { in translateUnaryOperator() 421 return new (Arena) til::Project(W, DRE->getDecl()); in translateUnaryOperator() 476 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHS)) { in translateBinAssign() local 477 VD = DRE->getDecl(); in translateBinAssign() 541 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) { in translateCastExpr() local 542 til::SExpr *E0 = lookupVarDecl(DRE->getDecl()); in translateCastExpr()
|
D | ThreadSafety.cpp | 591 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHSExp)) { in VisitBinaryOperator() local 592 ValueDecl *VDec = DRE->getDecl(); in VisitBinaryOperator() 1346 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Cond)) { in getTrylockCallExpr() local 1347 const Expr *E = LocalVarMap.lookupExpr(DRE->getDecl(), C); in getTrylockCallExpr() 1594 while (const auto *DRE = dyn_cast<DeclRefExpr>(Exp)) { in checkAccess() local 1595 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()->getCanonicalDecl()); in checkAccess() 1803 DeclRefExpr DRE(VD, false, VD->getType(), VK_LValue, VD->getLocation()); in handleCall() local 1805 CapabilityExpr Scp = Analyzer->SxBuilder.translateAttrExpr(&DRE, nullptr); in handleCall() 2314 DeclRefExpr DRE(VD, false, VD->getType().getNonReferenceType(), in runAnalysis() local 2316 LocksetBuilder.handleCall(&DRE, DD); in runAnalysis()
|
/external/clang/lib/CodeGen/ |
D | CGCUDARuntime.cpp | 42 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) { in EmitCUDAKernelCallExpr() local 43 TargetDecl = DRE->getDecl(); in EmitCUDAKernelCallExpr()
|
D | CGStmtOpenMP.cpp | 67 DeclRefExpr DRE(const_cast<VarDecl *>(VD), in OMPLexicalScope() local 73 InlinedShareds.addPrivate(VD, [&CGF, &DRE]() -> Address { in OMPLexicalScope() 74 return CGF.EmitLValue(&DRE).getAddress(); in OMPLexicalScope() 390 if (auto *DRE = in getReductionInit() local 392 if (auto *DRD = dyn_cast<OMPDeclareReductionDecl>(DRE->getDecl())) in getReductionInit() 607 DeclRefExpr DRE(const_cast<VarDecl *>(OrigVD), in EmitOMPFirstprivateClause() local 610 Address OriginalAddr = EmitLValue(&DRE).getAddress(); in EmitOMPFirstprivateClause() 717 DeclRefExpr DRE(const_cast<VarDecl *>(VD), true, (*IRef)->getType(), in EmitOMPCopyinClause() local 719 MasterAddr = EmitLValue(&DRE).getAddress(); in EmitOMPCopyinClause() 787 DeclRefExpr DRE( in EmitOMPLastprivateClauseInit() local [all …]
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 319 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE); 2011 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType, in SynthesizeCallToFunctionDecl() local 2018 DRE, nullptr, VK_RValue); in SynthesizeCallToFunctionDecl() 2508 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, in RewriteObjCStringLiteral() local 2510 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf, in RewriteObjCStringLiteral() 2511 Context->getPointerType(DRE->getType()), in RewriteObjCStringLiteral() 2699 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, in SynthMessageExpr() local 2702 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthMessageExpr() 2794 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, in SynthMessageExpr() local 2797 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthMessageExpr() [all …]
|
D | RewriteModernObjC.cpp | 391 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE); 2096 DeclRefExpr *DRE = in SynthesizeCallToFunctionDecl() local 2103 DRE, nullptr, VK_RValue); in SynthesizeCallToFunctionDecl() 2584 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, in RewriteObjCStringLiteral() local 2586 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf, in RewriteObjCStringLiteral() 2587 Context->getPointerType(DRE->getType()), in RewriteObjCStringLiteral() 2673 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, in RewriteObjCBoxedExpr() local 2678 CK_BitCast, DRE); in RewriteObjCBoxedExpr() 2796 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, in RewriteObjCArrayLiteralExpr() local 2801 CK_BitCast, DRE); in RewriteObjCArrayLiteralExpr() [all …]
|
/external/clang/lib/AST/ |
D | Expr.cpp | 1201 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) in getCalleeDecl() local 1202 return DRE->getDecl(); in getCalleeDecl() 1252 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); in getBuiltinCallee() local 1253 if (!DRE) in getBuiltinCallee() 1256 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); in getBuiltinCallee() 1384 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in UnaryExprOrTypeTraitExpr() local 1385 D = DRE->getDecl(); in UnaryExprOrTypeTraitExpr() 2165 const DeclRefExpr *DRE = in isUnusedResultAWarning() local 2167 if (!(DRE && isa<VarDecl>(DRE->getDecl()) && in isUnusedResultAWarning() 2168 cast<VarDecl>(DRE->getDecl())->hasLocalStorage())) { in isUnusedResultAWarning() [all …]
|
D | NSAPI.cpp | 566 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts())) in isObjCEnumerator() local 568 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
|
D | StmtPrinter.cpp | 770 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(*I)) { in VisitOMPClauseList() local 771 if (isa<OMPCapturedExprDecl>(DRE->getDecl())) in VisitOMPClauseList() 772 DRE->printPretty(OS, nullptr, Policy, 0); in VisitOMPClauseList() 774 DRE->getDecl()->printQualifiedName(OS); in VisitOMPClauseList() 1934 DeclRefExpr *DRE = cast<DeclRefExpr>(Node->getCallee()->IgnoreImpCasts()); in VisitUserDefinedLiteral() local 1936 cast<FunctionDecl>(DRE->getDecl())->getTemplateSpecializationArgs(); in VisitUserDefinedLiteral()
|
D | ItaniumMangle.cpp | 3769 const DependentScopeDeclRefExpr *DRE = cast<DependentScopeDeclRefExpr>(E); in mangleExpression() local 3770 mangleUnresolvedName(DRE->getQualifier(), DRE->getDeclName(), Arity); in mangleExpression() 3775 if (DRE->hasExplicitTemplateArgs()) in mangleExpression() 3776 mangleTemplateArgs(DRE->getTemplateArgs(), DRE->getNumTemplateArgs()); in mangleExpression() 4107 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in mangleTemplateArg() local 4108 const ValueDecl *D = DRE->getDecl(); in mangleTemplateArg()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DeadStoresChecker.cpp | 360 if (const DeclRefExpr *DRE = in observeStmt() local 362 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt()
|
D | MacOSKeychainAPIChecker.cpp | 163 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in REGISTER_MAP_WITH_PROGRAMSTATE() local 164 const ValueDecl *VD = DRE->getDecl(); in REGISTER_MAP_WITH_PROGRAMSTATE()
|