/freebsd-11-stable/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | 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());
|
H A D | TransProtectedScope.cpp | 182 DeclRefExpr *DRE = LocalRefs[i]; local 183 if (isInRange(DRE->getDecl()->getLocation(), info.Range) && 184 !isInRange(DRE->getLocation(), info.Range))
|
H A D | Transforms.cpp | 198 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) 199 return DRE->getDecl()->getDeclContext()->isFileContext() && 200 DRE->getDecl()->isExternallyVisible();
|
H A D | TransRetainReleaseDealloc.cpp | 305 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) 306 return DRE->getDecl();
|
H A D | TransUnbridgedCasts.cpp | 452 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) 453 if (ImplicitParamDecl *IPD = dyn_cast<ImplicitParamDecl>(DRE->getDecl()))
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | ScopeInfo.cpp | 139 const DeclRefExpr *DRE) 140 : Base(nullptr, true), Property(DRE->getDecl()) { 192 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { 193 if (isa<VarDecl>(DRE->getDecl())) 194 Uses = WeakObjectUses.find(WeakObjectProfileTy(DRE)); 235 if (auto *DRE = dyn_cast<DeclRefExpr>(E)) { 236 Callback(cast<VarDecl>(DRE->getFoundDecl()), E); 138 WeakObjectProfileTy( const DeclRefExpr *DRE) argument
|
H A D | 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); 711 if (DeclRefExpr *DRE = dyn_cast<clang::DeclRefExpr>(Res)) 712 if (DRE->getDecl()->getKind() == Decl::EnumConstant)
|
H A D | SemaTemplate.cpp | 625 if (auto *DRE = dyn_cast<DeclRefExpr>(TemplateName.get())) { 626 NameInfo = DRE->getNameInfo(); 627 SS.Adopt(DRE->getQualifierLoc()); 629 Found = DRE->getFoundDecl(); 3933 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr()); local 3934 if (!DRE || !DRE->getDecl()) 3937 dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl()); 6296 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg); local 6297 ValueDecl *Entity = DRE 6502 DeclRefExpr *DRE = nullptr; local [all...] |
H A D | SemaExpr.cpp | 482 if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) 483 if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl())) 4106 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Inner)) { 4107 D = DRE->getDecl(); 5835 if (auto *DRE = dyn_cast<DeclRefExpr>(NakedFn)) { 5836 NDecl = DRE->getDecl(); 5849 nullptr, DRE->isNonOdrUse()); 9361 if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSArg)) { 9362 if (const ValueDecl *LHSArgDecl = DRE->getDecl()) 9375 if (const auto *DRE 11578 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local 12064 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InnerLHS); local 12502 DeclRefExpr *DRE = cast<DeclRefExpr>(op); local 12620 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp); local 16521 auto *DRE = cast<DeclRefExpr>(E); local 17838 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local 18062 auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()); local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/ |
H A D | UninitializedValues.cpp | 313 if (const auto *DRE = 315 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) 317 return FindVarResult(VD, DRE); 357 Class get(const DeclRefExpr *DRE) const { 359 = Classification.find(DRE); 363 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); 377 const auto *DRE = local 379 if (DRE && DRE->getDecl() == VD) 380 return DRE; [all...] |
H A D | ThreadSafetyCommon.cpp | 272 til::SExpr *SExprBuilder::translateDeclRefExpr(const DeclRefExpr *DRE, argument 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());
|
H A D | ThreadSafety.cpp | 634 if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSExp)) { 635 const ValueDecl *VDec = DRE->getDecl(); 1441 else if (const auto *DRE = dyn_cast<DeclRefExpr>(Cond)) { 1442 const Expr *E = LocalVarMap.lookupExpr(DRE->getDecl(), C); 1706 while (const auto *DRE = dyn_cast<DeclRefExpr>(Exp)) { 1707 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()->getCanonicalDecl()); 1942 DeclRefExpr DRE(VD->getASTContext(), VD, false, VD->getType(), VK_LValue, 1944 // FIXME: does this store a pointer to DRE? 1945 CapabilityExpr Scp = Analyzer->SxBuilder.translateAttrExpr(&DRE, nullptr); 2482 DeclRefExpr DRE(V [all...] |
H A D | ReachableCode.cpp | 62 if (const auto *DRE = dyn_cast<DeclRefExpr>(S)) 63 if (const auto *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()))
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CastValueChecker.cpp | 120 if (const auto *DRE = dyn_cast<DeclRefExpr>(Object)) { 121 Out << '\'' << DRE->getDecl()->getNameAsString() << '\'';
|
H A D | DereferenceChecker.cpp | 114 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) 115 return DRE->getDecl()->getType()->isReferenceType();
|
H A D | DeadStoresChecker.cpp | 418 if (const DeclRefExpr *DRE = 420 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
|
H A D | MacOSKeychainAPIChecker.cpp | 161 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { 162 const ValueDecl *VD = DRE->getDecl();
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteObjC.cpp | 319 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE); 2018 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType, local 2025 DRE, nullptr, VK_RValue); 2514 DeclRefExpr *DRE = new (Context) local 2517 UnaryOperator(DRE, UO_AddrOf, Context->getPointerType(DRE->getType()), 2705 DeclRefExpr *DRE = new (Context) local 2708 SuperRep = CallExpr::Create(*Context, DRE, InitExprs, superType, 2800 DeclRefExpr *DRE = new (Context) local 2803 SuperRep = CallExpr::Create(*Context, DRE, InitExpr 2944 DeclRefExpr *DRE = new (Context) DeclRefExpr( local 3049 DeclRefExpr *DRE = new (Context) DeclRefExpr( local 3873 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument 4416 DeclRefExpr *DRE = new (Context) local [all...] |
H A D | RewriteModernObjC.cpp | 391 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE); 2101 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType, local 2108 DRE, nullptr, VK_RValue); 2587 DeclRefExpr *DRE = new (Context) local 2590 UnaryOperator(DRE, UO_AddrOf, Context->getPointerType(DRE->getType()), 2675 DeclRefExpr *DRE = new (Context) DeclRefExpr( local 2679 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); 2796 DeclRefExpr *DRE = new (Context) DeclRefExpr( local 2800 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); 2947 DeclRefExpr *DRE = new (Context) DeclRefExpr( local 3174 DeclRefExpr *DRE = new (Context) local 3274 DeclRefExpr *DRE = new (Context) local 3369 DeclRefExpr *DRE = new (Context) local 3513 DeclRefExpr *DRE = new (Context) DeclRefExpr( local 3591 DeclRefExpr *DRE = new (Context) DeclRefExpr( local 4702 RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) argument 5276 DeclRefExpr *DRE = new (Context) local 7484 DeclRefExpr *DRE = new (Context) local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGStmtOpenMP.cpp | 78 DeclRefExpr DRE( 83 InlinedShareds.addPrivate(VD, [&CGF, &DRE]() -> Address { 84 return CGF.EmitLValue(&DRE).getAddress(CGF); 232 DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(VD), 238 InlinedShareds.addPrivate(VD, [&CGF, &DRE]() -> Address { 239 return CGF.EmitLValue(&DRE).getAddress(CGF); 263 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), IsCaptured, 265 return EmitLValue(&DRE); 797 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), 803 ConstantEmission CE = tryEmitAsConstant(&DRE); 1719 const auto *DRE = cast<DeclRefExpr>(C->getLoopCounter(I)); local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
H A D | RetainCountDiagnostics.cpp | 190 if (const auto *DRE = dyn_cast<DeclRefExpr>(This)) { 191 const ValueDecl *VD = DRE->getDecl();
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | Expr.cpp | 1459 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) 1460 return DRE->getDecl(); 1479 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); local 1480 if (!DRE) 1483 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); 1624 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) 1625 D = DRE->getDecl(); 2689 const DeclRefExpr *DRE = local 2691 if (!(DRE && isa<VarDecl>(DRE 3885 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); local [all...] |
H A D | JSONNodeDumper.cpp | 1138 void JSONNodeDumper::VisitDeclRefExpr(const DeclRefExpr *DRE) { argument 1139 JOS.attribute("referencedDecl", createBareDeclRef(DRE->getDecl())); 1140 if (DRE->getDecl() != DRE->getFoundDecl()) 1142 createBareDeclRef(DRE->getFoundDecl())); 1143 switch (DRE->isNonOdrUse()) {
|
H A D | NSAPI.cpp | 585 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts())) 587 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl()))
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | BugReporterVisitors.cpp | 195 if (const auto *DRE = dyn_cast<DeclRefExpr>(CondVarExpr)) 196 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) 457 if (const auto *DRE = dyn_cast<DeclRefExpr>(Base)) 458 if (const auto *ID = dyn_cast<ImplicitParamDecl>(DRE->getDecl())) 2553 const Expr *Cond, const DeclRefExpr *DRE, BugReporterContext &BRC, 2556 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); 2565 if (!printValue(DRE, Out, N, TookTrue, IsAssuming)) 2570 if (isVarAnInterestingCondition(DRE, N, &report)) 2573 // If we know the value create a pop-up note to the 'DRE'. 2575 PathDiagnosticLocation Loc(DRE, BR 2552 VisitTrueTest( const Expr *Cond, const DeclRefExpr *DRE, BugReporterContext &BRC, PathSensitiveBugReport &report, const ExplodedNode *N, bool TookTrue, bool IsAssuming) argument [all...] |