| /src/external/apache2/llvm/dist/clang/lib/ARCMigrate/ |
| TransGCCalls.cpp | 46 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) { 47 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) { 56 DRE->getSourceRange()); 57 TA.replace(DRE->getSourceRange(), "CFBridgingRelease"); 61 "receives in ARC", DRE->getLocation(), 62 DRE->getSourceRange());
|
| TransProtectedScope.cpp | 183 DeclRefExpr *DRE = LocalRefs[i]; 184 if (isInRange(DRE->getDecl()->getLocation(), info.Range) && 185 !isInRange(DRE->getLocation(), info.Range))
|
| Transforms.cpp | 199 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) 200 return DRE->getDecl()->getDeclContext()->isFileContext() && 201 DRE->getDecl()->isExternallyVisible();
|
| TransRetainReleaseDealloc.cpp | 305 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) 306 return DRE->getDecl();
|
| TransUnbridgedCasts.cpp | 452 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) 453 if (ImplicitParamDecl *IPD = dyn_cast<ImplicitParamDecl>(DRE->getDecl()))
|
| /src/external/apache2/llvm/dist/clang/lib/Sema/ |
| ScopeInfo.cpp | 140 const DeclRefExpr *DRE) 141 : Base(nullptr, true), Property(DRE->getDecl()) { 193 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { 194 if (isa<VarDecl>(DRE->getDecl())) 195 Uses = WeakObjectUses.find(WeakObjectProfileTy(DRE)); 236 if (auto *DRE = dyn_cast<DeclRefExpr>(E)) { 237 Callback(cast<VarDecl>(DRE->getFoundDecl()), E);
|
| SemaAvailability.cpp | 623 bool VisitDeclRefExpr(DeclRefExpr *DRE) { 624 if (DRE->getDecl() == D) 714 bool VisitDeclRefExpr(DeclRefExpr *DRE) { 715 DiagnoseDeclAvailability(DRE->getDecl(), 716 SourceRange(DRE->getBeginLoc(), DRE->getEndLoc()));
|
| SemaStmtAsm.cpp | 144 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { 145 if (isa<ParmVarDecl>(DRE->getDecl())) { 146 S.Diag(DRE->getBeginLoc(), diag::err_asm_naked_parm_ref); 740 if (DeclRefExpr *DRE = dyn_cast<clang::DeclRefExpr>(Res)) 741 if (DRE->getDecl()->getKind() == Decl::EnumConstant)
|
| SemaExpr.cpp | 498 if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) 499 if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl())) 1961 auto *DRE = dyn_cast<DeclRefExpr>(VD->getInit()); 1962 if (!DRE) 1964 auto *Referee = dyn_cast<VarDecl>(DRE->getDecl()); 4284 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Inner)) { 4285 D = DRE->getDecl(); 6480 if (auto *DRE = dyn_cast<DeclRefExpr>(NakedFn)) { 6481 NDecl = DRE->getDecl(); 6494 nullptr, DRE->isNonOdrUse()) [all...] |
| SemaChecking.cpp | 792 auto *DRE = cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); 794 << DRE->getDecl()->getIdentifier(); 1974 auto *DRE = dyn_cast<DeclRefExpr>(TheCall->getArg(0)->IgnoreImpCasts()); 1975 if (!DRE) 1977 auto *D = DRE->getDecl(); 2339 DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts()); 2357 Diag(DRE->getBeginLoc(), diag::err_atomic_builtin_must_be_pointer) 2374 Diag(DRE->getBeginLoc(), diag::ext_typecheck_convert_discards_qualifiers) 2391 Diag(DRE->getBeginLoc(), diag::err_atomic_builtin_must_be_pointer_intfltptr) 2399 Diag(DRE->getBeginLoc(), diag::err_atomic_exclusive_builtin_pointer_size [all...] |
| SemaTemplate.cpp | 632 if (auto *DRE = dyn_cast<DeclRefExpr>(TemplateName.get())) { 633 NameInfo = DRE->getNameInfo(); 634 SS.Adopt(DRE->getQualifierLoc()); 636 Found = DRE->getFoundDecl(); 4131 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr()); 4132 if (!DRE || !DRE->getDecl()) 4135 dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl()); 6497 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg)) 6498 Entity = DRE->getDecl() [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| UninitializedValues.cpp | 252 if (const auto *DRE = 254 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) 256 return FindVarResult(VD, DRE); 297 Class get(const DeclRefExpr *DRE) const { 299 = Classification.find(DRE); 303 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); 317 const auto *DRE = 319 if (DRE && DRE->getDecl() == VD) 320 return DRE; [all...] |
| ThreadSafetyCommon.cpp | 272 til::SExpr *SExprBuilder::translateDeclRefExpr(const DeclRefExpr *DRE, 274 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); 441 if (const auto *DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr())) { 442 if (DRE->getDecl()->isCXXInstanceMember()) { 446 return new (Arena) til::Project(W, DRE->getDecl()); 500 if (const auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { 501 VD = DRE->getDecl(); 566 if (const auto *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) { 567 til::SExpr *E0 = lookupVarDecl(DRE->getDecl());
|
| ThreadSafety.cpp | 639 if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSExp)) { 640 const ValueDecl *VDec = DRE->getDecl(); 1456 else if (const auto *DRE = dyn_cast<DeclRefExpr>(Cond)) { 1457 const Expr *E = LocalVarMap.lookupExpr(DRE->getDecl(), C); 1720 while (const auto *DRE = dyn_cast<DeclRefExpr>(Exp)) { 1721 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()->getCanonicalDecl()); 1961 DeclRefExpr DRE(VD->getASTContext(), VD, false, VD->getType(), VK_LValue, 1963 // FIXME: does this store a pointer to DRE? 1964 CapabilityExpr Scp = Analyzer->SxBuilder.translateAttrExpr(&DRE, nullptr); 2494 DeclRefExpr DRE(VD->getASTContext(), VD, false [all...] |
| ReachableCode.cpp | 62 if (const auto *DRE = dyn_cast<DeclRefExpr>(S)) 63 if (const auto *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()))
|
| /src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/ |
| RewriteModernObjC.cpp | 391 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE); 2103 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType, 2110 DRE, nullptr, VK_RValue, FPOptionsOverride()); 2590 DeclRefExpr *DRE = new (Context) 2593 const_cast<ASTContext &>(*Context), DRE, UO_AddrOf, 2594 Context->getPointerType(DRE->getType()), VK_RValue, OK_Ordinary, 2679 DeclRefExpr *DRE = new (Context) DeclRefExpr( 2683 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); 2800 DeclRefExpr *DRE = new (Context) DeclRefExpr( 2804 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); [all...] |
| RewriteObjC.cpp | 319 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE); 2020 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType, 2027 DRE, nullptr, VK_RValue, FPOptionsOverride()); 2517 DeclRefExpr *DRE = new (Context) 2520 const_cast<ASTContext &>(*Context), DRE, UO_AddrOf, 2521 Context->getPointerType(DRE->getType()), VK_RValue, OK_Ordinary, 2710 DeclRefExpr *DRE = new (Context) 2714 CallExpr::Create(*Context, DRE, InitExprs, superType, VK_LValue, 2806 DeclRefExpr *DRE = new (Context) 2810 CallExpr::Create(*Context, DRE, InitExprs, superType, VK_LValue [all...] |
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| DereferenceChecker.cpp | 118 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) 119 return DRE->getDecl()->getType()->isReferenceType();
|
| DeadStoresChecker.cpp | 421 if (const DeclRefExpr *DRE = 423 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
|
| MacOSKeychainAPIChecker.cpp | 161 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { 162 const ValueDecl *VD = DRE->getDecl();
|
| /src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| CGStmtOpenMP.cpp | 88 DeclRefExpr DRE( 93 InlinedShareds.addPrivate(VD, [&CGF, &DRE]() -> Address { 94 return CGF.EmitLValue(&DRE).getAddress(CGF); 262 DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(VD), 268 InlinedShareds.addPrivate(VD, [&CGF, &DRE]() -> Address { 269 return CGF.EmitLValue(&DRE).getAddress(CGF); 293 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), IsCaptured, 295 return EmitLValue(&DRE); 839 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), 845 ConstantEmission CE = tryEmitAsConstant(&DRE); [all...] |
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
| RetainCountDiagnostics.cpp | 193 if (const auto *DRE = dyn_cast<DeclRefExpr>(This)) { 194 const ValueDecl *VD = DRE->getDecl();
|
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| BugReporterVisitors.cpp | 216 if (const auto *DRE = dyn_cast<DeclRefExpr>(CondVarExpr)) 217 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) 478 if (const auto *DRE = dyn_cast<DeclRefExpr>(Base)) 479 if (const auto *ID = dyn_cast<ImplicitParamDecl>(DRE->getDecl())) 2679 const Expr *Cond, const DeclRefExpr *DRE, BugReporterContext &BRC, 2682 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); 2691 if (!printValue(DRE, Out, N, TookTrue, IsAssuming)) 2696 if (isVarAnInterestingCondition(DRE, N, &report)) 2699 // If we know the value create a pop-up note to the 'DRE'. 2701 PathDiagnosticLocation Loc(DRE, BRC.getSourceManager(), LCtx) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/AST/ |
| JSONNodeDumper.cpp | 1154 void JSONNodeDumper::VisitDeclRefExpr(const DeclRefExpr *DRE) { 1155 JOS.attribute("referencedDecl", createBareDeclRef(DRE->getDecl())); 1156 if (DRE->getDecl() != DRE->getFoundDecl()) 1158 createBareDeclRef(DRE->getFoundDecl())); 1159 switch (DRE->isNonOdrUse()) {
|
| NSAPI.cpp | 594 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts())) 596 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl()))
|