reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

gen/tools/clang/include/clang/AST/StmtNodes.inc
  949 DECLREFEXPR(DeclRefExpr, Expr)
tools/clang/include/clang/Analysis/Analyses/LiveVariables.h
   25 class DeclRefExpr;
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
   51 class DeclRefExpr;
tools/clang/include/clang/Sema/Sema.h
  110   class DeclRefExpr;
tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
   30 class DeclRefExpr;
tools/lldb/include/lldb/Core/ClangForward.h
   46 class DeclRefExpr;

References

include/llvm/ADT/ArrayRef.h
  108         const ArrayRef<U *> &A,
  110            std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
  118       const SmallVectorTemplateCommon<U *, DummyT> &Vec,
  120           std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
include/llvm/ADT/STLExtras.h
   75       typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   66   static inline bool doit(const From &) { return true; }
  104   static inline bool doit(const From *Val) {
  106     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  265   return cast_convert_val<X, Y*,
  266                           typename simplify_type<Y*>::SimpleType>::doit(Val);
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
   91   typedef PointerLikeTypeTraits<T *> NonConst;
   93   static inline const void *getAsVoidPointer(const T *P) {
   96   static inline const T *getFromVoidPointer(const void *P) {
include/llvm/Support/TrailingObjects.h
  134     : public TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy,
  137   typedef TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, MoreTys...>
  141     static const bool value = alignof(PrevTy) < alignof(NextTy);
  162   getTrailingObjectsImpl(const BaseTy *Obj,
  177   getTrailingObjectsImpl(BaseTy *Obj,
  179     auto *Ptr = TopTrailingObj::getTrailingObjectsImpl(
  232                             BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
  232                             BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
  233                             BaseTy, TrailingTys...> {
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  257   static const BaseTy *
  258   getTrailingObjectsImpl(const BaseTy *Obj,
  259                          TrailingObjectsBase::OverloadToken<BaseTy>) {
  263   static BaseTy *
  264   getTrailingObjectsImpl(BaseTy *Obj,
  265                          TrailingObjectsBase::OverloadToken<BaseTy>) {
  277   callNumTrailingObjects(const BaseTy *Obj,
  278                          TrailingObjectsBase::OverloadToken<BaseTy>) {
  283   static size_t callNumTrailingObjects(const BaseTy *Obj,
  284                                        TrailingObjectsBase::OverloadToken<T>) {
  345     return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...);
tools/clang/include/clang/AST/ASTContext.h
  664   template <typename NodeT> DynTypedNodeList getParents(const NodeT &Node) {
tools/clang/include/clang/AST/ASTTypeTraits.h
   65     return ASTNodeKind(KindToKindId<T>::Id);
  234   static DynTypedNode create(const T &Node) {
  235     return BaseConverter<T>::create(Node);
  251   const T *get() const {
  252     return BaseConverter<T>::get(NodeKind, Storage.buffer);
  259   const T &getUnchecked() const {
  260     return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
  394     static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
  395       if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
  399     static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
  401       return *cast<T>(static_cast<const BaseT *>(
  474     : public DynCastPtrConverter<T, Stmt> {};
tools/clang/include/clang/AST/Expr.h
 1148       private llvm::TrailingObjects<DeclRefExpr, NestedNameSpecifierLoc,
 1199   static DeclRefExpr *
 1207   static DeclRefExpr *
 1217   static DeclRefExpr *CreateEmpty(const ASTContext &Context, bool HasQualifier,
tools/clang/include/clang/AST/JSONNodeDumper.h
  258   void VisitDeclRefExpr(const DeclRefExpr *DRE);
tools/clang/include/clang/AST/TextNodeDumper.h
  235   void VisitDeclRefExpr(const DeclRefExpr *Node);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  110   const T *getNodeAs(StringRef ID) const {
  111     return MyBoundNodes.getNodeAs<T>(ID);
 1798 extern const internal::VariadicDynCastAllOfMatcher<Stmt, DeclRefExpr>
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  160   const T *getNodeAs(StringRef ID) const {
  165     return It->second.get<T>();
  302   virtual bool matches(const T &Node,
  309     return matches(DynNode.getUnchecked<T>(), Finder, Builder);
  345   DynTypedMatcher(MatcherInterface<T> *Implementation)
  346       : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
  436     return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  445   template <typename T> Matcher<T> convertTo() const {
  447     return unconditionalConvertTo<T>();
  479 class WrapperMatcherInterface : public MatcherInterface<T> {
  499   explicit Matcher(MatcherInterface<T> *Implementation)
  507           typename std::enable_if<std::is_base_of<From, T>::value &&
  508                                !std::is_same<From, T>::value>::type * = nullptr)
  520             std::is_same<T, QualType>::value &&
  529     static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
  534   bool matches(const T &Node,
  581     return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
  596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
  751 class HasDeclarationMatcher : public WrapperMatcherInterface<T> {
  759   bool matches(const T &Node, ASTMatchFinder *Finder,
  850   bool matchesSpecialized(const DeclRefExpr &Node, ASTMatchFinder *Finder,
 1026   bool matchesAncestorOf(const T &Node,
 1030     static_assert(std::is_base_of<Decl, T>::value ||
 1031                       std::is_base_of<NestedNameSpecifierLoc, T>::value ||
 1032                       std::is_base_of<Stmt, T>::value ||
 1033                       std::is_base_of<TypeLoc, T>::value,
 1067   using head = T1;
 1073   using tail = TypeList<Ts...>;
 1084       std::is_base_of<typename AnyTypeList::head, T>::value ||
 1085       TypeListContainsSuperOf<typename AnyTypeList::tail, T>::value;
 1116     TypeList<CallExpr, CXXConstructExpr, CXXNewExpr, DeclRefExpr, EnumType,
 1146     template <typename To> operator Matcher<To>() const {
 1184   operator Matcher<T>() const {
 1185     static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
 1202   operator Matcher<T>() const {
 1203     static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
 1243   operator Matcher<T>() const {
 1245                ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
 1246         .template unconditionalConvertTo<T>();
 1255 class BindableMatcher : public Matcher<T> {
 1257   explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
 1258   explicit BindableMatcher(MatcherInterface<T> *Implementation)
 1265   Matcher<T> bind(StringRef ID) const {
 1335   template <typename T> operator Matcher<T>() const {
 1337                Op, ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1338                getMatchers<T>(std::index_sequence_for<Ps...>()))
 1339         .template unconditionalConvertTo<T>();
 1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
 1376 BindableMatcher<T> makeAllOfComposite(
 1377     ArrayRef<const Matcher<T> *> InnerMatchers) {
 1388   using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
 1395           ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1397           .template unconditionalConvertTo<T>());
 1408     ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
 1458 class HasAncestorMatcher : public WrapperMatcherInterface<T> {
 1466   bool matches(const T &Node, ASTMatchFinder *Finder,
 1557     : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
 1558                               makeDynCastAllOfComposite<SourceT, TargetT>> {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h
  199   ast_matchers::internal::Matcher<T> getTypedMatcher() const {
  202         ->template convertTo<T>();
  227       : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
  228   typedef ast_matchers::internal::Matcher<T> MatcherT;
  232     return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/include/clang/Analysis/Analyses/LiveVariables.h
   67     virtual void observerKill(const DeclRefExpr *DR) {}
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
  395   til::SExpr *translateDeclRefExpr(const DeclRefExpr *DRE,
tools/clang/include/clang/Sema/Ownership.h
  217     template <typename T> T *getAs() { return static_cast<T*>(get()); }
tools/clang/include/clang/Sema/ScopeInfo.h
  269     WeakObjectProfileTy(const DeclRefExpr *RE);
 1021 void FunctionScopeInfo::recordUseOfWeak(const ExprT *E, bool IsRead) {
tools/clang/include/clang/Sema/Sema.h
 2082     if (auto *DRE = dyn_cast<DeclRefExpr>(E.get()))
 2082     if (auto *DRE = dyn_cast<DeclRefExpr>(E.get()))
 4408   void MarkDeclRefReferenced(DeclRefExpr *E, const Expr *Base = nullptr);
 4542   DeclRefExpr *BuildDeclRefExpr(ValueDecl *D, QualType Ty, ExprValueKind VK,
 4545   DeclRefExpr *
 4552   DeclRefExpr *
tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
  248   PathDiagnosticPieceRef VisitTrueTest(const Expr *Cond, const DeclRefExpr *DR,
tools/clang/include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h
   64   bool VisitDeclRefExpr(const DeclRefExpr *Expr) {
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  230              isa<DeclRefExpr>(Expr) || isa<CXXNamedCastExpr>(Expr) ||
tools/clang/lib/ARCMigrate/TransARCAssign.cpp
   48     DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts());
   48     DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts());
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp
   56     if (DeclRefExpr *DE = dyn_cast<DeclRefExpr>(instance)) {
   56     if (DeclRefExpr *DE = dyn_cast<DeclRefExpr>(instance)) {
  188         if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(bop->getLHS())) {
  188         if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(bop->getLHS())) {
  262     bool VisitDeclRefExpr(DeclRefExpr *E) {
  308                isa<DeclRefExpr>(retS->getRetValue()->IgnoreParenCasts())) &&
  379       if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(rec))
  379       if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(rec))
tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp
   51       if (DeclRefExpr *
   52             ref = dyn_cast<DeclRefExpr>(castE->getSubExpr())) {
   65     bool VisitDeclRefExpr(DeclRefExpr *E) {
tools/clang/lib/ARCMigrate/TransGCCalls.cpp
   46     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) {
   46     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) {
tools/clang/lib/ARCMigrate/TransProtectedScope.cpp
   26   SmallVectorImpl<DeclRefExpr *> &Refs;
   29   LocalRefsCollector(SmallVectorImpl<DeclRefExpr *> &refs)
   32   bool VisitDeclRefExpr(DeclRefExpr *E) {
   99   SmallVector<DeclRefExpr *, 16> LocalRefs;
  182       DeclRefExpr *DRE = LocalRefs[i];
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp
  305     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
  305     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  452     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
  452     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
tools/clang/lib/ARCMigrate/TransZeroOutPropsInDealloc.cpp
   52     DeclRefExpr *refE = dyn_cast<DeclRefExpr>(receiver->IgnoreParenCasts());
   52     DeclRefExpr *refE = dyn_cast<DeclRefExpr>(receiver->IgnoreParenCasts());
tools/clang/lib/ARCMigrate/Transforms.cpp
  198   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
  198   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
  218   bool VisitDeclRefExpr(DeclRefExpr *E) { Refs.erase(E); return true; }
  229   bool VisitDeclRefExpr(DeclRefExpr *E) {
tools/clang/lib/AST/ASTContext.cpp
 4446     Expr *E = new (*this) DeclRefExpr(
tools/clang/lib/AST/ASTImporter.cpp
  549     ExpectedStmt VisitDeclRefExpr(DeclRefExpr *E);
 6250 ExpectedStmt ASTNodeImporter::VisitDeclRefExpr(DeclRefExpr *E) {
 6281   auto *ToE = DeclRefExpr::Create(
 6281   auto *ToE = DeclRefExpr::Create(
tools/clang/lib/AST/DeclCXX.cpp
 2110   if (const auto *DRE = dyn_cast<DeclRefExpr>(Base)) {
 2110   if (const auto *DRE = dyn_cast<DeclRefExpr>(Base)) {
 3008   auto *DRE = dyn_cast<DeclRefExpr>(B->IgnoreImplicit());
 3008   auto *DRE = dyn_cast<DeclRefExpr>(B->IgnoreImplicit());
tools/clang/lib/AST/DeclPrinter.cpp
 1110         if (auto E = dyn_cast<DeclRefExpr>(A.getAsExpr()))
 1615       NamedDecl *ND = cast<DeclRefExpr>(*I)->getDecl();
 1629       NamedDecl *ND = cast<DeclRefExpr>(*I)->getDecl();
tools/clang/lib/AST/Expr.cpp
  542 DeclRefExpr *DeclRefExpr::Create(const ASTContext &Context,
  556 DeclRefExpr *DeclRefExpr::Create(const ASTContext &Context,
  577   void *Mem = Context.Allocate(Size, alignof(DeclRefExpr));
  578   return new (Mem) DeclRefExpr(Context, QualifierLoc, TemplateKWLoc, D,
  583 DeclRefExpr *DeclRefExpr::CreateEmpty(const ASTContext &Context,
  594   void *Mem = Context.Allocate(Size, alignof(DeclRefExpr));
  595   return new (Mem) DeclRefExpr(EmptyShell());
 1456   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE))
 1456   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE))
 1476   const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr());
 1476   const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr());
 1621       if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
 1621       if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
 2672         const DeclRefExpr *DRE =
 2673             dyn_cast<DeclRefExpr>(CE->getSubExpr()->IgnoreParens());
 2754     const Decl *D = cast<DeclRefExpr>(E)->getDecl();
 3826   const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
 3826   const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
 3863   if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E)) {
 3863   if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E)) {
 3906   if (auto *DRE = dyn_cast<DeclRefExpr>(E))
 3917   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
 3917   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
 3941       const auto *DRE1 = cast<DeclRefExpr>(E1);
 3941       const auto *DRE1 = cast<DeclRefExpr>(E1);
 3942       const auto *DRE2 = cast<DeclRefExpr>(E2);
 3942       const auto *DRE2 = cast<DeclRefExpr>(E2);
 3965       const auto *DRE1 = dyn_cast<DeclRefExpr>(E1);
 3965       const auto *DRE1 = dyn_cast<DeclRefExpr>(E1);
 3966       const auto *DRE2 = dyn_cast<DeclRefExpr>(E2);
 3966       const auto *DRE2 = dyn_cast<DeclRefExpr>(E2);
 4018         if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
 4018         if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
 4662   if (auto *DRE = dyn_cast<DeclRefExpr>(Base))
tools/clang/lib/AST/ExprClassification.cpp
  226       return isa<FunctionDecl>(cast<DeclRefExpr>(E)->getDecl())
  228     return ClassifyDecl(Ctx, cast<DeclRefExpr>(E)->getDecl());
tools/clang/lib/AST/ExprConstant.cpp
 7323   bool VisitDeclRefExpr(const DeclRefExpr *E);
 7383 bool LValueExprEvaluator::VisitDeclRefExpr(const DeclRefExpr *E) {
 7401       isa<DeclRefExpr>(E) &&
 7402       cast<DeclRefExpr>(E)->refersToEnclosingVariableOrCapture()) {
 8101   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
 8101   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
 8743   return Success(cast<DeclRefExpr>(E->getSubExpr())->getDecl());
 9717   bool VisitDeclRefExpr(const DeclRefExpr *E) {
13963     if (isa<EnumConstantDecl>(cast<DeclRefExpr>(E)->getDecl()))
13965     const ValueDecl *D = cast<DeclRefExpr>(E)->getDecl();
13972         return ICEDiag(IK_NotICE, cast<DeclRefExpr>(E)->getLocation());
13979           return ICEDiag(IK_NotICE, cast<DeclRefExpr>(E)->getLocation());
13987           return ICEDiag(IK_NotICE, cast<DeclRefExpr>(E)->getLocation());
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp
  263       if (auto *DE = dyn_cast<DeclRefExpr>(LV)) {
tools/clang/lib/AST/ItaniumMangle.cpp
 3389   if (isa<DeclRefExpr>(E) ||
 4194     mangleDeclRefExpr(cast<DeclRefExpr>(E)->getDecl());
 4563     if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
 4563     if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
tools/clang/lib/AST/JSONNodeDumper.cpp
 1132 void JSONNodeDumper::VisitDeclRefExpr(const DeclRefExpr *DRE) {
tools/clang/lib/AST/NSAPI.cpp
  585   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
  585   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
tools/clang/lib/AST/OpenMPClause.cpp
 1360     if (auto *DRE = dyn_cast<DeclRefExpr>(*I)) {
 1360     if (auto *DRE = dyn_cast<DeclRefExpr>(*I)) {
tools/clang/lib/AST/StmtPrinter.cpp
  949 void StmtPrinter::VisitDeclRefExpr(DeclRefExpr *Node) {
  985   if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) {
  985   if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) {
 1786     const auto *DRE = cast<DeclRefExpr>(Node->getCallee()->IgnoreImpCasts());
 1786     const auto *DRE = cast<DeclRefExpr>(Node->getCallee()->IgnoreImpCasts());
tools/clang/lib/AST/StmtProfile.cpp
 1037 void StmtProfiler::VisitDeclRefExpr(const DeclRefExpr *S) {
tools/clang/lib/AST/TextNodeDumper.cpp
  715 void TextNodeDumper::VisitDeclRefExpr(const DeclRefExpr *Node) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  690 const internal::VariadicDynCastAllOfMatcher<Stmt, DeclRefExpr> declRefExpr;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h
   75     return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
   78   static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
   79     return Value.getMatcher().getTypedMatcher<T>();
   83     return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  361     RetTypes.push_back(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  466       ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
  469         DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
  778     ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/Analysis/AnalysisDeclContext.cpp
  598   void VisitDeclRefExpr(DeclRefExpr *DR) {
tools/clang/lib/Analysis/BodyFarm.cpp
   64   DeclRefExpr *makeDeclRefExpr(const VarDecl *D,
  138 DeclRefExpr *ASTMaker::makeDeclRefExpr(
  143   DeclRefExpr *DR = DeclRefExpr::Create(
  143   DeclRefExpr *DR = DeclRefExpr::Create(
  254   DeclRefExpr *Call = M.makeDeclRefExpr(Callback);
  284   DeclRefExpr *callOperatorDeclRef =
  285       DeclRefExpr::Create(/* Ctx =*/ C,
  440   DeclRefExpr *FlagDecl =
  579   DeclRefExpr *DR = M.makeDeclRefExpr(PV);
tools/clang/lib/Analysis/CFG.cpp
  103   if (auto *DR = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
  147   if (isa<DeclRefExpr>(E1) != isa<DeclRefExpr>(E2))
  147   if (isa<DeclRefExpr>(E1) != isa<DeclRefExpr>(E2))
  151   if (!isa<DeclRefExpr>(E1))
  157   auto *Decl1 = cast<DeclRefExpr>(E1)->getDecl();
  158   auto *Decl2 = cast<DeclRefExpr>(E2)->getDecl();
tools/clang/lib/Analysis/CloneDetection.cpp
  550   if (auto D = dyn_cast<DeclRefExpr>(S)) {
tools/clang/lib/Analysis/Consumed.cpp
  507   void VisitDeclRefExpr(const DeclRefExpr *DeclRef);
  832 void ConsumedStmtVisitor::VisitDeclRefExpr(const DeclRefExpr *DeclRef) {
tools/clang/lib/Analysis/LiveVariables.cpp
   83   llvm::DenseMap<const DeclRefExpr *, unsigned> inAssignment;
  214   void VisitDeclRefExpr(DeclRefExpr *DR);
  380     if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS)) {
  380     if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS)) {
  410 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) {
  436   DeclRefExpr *DR = nullptr;
  443   else if ((DR = dyn_cast<DeclRefExpr>(cast<Expr>(element)->IgnoreParens()))) {
  487   if (auto *DR = dyn_cast<DeclRefExpr>(UO->getSubExpr()->IgnoreParens())) {
  487   if (auto *DR = dyn_cast<DeclRefExpr>(UO->getSubExpr()->IgnoreParens())) {
  577               if (const auto *DR =
  578                     dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens())) {
tools/clang/lib/Analysis/ReachableCode.cpp
   34   const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex);
   34   const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex);
   61   if (const auto *DRE = dyn_cast<DeclRefExpr>(S))
   61   if (const auto *DRE = dyn_cast<DeclRefExpr>(S))
  219       return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP);
tools/clang/lib/Analysis/ThreadSafety.cpp
  634   if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSExp)) {
  634   if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSExp)) {
 1194   if (const auto *DR = dyn_cast<DeclRefExpr>(Exp))
 1194   if (const auto *DR = dyn_cast<DeclRefExpr>(Exp))
 1441   else if (const auto *DRE = dyn_cast<DeclRefExpr>(Cond)) {
 1441   else if (const auto *DRE = dyn_cast<DeclRefExpr>(Cond)) {
 1706   while (const auto *DRE = dyn_cast<DeclRefExpr>(Exp)) {
 1706   while (const auto *DRE = dyn_cast<DeclRefExpr>(Exp)) {
 1942     DeclRefExpr DRE(VD->getASTContext(), VD, false, VD->getType(), VK_LValue,
 2479           DeclRefExpr DRE(VD->getASTContext(), VD, false,
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp
  130     DeclRefExpr SelfDRE(SelfDecl->getASTContext(), SelfDecl, false,
  209     return translateDeclRefExpr(cast<DeclRefExpr>(S), Ctx);
  273 til::SExpr *SExprBuilder::translateDeclRefExpr(const DeclRefExpr *DRE,
  442       if (const auto *DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr())) {
  442       if (const auto *DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr())) {
  501   if (const auto *DRE = dyn_cast<DeclRefExpr>(LHS)) {
  501   if (const auto *DRE = dyn_cast<DeclRefExpr>(LHS)) {
  567     if (const auto *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) {
  567     if (const auto *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) {
tools/clang/lib/Analysis/UninitializedValues.cpp
  285   const DeclRefExpr *dr;
  288   FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {}
  290   const DeclRefExpr *getDeclRefExpr() const { return dr; }
  313   if (const auto *DRE =
  314           dyn_cast<DeclRefExpr>(stripCasts(DC->getParentASTContext(), E)))
  337   llvm::DenseMap<const DeclRefExpr *, Class> Classification;
  357   Class get(const DeclRefExpr *DRE) const {
  358     llvm::DenseMap<const DeclRefExpr*, Class>::const_iterator I
  373 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) {
  377     const auto *DRE =
  378         dyn_cast<DeclRefExpr>(stripCasts(VD->getASTContext(), Init));
  427   if (const DeclRefExpr *DRE = Var.getDeclRefExpr())
  435       if (const DeclRefExpr *DRE = getSelfInitExpr(VD))
  537   void VisitDeclRefExpr(DeclRefExpr *dr);
  764 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *dr) {
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGBlocks.cpp
 1075       DeclRefExpr declRef(getContext(), const_cast<VarDecl *>(variable),
 1149       DeclRefExpr declRef(getContext(), const_cast<VarDecl *>(variable),
tools/clang/lib/CodeGen/CGBuiltin.cpp
  580   if (auto *D = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts())) {
tools/clang/lib/CodeGen/CGCoroutine.cpp
  324   DeclRefExpr *Expr = nullptr;
  326   void VisitDeclRefExpr(DeclRefExpr *E) {
  360       DeclRefExpr *DREOrig = Visitor.Expr;
tools/clang/lib/CodeGen/CGDecl.cpp
  550       DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(&Var), false,
  568       DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(&Var), false,
  637     if (const DeclRefExpr *ref = dyn_cast<DeclRefExpr>(e))
  637     if (const DeclRefExpr *ref = dyn_cast<DeclRefExpr>(e))
tools/clang/lib/CodeGen/CGException.cpp
 1675   void VisitDeclRefExpr(const DeclRefExpr *E) {
tools/clang/lib/CodeGen/CGExpr.cpp
  893   auto *ArrayDeclRef = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts());
 1213   if (!isa<DeclRefExpr>(E) && !LV.isBitField() && LV.isSimple()) {
 1219       if (IsBaseCXXThis || isa<DeclRefExpr>(ME->getBase()))
 1275     return EmitDeclRefLValue(cast<DeclRefExpr>(E));
 1433 CodeGenFunction::tryEmitAsConstant(DeclRefExpr *refExpr) {
 1495 static DeclRefExpr *tryToConvertMemberExprToDeclRefExpr(CodeGenFunction &CGF,
 1499     return DeclRefExpr::Create(
 1509   if (DeclRefExpr *DRE = tryToConvertMemberExprToDeclRefExpr(*this, ME))
 2212   if (const auto *Exp = dyn_cast<DeclRefExpr>(E)) {
 2212   if (const auto *Exp = dyn_cast<DeclRefExpr>(E)) {
 2467                                                const DeclRefExpr *E,
 2514 LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) {
 3858   if (DeclRefExpr *DRE = tryToConvertMemberExprToDeclRefExpr(*this, E)) {
 3875     if (IsBaseCXXThis || isa<DeclRefExpr>(BaseExpr))
 4566   } else if (auto DRE = dyn_cast<DeclRefExpr>(E)) {
tools/clang/lib/CodeGen/CGExprAgg.cpp
  132   void VisitDeclRefExpr(DeclRefExpr *E) { EmitAggLoadOfLValue(E); }
 1079   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
 1079   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
tools/clang/lib/CodeGen/CGExprCXX.cpp
  328     if (IsImplicitObjectCXXThis || isa<DeclRefExpr>(IOA))
tools/clang/lib/CodeGen/CGExprComplex.cpp
  138   ComplexPairTy VisitDeclRefExpr(DeclRefExpr *E) {
tools/clang/lib/CodeGen/CGExprConstant.cpp
 2175   const ValueDecl *decl = cast<DeclRefExpr>(uo->getSubExpr())->getDecl();
tools/clang/lib/CodeGen/CGExprScalar.cpp
  267     if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) {
  267     if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) {
  504   Value *VisitDeclRefExpr(DeclRefExpr *E) {
tools/clang/lib/CodeGen/CGObjC.cpp
  317     const DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(ice->getSubExpr());
  317     const DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(ice->getSubExpr());
 1215   DeclRefExpr argRef(CGF.getContext(), argVar, false,
 1261   DeclRefExpr argRef(CGF.getContext(), argVar, false,
 1434   DeclRefExpr self(getContext(), selfDecl, false, selfDecl->getType(),
 1445   DeclRefExpr arg(getContext(), argDecl, false, argType, VK_LValue,
 1608   DeclRefExpr DRE(getContext(), Self,
 1796     DeclRefExpr tempDRE(getContext(), const_cast<VarDecl *>(D), false,
 2753   if (const auto *decl_expr = dyn_cast<DeclRefExpr>(e)) {
 2753   if (const auto *decl_expr = dyn_cast<DeclRefExpr>(e)) {
 2754     auto *DRE = const_cast<DeclRefExpr *>(decl_expr);
 3543   DeclRefExpr DstExpr(getContext(), &DstDecl, false, DestTy, VK_RValue,
 3548   DeclRefExpr SrcExpr(getContext(), &SrcDecl, false, SrcTy, VK_RValue,
 3626   DeclRefExpr SrcExpr(getContext(), &SrcDecl, false, SrcTy, VK_RValue,
 3652   DeclRefExpr DstExpr(getContext(), &DstDecl, false, DestTy, VK_RValue,
tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp
  135     if (auto DR = dyn_cast<DeclRefExpr>(E)) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  354       DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(VD),
  795       if (const auto *DRE =
  796               dyn_cast<DeclRefExpr>(OVE->getSourceExpr()->IgnoreImpCasts()))
  814     const auto *LHSDRE =
  815         cast<DeclRefExpr>(cast<UnaryOperator>(LHS)->getSubExpr());
  816     const auto *RHSDRE =
  817         cast<DeclRefExpr>(cast<UnaryOperator>(RHS)->getSubExpr());
  961       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
  997       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
 1036       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
 1057       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
 1085       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
 1094       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
 1152 static const VarDecl *getBaseDecl(const Expr *Ref, const DeclRefExpr *&DE) {
 1160     DE = cast<DeclRefExpr>(Base);
 1166     DE = cast<DeclRefExpr>(Base);
 1174   const DeclRefExpr *DE;
 1194       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Ref)->getDecl()));
 1410       cast<VarDecl>(cast<DeclRefExpr>(D->getCombinerIn())->getDecl()),
 1411       cast<VarDecl>(cast<DeclRefExpr>(D->getCombinerOut())->getDecl()),
 1419         cast<VarDecl>(cast<DeclRefExpr>(D->getInitOrig())->getDecl()),
 1420         cast<VarDecl>(cast<DeclRefExpr>(D->getInitPriv())->getDecl()),
 3326         cast<VarDecl>(cast<DeclRefExpr>(DestExprs[I])->getDecl());
 3330         cast<VarDecl>(cast<DeclRefExpr>(SrcExprs[I])->getDecl());
 3333     const auto *VD = cast<DeclRefExpr>(CopyprivateVars[I])->getDecl();
 4680     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4691     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4702     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4971     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4974         PrivateHelpersTy(VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
 4981     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4985             VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
 4986             cast<VarDecl>(cast<DeclRefExpr>(*IElemInitRef)->getDecl())));
 4992     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4995         PrivateHelpersTy(VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
 5405       cast<VarDecl>(cast<DeclRefExpr>(D.getLowerBoundVariable())->getDecl());
 5412       cast<VarDecl>(cast<DeclRefExpr>(D.getUpperBoundVariable())->getDecl());
 5419       cast<VarDecl>(cast<DeclRefExpr>(D.getStrideVariable())->getDecl());
 5544       if (const auto *DRE =
 5545               dyn_cast<DeclRefExpr>(OVE->getSourceExpr()->IgnoreImpCasts()))
 5600         cast<VarDecl>(cast<DeclRefExpr>(RHSExprs[I])->getDecl());
 5605         cast<VarDecl>(cast<DeclRefExpr>(LHSExprs[I])->getDecl());
 5630       const auto *LHSVar = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
 5631       const auto *RHSVar = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
 5653                                                   const DeclRefExpr *LHS,
 5654                                                   const DeclRefExpr *RHS) {
 5725       emitSingleReductionCombiner(CGF, E, *IPriv, cast<DeclRefExpr>(*ILHS),
 5726                                   cast<DeclRefExpr>(*IRHS));
 5828       RT.emitSingleReductionCombiner(CGF, E, *IPriv, cast<DeclRefExpr>(*ILHS),
 5829                                      cast<DeclRefExpr>(*IRHS));
 5888         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
 5916               cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
 5939               cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
 5941               cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
 5980   const clang::DeclRefExpr *DE;
 5983     D = cast<VarDecl>(cast<DeclRefExpr>(Ref)->getDecl());
 6076   const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(LHS)->getDecl());
 6077   const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(RHS)->getDecl());
 6131       CGF, ReductionOp, PrivateRef, cast<DeclRefExpr>(LHS),
 6132       cast<DeclRefExpr>(RHS));
 7865             cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl()), C->isImplicit());
 8840       cast<VarDecl>(cast<DeclRefExpr>(D->getMapperVarRef())->getDecl());
10692           const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10708           const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10730           const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10739             if (const auto *DRE =
10740                     cast<DeclRefExpr>((*SI)->IgnoreParenImpCasts())) {
11121       cast<DeclRefExpr>(TopMostAttr->getVariantFuncRef()->IgnoreParenImpCasts())
tools/clang/lib/CodeGen/CGOpenMPRuntime.h
 1299                                    const DeclRefExpr *LHS,
 1300                                    const DeclRefExpr *RHS);
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  222   if (const auto *DE = dyn_cast<DeclRefExpr>(RefExpr))
  222   if (const auto *DE = dyn_cast<DeclRefExpr>(RefExpr))
  408                   cast<DeclRefExpr>(E)->getDecl()->getCanonicalDecl();
  528   void VisitDeclRefExpr(const DeclRefExpr *E) {
 3684     const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl();
 3782     const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl();
 3885     const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl();
 3982     const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl();
 4355       PrivatesReductions[Cnt] = cast<DeclRefExpr>(DRE)->getDecl();
 4421       emitSingleReductionCombiner(CGF, E, *IPriv, cast<DeclRefExpr>(*ILHS),
 4422                                   cast<DeclRefExpr>(*IRHS));
 4803           cast<VarDecl>(cast<DeclRefExpr>(IT->getRef())->getDecl())
tools/clang/lib/CodeGen/CGStmt.cpp
 1790   const DeclRefExpr *AsmDeclRef = dyn_cast<DeclRefExpr>(&AsmExpr);
 1790   const DeclRefExpr *AsmDeclRef = dyn_cast<DeclRefExpr>(&AsmExpr);
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
   73         DeclRefExpr DRE(
  125       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
  133         const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl());
  207           const Decl *D = cast<DeclRefExpr>(E)->getDecl();
  217         CGF.EmitVarDecl(*cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()));
  226           DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(VD),
  250   if (const auto *OrigDRE = dyn_cast<DeclRefExpr>(E)) {
  250   if (const auto *OrigDRE = dyn_cast<DeclRefExpr>(E)) {
  257       DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), IsCaptured,
  749           cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl());
  762       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
  766       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
  790             cast<VarDecl>(cast<DeclRefExpr>(*InitsRef)->getDecl());
  792         DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD),
  883       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
  885         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
  914       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
  925           DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(VD), true,
  951             cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl());
  953             cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
  979           cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl());
  993       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
  998             cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
 1000           DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD),
 1010           const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
 1053           cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl())->getCanonicalDecl();
 1067           cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
 1077             cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl());
 1079             cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
 1134     const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*IPriv)->getDecl());
 1154     const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
 1155     const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
 1450       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(Init)->getDecl());
 1451       if (const auto *Ref =
 1452               dyn_cast<DeclRefExpr>(VD->getInit()->IgnoreImpCasts())) {
 1455         DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD),
 1470       if (const auto *SaveRef = cast<DeclRefExpr>(CS->getLHS())) {
 1470       if (const auto *SaveRef = cast<DeclRefExpr>(CS->getLHS())) {
 1499       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl());
 1500       DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD),
 1558     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 1559     const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl());
 1570         DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(VD),
 1589       const auto *DRE = cast<DeclRefExpr>(C->getLoopCounter(I));
 1589       const auto *DRE = cast<DeclRefExpr>(C->getLoopCounter(I));
 1624     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 1649           cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl());
 1655       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 1657           cast<VarDecl>(cast<DeclRefExpr>(*CurPrivate)->getDecl());
 1719     const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>((*IC))->getDecl());
 1720     const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>((*IPC))->getDecl());
 1738         DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(PrivateVD),
 1764                                const DeclRefExpr *Helper) {
 1784     (void)EmitOMPHelperVar(CGF, cast<DeclRefExpr>(S.getLowerBoundVariable()));
 1785     (void)EmitOMPHelperVar(CGF, cast<DeclRefExpr>(S.getUpperBoundVariable()));
 1807   const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl());
 1814   if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) {
 1814   if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) {
 2145       EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getLowerBoundVariable()));
 2147       EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getUpperBoundVariable()));
 2206       CGF.EmitLValue(cast<DeclRefExpr>(Dir.getCombinedLowerBoundVariable()));
 2211       CGF.EmitLValue(cast<DeclRefExpr>(Dir.getCombinedUpperBoundVariable()));
 2317   const auto *IVExpr = cast<DeclRefExpr>(S.getIterationVariable());
 2317   const auto *IVExpr = cast<DeclRefExpr>(S.getIterationVariable());
 2324   if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) {
 2324   if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) {
 2371         EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getStrideVariable()));
 2373         EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getIsLastIterVariable()));
 2539       EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getLowerBoundVariable()));
 2541       EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getUpperBoundVariable()));
 2913       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
 2927       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
 2938   llvm::DenseMap<const VarDecl *, const DeclRefExpr *> LastprivateDstsOrigs;
 2943       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
 2949           {cast<VarDecl>(cast<DeclRefExpr>(*ID)->getDecl()),
 2950            cast<DeclRefExpr>(*IRef)});
 2999         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 3006         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 3014         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 3025         DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(OrigVD),
 3138   auto *OrigRef = DeclRefExpr::Create(
 3138   auto *OrigRef = DeclRefExpr::Create(
 3143   auto *PrivateRef = DeclRefExpr::Create(
 3143   auto *PrivateRef = DeclRefExpr::Create(
 3149   auto *InitRef = DeclRefExpr::Create(
 3149   auto *InitRef = DeclRefExpr::Create(
 3237         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 3350       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 3377   const auto *IVExpr = cast<DeclRefExpr>(S.getIterationVariable());
 3377   const auto *IVExpr = cast<DeclRefExpr>(S.getIterationVariable());
 3384   if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) {
 3384   if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) {
 3419           *this, cast<DeclRefExpr>(
 3424           *this, cast<DeclRefExpr>(
 3429           EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getStrideVariable()));
 3431           EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getIsLastIterVariable()));
 4640     const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*OrigVarIt)->getDecl());
 4641     const auto *InitVD = cast<VarDecl>(cast<DeclRefExpr>(*InitIt)->getDecl());
 4642     const auto *PvtVD = cast<VarDecl>(cast<DeclRefExpr>(PvtVarIt)->getDecl());
 4956 static void mapParam(CodeGenFunction &CGF, const DeclRefExpr *Helper,
 5031     mapParam(CGF, cast<DeclRefExpr>(S.getLowerBoundVariable()), *LBP,
 5033     mapParam(CGF, cast<DeclRefExpr>(S.getUpperBoundVariable()), *UBP,
 5035     mapParam(CGF, cast<DeclRefExpr>(S.getStrideVariable()), *STP, LoopScope);
 5036     mapParam(CGF, cast<DeclRefExpr>(S.getIsLastIterVariable()), *LIP,
 5043     const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl());
 5050     if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) {
 5050     if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) {
 5183           const auto *VD = dyn_cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 5202                     cast<DeclRefExpr>(C->getLoopCounter(I))->getDecl())) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 2010 void CodeGenFunction::EmitDeclRefExprDbgValue(const DeclRefExpr *E,
tools/clang/lib/CodeGen/CodeGenFunction.h
 3500   LValue EmitDeclRefLValue(const DeclRefExpr *E);
 3557   ConstantEmission tryEmitAsConstant(DeclRefExpr *refExpr);
 3590   void   EmitDeclRefExprDbgValue(const DeclRefExpr *E, const APValue &Init);
tools/clang/lib/CodeGen/CodeGenModule.cpp
 2635     bool VisitDeclRefExpr(DeclRefExpr *E) {
 5750     auto *VD = cast<VarDecl>(cast<DeclRefExpr>(RefExpr)->getDecl());
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
  895       isa<DeclRefExpr>(Expr) ||
  917       isa<DeclRefExpr>(Expr) ||
  968   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
  968   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  134     SmallVector<DeclRefExpr *, 32> InnerDeclRefs;
  136     SmallVector<DeclRefExpr *, 32> BlockDeclRefs;
  390     Stmt *RewriteBlockDeclRefExpr(DeclRefExpr *VD);
  391     Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
  481                       const SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs);
  494                 SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs,
 1712     DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement());
 1712     DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement());
 2097   DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType,
 2097   DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType,
 2583   DeclRefExpr *DRE = new (Context)
 2584       DeclRefExpr(*Context, NewVD, false, strType, VK_LValue, SourceLocation());
 2671   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 2671   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 2714   DeclRefExpr *NSArrayDRE = new (Context) DeclRefExpr(
 2714   DeclRefExpr *NSArrayDRE = new (Context) DeclRefExpr(
 2792   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 2792   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 2835   DeclRefExpr *NSDictDRE = new (Context) DeclRefExpr(
 2835   DeclRefExpr *NSDictDRE = new (Context) DeclRefExpr(
 2943   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 2943   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 3170   DeclRefExpr *DRE = new (Context)
 3171       DeclRefExpr(*Context, FD, false, castType, VK_RValue, SourceLocation());
 3238                    new (Context) DeclRefExpr(*Context,
 3270       DeclRefExpr *DRE = new (Context)
 3271           DeclRefExpr(*Context, SuperConstructorFunctionDecl, false, superType,
 3334                    new (Context) DeclRefExpr(*Context,
 3365       DeclRefExpr *DRE = new (Context)
 3366           DeclRefExpr(*Context, SuperConstructorFunctionDecl, false, superType,
 3509   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 3509   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 3587   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 3587   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 4339       DeclRefExpr *Exp = InnerDeclRefs[count++];
 4467   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S))
 4467   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S))
 4475                 SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs,
 4489   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
 4489   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
 4554   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) {
 4554   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) {
 4662 Stmt *RewriteModernObjC::RewriteBlockDeclRefExpr(DeclRefExpr *DeclRefExp) {
 4698 Stmt *RewriteModernObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) {
 5196                      const SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs) {
 5207       DeclRefExpr *Exp = InnerBlockDeclRefs[i];
 5272   DeclRefExpr *DRE = new (Context)
 5273       DeclRefExpr(*Context, FD, false, FType, VK_RValue, SourceLocation());
 5279   DeclRefExpr *Arg = new (Context) DeclRefExpr(
 5279   DeclRefExpr *Arg = new (Context) DeclRefExpr(
 5292       new (Context) DeclRefExpr(*Context, NewVD, false, Context->VoidPtrTy,
 5307         Exp = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(),
 5318         Arg = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(),
 5324         Exp = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(),
 5353       Exp = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(),
 5460     SmallVector<DeclRefExpr *, 8> InnerBlockDeclRefs;
 5623   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
 5623   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
 7480       DeclRefExpr *DRE = new (Context)
 7481           DeclRefExpr(*Context, NewVD, false, Context->UnsignedLongTy,
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  125     SmallVector<DeclRefExpr *, 32> InnerDeclRefs;
  127     SmallVector<DeclRefExpr *, 32> BlockDeclRefs;
  318     Stmt *RewriteBlockDeclRefExpr(DeclRefExpr *VD);
  319     Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
  391             const SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs);
  405                 SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs,
 1503     DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement());
 1503     DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement());
 2012   DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType,
 2012   DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType,
 2508   DeclRefExpr *DRE = new (Context)
 2509       DeclRefExpr(*Context, NewVD, false, strType, VK_LValue, SourceLocation());
 2590   DeclRefExpr *STDRE =
 2591       new (Context) DeclRefExpr(*Context, MsgSendStretFlavor, false,
 2665                    new (Context) DeclRefExpr(*Context,
 2699       DeclRefExpr *DRE = new (Context)
 2700           DeclRefExpr(*Context, SuperConstructorFunctionDecl, false, superType,
 2760                    new (Context) DeclRefExpr(*Context,
 2794       DeclRefExpr *DRE = new (Context)
 2795           DeclRefExpr(*Context, SuperConstructorFunctionDecl, false, superType,
 2938   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 2938   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 3043   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 3043   DeclRefExpr *DRE = new (Context) DeclRefExpr(
 3552       DeclRefExpr *Exp = InnerDeclRefs[count++];
 3654   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S))
 3654   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S))
 3662                 SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs,
 3676   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
 3676   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
 3722   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) {
 3722   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) {
 3830 Stmt *RewriteObjC::RewriteBlockDeclRefExpr(DeclRefExpr *DeclRefExp) {
 3867 Stmt *RewriteObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) {
 4350                      const SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs) {
 4360       DeclRefExpr *Exp = InnerBlockDeclRefs[i];
 4410   DeclRefExpr *DRE = new (Context)
 4411       DeclRefExpr(*Context, FD, false, FType, VK_RValue, SourceLocation());
 4417   DeclRefExpr *Arg = new (Context) DeclRefExpr(
 4417   DeclRefExpr *Arg = new (Context) DeclRefExpr(
 4430       new (Context) DeclRefExpr(*Context, NewVD, false, Context->VoidPtrTy,
 4445         Exp = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(),
 4456         Arg = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(),
 4462         Exp = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(),
 4490       Exp = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(),
 4582     SmallVector<DeclRefExpr *, 8> InnerBlockDeclRefs;
 4725   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
 4725   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
tools/clang/lib/Index/IndexBody.cpp
  136   bool VisitDeclRefExpr(DeclRefExpr *E) {
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  198     if (const DeclRefExpr *DRE =
  199             dyn_cast<DeclRefExpr>(CE->getCallee()->IgnoreParenImpCasts())) {
  727   const DeclRefExpr *Needle;
  732   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
  743   void VisitDeclRefExpr(const DeclRefExpr *E) {
  985   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Use.getUser())) {
  985   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Use.getUser())) {
tools/clang/lib/Sema/ScopeInfo.cpp
   76     D = cast<DeclRefExpr>(E)->getDecl();
  139                                                       const DeclRefExpr *DRE)
  192   else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
  192   else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
  235     if (auto *DRE = dyn_cast<DeclRefExpr>(E)) {
  235     if (auto *DRE = dyn_cast<DeclRefExpr>(E)) {
tools/clang/lib/Sema/Sema.cpp
 1672       new (S.Context) DeclRefExpr(S.Context, VD, false, T, VK_LValue, Loc);
 1998   if (const DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E.IgnoreParens())) {
 1998   if (const DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E.IgnoreParens())) {
tools/clang/lib/Sema/SemaCUDA.cpp
   49   DeclRefExpr *ConfigDR = new (Context)
   50       DeclRefExpr(Context, ConfigDecl, false, ConfigQTy, VK_LValue, LLLLoc);
tools/clang/lib/Sema/SemaCast.cpp
 1898   auto *DRE = dyn_cast<DeclRefExpr>(Src);
 1898   auto *DRE = dyn_cast<DeclRefExpr>(Src);
tools/clang/lib/Sema/SemaChecking.cpp
  468     auto *DRE = cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
  468     auto *DRE = cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
  504       } else if (isa<DeclRefExpr>(BlockArg)) {
  505         ErrorLoc = cast<DeclRefExpr>(BlockArg)->getBeginLoc();
  763       getOpenCLArgAccess(cast<DeclRefExpr>(Arg0)->getDecl());
 1744   DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
 1744   DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
 4516   DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
 4516   DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
 5027   DeclRefExpr *DRE = cast<DeclRefExpr>(Callee->IgnoreParenCasts());
 5027   DeclRefExpr *DRE = cast<DeclRefExpr>(Callee->IgnoreParenCasts());
 5365   DeclRefExpr *NewDRE = DeclRefExpr::Create(
 5365   DeclRefExpr *NewDRE = DeclRefExpr::Create(
 5393   DeclRefExpr *DRE =
 5394       cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
 5633   if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Arg)) {
 5633   if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Arg)) {
 6181   DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
 6181   DeclRefExpr *DRE =cast<DeclRefExpr>(TheCall->getCallee()->IgnoreParenCasts());
 6885     const DeclRefExpr *DR = cast<DeclRefExpr>(E);
 6885     const DeclRefExpr *DR = cast<DeclRefExpr>(E);
 9840   const DeclRefExpr *SrcArgDRE = dyn_cast<DeclRefExpr>(SrcArg);
 9840   const DeclRefExpr *SrcArgDRE = dyn_cast<DeclRefExpr>(SrcArg);
 9844   const DeclRefExpr *CompareWithSrcDRE = dyn_cast<DeclRefExpr>(CompareWithSrc);
 9844   const DeclRefExpr *CompareWithSrcDRE = dyn_cast<DeclRefExpr>(CompareWithSrc);
 9874   if (const DeclRefExpr *D1 = dyn_cast_or_null<DeclRefExpr>(E1))
 9874   if (const DeclRefExpr *D1 = dyn_cast_or_null<DeclRefExpr>(E1))
 9875     if (const DeclRefExpr *D2 = dyn_cast_or_null<DeclRefExpr>(E2))
 9875     if (const DeclRefExpr *D2 = dyn_cast_or_null<DeclRefExpr>(E2))
10017   if (DeclRefExpr* DRL = dyn_cast<DeclRefExpr>(LeftExprSansParen))
10017   if (DeclRefExpr* DRL = dyn_cast<DeclRefExpr>(LeftExprSansParen))
10018     if (DeclRefExpr* DRR = dyn_cast<DeclRefExpr>(RightExprSansParen))
10018     if (DeclRefExpr* DRR = dyn_cast<DeclRefExpr>(RightExprSansParen))
10481   if (const DeclRefExpr *DR =
10482       dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
10722   if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Constant))
10722   if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Constant))
11953     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
11953     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
12176   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
12176   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
12290   if (DeclRefExpr *R = dyn_cast<DeclRefExpr>(E)) {
12290   if (DeclRefExpr *R = dyn_cast<DeclRefExpr>(E)) {
12667     } else if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
12667     } else if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
13123   if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
13123   if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
13264   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BaseExpr))
13264   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BaseExpr))
13357     if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BaseExpr))
13357     if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BaseExpr))
13494     if (DeclRefExpr *ref = dyn_cast<DeclRefExpr>(e)) {
13494     if (DeclRefExpr *ref = dyn_cast<DeclRefExpr>(e)) {
13554     void VisitDeclRefExpr(DeclRefExpr *ref) {
13582       if (const DeclRefExpr *DRE = dyn_cast_or_null<DeclRefExpr>(LHS)) {
13582       if (const DeclRefExpr *DRE = dyn_cast_or_null<DeclRefExpr>(LHS)) {
13789     if (DeclRefExpr *ArgRE = dyn_cast<DeclRefExpr>(Arg)) {
13789     if (DeclRefExpr *ArgRE = dyn_cast<DeclRefExpr>(Arg)) {
13803     if (DeclRefExpr *ReceiverRE = dyn_cast<DeclRefExpr>(Receiver)) {
13803     if (DeclRefExpr *ReceiverRE = dyn_cast<DeclRefExpr>(Receiver)) {
13804       if (DeclRefExpr *ArgRE = dyn_cast<DeclRefExpr>(Arg)) {
13804       if (DeclRefExpr *ArgRE = dyn_cast<DeclRefExpr>(Arg)) {
14153   const DeclRefExpr *LHSDeclRef = dyn_cast<DeclRefExpr>(LHSExpr);
14153   const DeclRefExpr *LHSDeclRef = dyn_cast<DeclRefExpr>(LHSExpr);
14154   const DeclRefExpr *RHSDeclRef = dyn_cast<DeclRefExpr>(RHSExpr);
14154   const DeclRefExpr *RHSDeclRef = dyn_cast<DeclRefExpr>(RHSExpr);
14192   LHSDeclRef = dyn_cast<DeclRefExpr>(LHSBase);
14193   RHSDeclRef = dyn_cast<DeclRefExpr>(RHSBase);
14399       const DeclRefExpr *DRE = cast<DeclRefExpr>(TypeExpr);
14399       const DeclRefExpr *DRE = cast<DeclRefExpr>(TypeExpr);
14711   const auto *DRE = dyn_cast<DeclRefExpr>(TopBase);
14711   const auto *DRE = dyn_cast<DeclRefExpr>(TopBase);
tools/clang/lib/Sema/SemaCodeComplete.cpp
 4996     if (auto *DRE = dyn_cast<DeclRefExpr>(CaseVal))
 4996     if (auto *DRE = dyn_cast<DeclRefExpr>(CaseVal))
 5148     else if (auto *DRE = dyn_cast<DeclRefExpr>(NakedFn))
 5148     else if (auto *DRE = dyn_cast<DeclRefExpr>(NakedFn))
tools/clang/lib/Sema/SemaCoroutine.cpp
 1054   if (auto *DeclRef = dyn_cast_or_null<DeclRefExpr>(E)) {
 1054   if (auto *DeclRef = dyn_cast_or_null<DeclRefExpr>(E)) {
tools/clang/lib/Sema/SemaDecl.cpp
 7400   auto *DRE = dyn_cast<DeclRefExpr>(E);
 7400   auto *DRE = dyn_cast<DeclRefExpr>(E);
10837       DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base);
10837       DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base);
10874       if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(E)) {
10874       if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(E)) {
10920         if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base))
10920         if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base))
10930     void VisitDeclRefExpr(DeclRefExpr *E) {
10964       if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base)) {
10964       if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base)) {
11048     void HandleDeclRefExpr(DeclRefExpr *DRE) {
11087           if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()))
11087           if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()))
17193   DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InitExpr);
17193   DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InitExpr);
tools/clang/lib/Sema/SemaDeclAttr.cpp
  684         if (const auto *DRE = dyn_cast<DeclRefExpr>(UOp->getSubExpr()))
  684         if (const auto *DRE = dyn_cast<DeclRefExpr>(UOp->getSubExpr()))
 1035   bool VisitDeclRefExpr(DeclRefExpr *DRE) {
 3033   if (auto *DRE = dyn_cast<DeclRefExpr>(E)) {
 3033   if (auto *DRE = dyn_cast<DeclRefExpr>(E)) {
 8173   bool VisitDeclRefExpr(DeclRefExpr *DRE) {
 8264   bool VisitDeclRefExpr(DeclRefExpr *DRE) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
   69     bool VisitDeclRefExpr(DeclRefExpr *DRE);
   86   bool CheckDefaultArgumentVisitor::VisitDeclRefExpr(DeclRefExpr *DRE) {
 4534       DeclRefExpr::Create(SemaRef.Context, NestedNameSpecifierLoc(),
 4539     SemaRef.MarkDeclRefReferenced(cast<DeclRefExpr>(CopyCtorArg));
 4608       DeclRefExpr::Create(SemaRef.Context, NestedNameSpecifierLoc(),
 4612     SemaRef.MarkDeclRefReferenced(cast<DeclRefExpr>(MemberExprBase));
tools/clang/lib/Sema/SemaExpr.cpp
  452     if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
  452     if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
 1770 DeclRefExpr *
 1778 DeclRefExpr *
 1813 DeclRefExpr *
 1823   DeclRefExpr *E = DeclRefExpr::Create(
 1823   DeclRefExpr *E = DeclRefExpr::Create(
 3883     if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E->IgnoreParens())) {
 3883     if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E->IgnoreParens())) {
 3986   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Inner)) {
 3986   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Inner)) {
 5712   if (auto *DRE = dyn_cast<DeclRefExpr>(NakedFn)) {
 5712   if (auto *DRE = dyn_cast<DeclRefExpr>(NakedFn)) {
 5723         Fn = DeclRefExpr::Create(
 9231     if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSArg)) {
 9231     if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSArg)) {
 9245     if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSArg)) {
 9245     if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSArg)) {
10298   if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) {
10298   if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) {
11347     if (const auto *DREHS = dyn_cast<DeclRefExpr>(HS.get())) {
11347     if (const auto *DREHS = dyn_cast<DeclRefExpr>(HS.get())) {
11460   DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
11460   DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
11596   } else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
11596   } else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
11690   else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
11690   else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
11732       DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts());
11732       DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts());
11867     DeclRefExpr *RL = dyn_cast<DeclRefExpr>(OL->getBase()->IgnoreImpCasts());
11867     DeclRefExpr *RL = dyn_cast<DeclRefExpr>(OL->getBase()->IgnoreImpCasts());
11868     DeclRefExpr *RR = dyn_cast<DeclRefExpr>(OR->getBase()->IgnoreImpCasts());
11868     DeclRefExpr *RR = dyn_cast<DeclRefExpr>(OR->getBase()->IgnoreImpCasts());
11946         const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InnerLHS);
11946         const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InnerLHS);
12219     return cast<DeclRefExpr>(E)->getDecl();
12334     auto* VarRef = dyn_cast<DeclRefExpr>(op);
12334     auto* VarRef = dyn_cast<DeclRefExpr>(op);
12379     if (!isa<DeclRefExpr>(op)) {
12384     DeclRefExpr *DRE = cast<DeclRefExpr>(op);
12384     DeclRefExpr *DRE = cast<DeclRefExpr>(op);
12453       if (isa<DeclRefExpr>(op) && cast<DeclRefExpr>(op)->getQualifier()) {
12453       if (isa<DeclRefExpr>(op) && cast<DeclRefExpr>(op)->getQualifier()) {
12502   const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp);
12502   const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp);
12654   const DeclRefExpr *LHSDeclRef = dyn_cast<DeclRefExpr>(LHSExpr);
12654   const DeclRefExpr *LHSDeclRef = dyn_cast<DeclRefExpr>(LHSExpr);
12655   const DeclRefExpr *RHSDeclRef = dyn_cast<DeclRefExpr>(RHSExpr);
12655   const DeclRefExpr *RHSDeclRef = dyn_cast<DeclRefExpr>(RHSExpr);
12724   if (auto *DRE = dyn_cast<DeclRefExpr>(E))
12724   if (auto *DRE = dyn_cast<DeclRefExpr>(E))
12893         if (auto *DRE = dyn_cast<DeclRefExpr>(LHS.get()->IgnoreParens()))
12893         if (auto *DRE = dyn_cast<DeclRefExpr>(LHS.get()->IgnoreParens()))
13675   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
13675   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
14618   auto *DRE = dyn_cast<DeclRefExpr>(SrcExpr->IgnoreParenImpCasts());
15090 const DeclRefExpr *CheckPossibleDeref(Sema &S, const Expr *PossibleDeref) {
15099   } else if (const auto E = dyn_cast<DeclRefExpr>(PossibleDeref)) {
15119     const DeclRefExpr *DeclRef = CheckPossibleDeref(*this, E);
16285   CopiedTemplateArgs(RefExpr *E) : HasArgs(E->hasExplicitTemplateArgs()) {
16386     auto *DRE = cast<DeclRefExpr>(E);
16386     auto *DRE = cast<DeclRefExpr>(E);
16392     return DeclRefExpr::Create(
16667     if (auto *DRE = dyn_cast<DeclRefExpr>(E)) {
16667     if (auto *DRE = dyn_cast<DeclRefExpr>(E)) {
16797   if (DeclRefExpr *DRE = dyn_cast_or_null<DeclRefExpr>(E))
16797   if (DeclRefExpr *DRE = dyn_cast_or_null<DeclRefExpr>(E))
16899 void Sema::MarkDeclRefReferenced(DeclRefExpr *E, const Expr *Base) {
17011     void VisitDeclRefExpr(DeclRefExpr *E) {
17703       DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
17703       DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
17827   if (DeclRefExpr *ref = dyn_cast<DeclRefExpr>(E)) {
17827   if (DeclRefExpr *ref = dyn_cast<DeclRefExpr>(E)) {
17927     auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts());
17927     auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts());
tools/clang/lib/Sema/SemaExprCXX.cpp
  735     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Ex->IgnoreParens()))
  735     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Ex->IgnoreParens()))
 3029   bool hasMatchingVarInit(const DeclRefExpr *D);
 3056   } else if (const DeclRefExpr *D = dyn_cast<const DeclRefExpr>(E)) {
 3056   } else if (const DeclRefExpr *D = dyn_cast<const DeclRefExpr>(E)) {
 3146 bool MismatchingNewDeleteDetector::hasMatchingVarInit(const DeclRefExpr *D) {
 7284   if (isa<DeclRefExpr>(E))
 7680     if (auto *DRE = dyn_cast<DeclRefExpr>(E))
 7680     if (auto *DRE = dyn_cast<DeclRefExpr>(E))
tools/clang/lib/Sema/SemaExprMember.cpp
 1442       if (DeclRefExpr *DE = dyn_cast<DeclRefExpr>(BaseExp))
 1442       if (DeclRefExpr *DE = dyn_cast<DeclRefExpr>(BaseExp))
tools/clang/lib/Sema/SemaExprObjC.cpp
 1393                 cast<DeclRefExpr>(Receiver->IgnoreParenImpCasts())->getDecl())
 1770   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(receiver))
 1770   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(receiver))
 3425     ACCResult VisitDeclRefExpr(DeclRefExpr *e) {
tools/clang/lib/Sema/SemaFixItUtils.cpp
   70       isa<DeclRefExpr>(Expr) ||
tools/clang/lib/Sema/SemaInit.cpp
 5352   } else if (isa<DeclRefExpr>(e)) {
 5360     VarDecl *var = dyn_cast<VarDecl>(cast<DeclRefExpr>(e)->getDecl());
 5543   auto *DRE = dyn_cast<DeclRefExpr>(E);
 6963     auto *DRE = cast<DeclRefExpr>(Init);
 6963     auto *DRE = cast<DeclRefExpr>(Init);
 7060           if (auto *DRE = dyn_cast<DeclRefExpr>(L)) {
 7060           if (auto *DRE = dyn_cast<DeclRefExpr>(L)) {
 7339       if (isa<DeclRefExpr>(L)) {
 7462         auto *DRE = dyn_cast<DeclRefExpr>(L);
 7462         auto *DRE = dyn_cast<DeclRefExpr>(L);
 7501       if (auto *DRE = dyn_cast<DeclRefExpr>(L)) {
 7501       if (auto *DRE = dyn_cast<DeclRefExpr>(L)) {
 7613     const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg->IgnoreParenImpCasts());
 7613     const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg->IgnoreParenImpCasts());
 7989         if (auto *DRE = dyn_cast<DeclRefExpr>(CurInit.get()->IgnoreParens())) {
 7989         if (auto *DRE = dyn_cast<DeclRefExpr>(CurInit.get()->IgnoreParens())) {
 8493         } else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Init)) {
 8493         } else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Init)) {
 8788     auto *FD = cast<FunctionDecl>(cast<DeclRefExpr>(OnlyArg)->getDecl());
tools/clang/lib/Sema/SemaLambda.cpp
  579   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
  579   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
tools/clang/lib/Sema/SemaObjCProperty.cpp
 1414       DeclRefExpr *SelfExpr = new (Context)
 1415           DeclRefExpr(Context, SelfDecl, false, SelfDecl->getType(), VK_LValue,
 1466       DeclRefExpr *SelfExpr = new (Context)
 1467           DeclRefExpr(Context, SelfDecl, false, SelfDecl->getType(), VK_LValue,
 1483       DeclRefExpr *rhs = new (Context)
 1484           DeclRefExpr(Context, Param, false, T, VK_LValue, PropertyDiagLoc);
tools/clang/lib/Sema/SemaOpenMP.cpp
   65     DeclRefExpr *PrivateCopy = nullptr;
   69                const Expr *RefExpr, DeclRefExpr *PrivateCopy,
   85     DeclRefExpr *PrivateCopy = nullptr;
  154     llvm::SmallVector<DeclRefExpr *, 4> DeclareTargetLinkVarDecls;
  438               DeclRefExpr *PrivateCopy = nullptr);
  471            cast<DeclRefExpr>(getStackElemAtLevel(Level).TaskgroupReductionRef)
  828   void addToParentTargetRegionLinkGlobals(DeclRefExpr *E) {
  842   ArrayRef<DeclRefExpr *> getLinkGlobals() const {
 1068                         DeclRefExpr *PrivateCopy) {
 1102                              DeclRefExpr *OrigRef = nullptr) {
 1121 static DeclRefExpr *buildDeclRefExpr(Sema &S, VarDecl *D, QualType Ty,
 1126   return DeclRefExpr::Create(S.getASTContext(), NestedNameSpecifierLoc(),
 1811           if (isa<DeclRefExpr>(EI->getAssociatedExpression()))
 2164           auto *DRE = cast<DeclRefExpr>(DE->IgnoreParens());
 2164           auto *DRE = cast<DeclRefExpr>(DE->IgnoreParens());
 2204 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV,
 2376   return DeclRefExpr::Create(Context, NestedNameSpecifierLoc(),
 2398   bool VisitDeclRefExpr(const DeclRefExpr *E) {
 2426     auto *DE = cast<DeclRefExpr>(RefExpr);
 2426     auto *DE = cast<DeclRefExpr>(RefExpr);
 2616     auto *DE = cast<DeclRefExpr>(RefExpr);
 2616     auto *DE = cast<DeclRefExpr>(RefExpr);
 2785   void VisitDeclRefExpr(DeclRefExpr *E) {
 3065       DeclRefExpr *DRE = buildDeclRefExpr(
 3084       for (DeclRefExpr *E : Stack->getLinkGlobals())
 3533 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr,
 4109   auto *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr);
 4109   auto *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr);
 4193                              cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()));
 4752     if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
 4752     if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
 4779     if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
 4779     if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
 4849     if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
 4849     if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
 4918     if (const auto *DRE = dyn_cast<DeclRefExpr>(Step))
 4918     if (const auto *DRE = dyn_cast<DeclRefExpr>(Step))
 5082   auto *DRE = dyn_cast<DeclRefExpr>(ER.get()->IgnoreParenImpCasts());
 5082   auto *DRE = dyn_cast<DeclRefExpr>(ER.get()->IgnoreParenImpCasts());
 5207       auto *DRE = dyn_cast<DeclRefExpr>(VariantRef->IgnoreParenImpCasts());
 5207       auto *DRE = dyn_cast<DeclRefExpr>(VariantRef->IgnoreParenImpCasts());
 5370       llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
 5374                llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
 5376   DeclRefExpr *
 5377   buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
 5390                        llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
 5395       Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
 5591   bool VisitDeclRefExpr(const DeclRefExpr *E) {
 5665       if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) {
 5665       if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) {
 5700       if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) {
 5700       if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) {
 5737   if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(E)) {
 5737   if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(E)) {
 5938   DeclRefExpr *Ref = nullptr;
 5947     llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const {
 6204     Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const {
 6326     llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const {
 6364 DeclRefExpr *OpenMPIterationSpaceChecker::buildCounterVar(
 6365     llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
 6370     DeclRefExpr *Ref = buildDeclRefExpr(
 6380   return cast<DeclRefExpr>(LCRef);
 6407     llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, SourceLocation Loc,
 6476         DeclRefExpr *PrivateRef = nullptr;
 6556     llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) {
 6863               const llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) {
 6938   llvm::MapVector<const Expr *, DeclRefExpr *> Captures;
 6970       auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar);
 6970       auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar);
 7492       auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl());
 7493       DeclRefExpr *CounterVar = buildDeclRefExpr(
 7668         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 7707         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 7743         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 7945         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 7986         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 8987         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 9309         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 9394         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 9585         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 9641         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 9697         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 9752         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 9856         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
 9918         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
10101         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
10158         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
10215         if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef),
10995       llvm::MapVector<const Expr *, DeclRefExpr *> Captures;
11026       llvm::MapVector<const Expr *, DeclRefExpr *> Captures;
11112       llvm::MapVector<const Expr *, DeclRefExpr *> Captures;
11138     llvm::MapVector<const Expr *, DeclRefExpr *> Captures;
11670         llvm::MapVector<const Expr *, DeclRefExpr *> Captures;
12124                      VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr);
12128     DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr(
12131     DeclRefExpr *Ref = nullptr;
12374                      VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr);
12420     DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr(
12423     DeclRefExpr *Ref = nullptr;
12551     DeclRefExpr *PseudoSrcExpr =
12556     DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc);
12568     DeclRefExpr *Ref = nullptr;
12646     DeclRefExpr *Ref = nullptr;
12666   bool VisitDeclRefExpr(DeclRefExpr *E) {
12697   DeclRefExpr *CapturedExpr = nullptr;
12711   DeclRefExpr *getCapturedExpr() { return CapturedExpr; }
13395                      VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr);
13398     DeclRefExpr *LHSDRE = buildDeclRefExpr(S, LHSVD, Type, ELoc);
13399     DeclRefExpr *RHSDRE = buildDeclRefExpr(S, RHSVD, Type, ELoc);
13401       auto *DRDRef = DeclareReductionRef.getAs<DeclRefExpr>();
13401       auto *DRDRef = DeclareReductionRef.getAs<DeclRefExpr>();
13531     DeclRefExpr *PrivateDRE = buildDeclRefExpr(S, PrivateVD, PrivateTy, ELoc);
13633     DeclRefExpr *Ref = nullptr;
13844                      VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr);
13845     DeclRefExpr *PrivateRef = buildDeclRefExpr(*this, Private, Type, ELoc);
13849     DeclRefExpr *Ref = nullptr;
13874     DeclRefExpr *InitRef = buildDeclRefExpr(*this, Init, Type, ELoc);
13928 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV,
13975     auto *DE = cast<DeclRefExpr>(SimpleRefExpr);
13975     auto *DE = cast<DeclRefExpr>(SimpleRefExpr);
14079     DeclRefExpr *Ref = nullptr;
14130     auto *DE = dyn_cast<DeclRefExpr>(RefExpr);
14130     auto *DE = dyn_cast<DeclRefExpr>(RefExpr);
14167     DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr(
14172     DeclRefExpr *PseudoDstExpr =
14281     DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr(*this, SrcVD, Type, ELoc);
14285     DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc);
14506     llvm::MapVector<const Expr *, DeclRefExpr *> Captures;
14676     if (auto *CurE = dyn_cast<DeclRefExpr>(E)) {
14676     if (auto *CurE = dyn_cast<DeclRefExpr>(E)) {
15958     llvm::MapVector<const Expr *, DeclRefExpr *> Captures;
15985     llvm::MapVector<const Expr *, DeclRefExpr *> Captures;
16111         llvm::MapVector<const Expr *, DeclRefExpr *> Captures;
16422                      VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr);
16427     DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr(
16433     DeclRefExpr *VDInitRefExpr = buildDeclRefExpr(
16441     DeclRefExpr *Ref = nullptr;
16538         isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr);
16597     DeclRefExpr *Ref = nullptr;
tools/clang/lib/Sema/SemaOverload.cpp
   65   DeclRefExpr *DRE = new (S.Context)
   66       DeclRefExpr(S.Context, Fn, false, Fn->getType(), VK_LValue, Loc, LocInfo);
 1753     if (auto *DRE = dyn_cast<DeclRefExpr>(From->IgnoreParenCasts()))
 1753     if (auto *DRE = dyn_cast<DeclRefExpr>(From->IgnoreParenCasts()))
 7136   DeclRefExpr ConversionRef(Context, Conversion, false, Conversion->getType(),
12417       if (auto *DRE = dyn_cast<DeclRefExpr>(Arg->IgnoreParenImpCasts())) {
14249     DeclRefExpr *DRE =
14271         DeclRefExpr *DRE = BuildDeclRefExpr(
tools/clang/lib/Sema/SemaStmt.cpp
  797   if (const DeclRefExpr *DRE =
  798           dyn_cast<DeclRefExpr>(CaseExpr->IgnoreParenImpCasts())) {
  993           if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(PrevCase)) {
  993           if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(PrevCase)) {
  996           if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(CurrCase)) {
  996           if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(CurrCase)) {
 1434     void VisitDeclRefExpr(DeclRefExpr *E) {
 1487       if (isa<DeclRefExpr>(E)) {
 1508     void VisitDeclRefExpr(DeclRefExpr *E) {
 1579                             DeclRefExpr *&DRE) {
 1596       DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr());
 1612       DRE = dyn_cast<DeclRefExpr>(Call->getArg(0));
 1724     DeclRefExpr *LoopDRE, *LastDRE;
 2541         if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Range)) {
 2541         if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Range)) {
 2969   DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E->IgnoreParens());
 2969   DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E->IgnoreParens());
tools/clang/lib/Sema/SemaStmtAsm.cpp
  143     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
  143     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
  194   if (const DeclRefExpr *AsmDeclRef = dyn_cast<DeclRefExpr>(Expression)) {
  194   if (const DeclRefExpr *AsmDeclRef = dyn_cast<DeclRefExpr>(Expression)) {
tools/clang/lib/Sema/SemaTemplate.cpp
  580   if (auto *DRE = dyn_cast<DeclRefExpr>(TemplateName.get())) {
  580   if (auto *DRE = dyn_cast<DeclRefExpr>(TemplateName.get())) {
 2525   bool VisitDeclRefExpr(DeclRefExpr *E) {
 3129     const auto *DR = dyn_cast<DeclRefExpr>(E);
 3129     const auto *DR = dyn_cast<DeclRefExpr>(E);
 3667     DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr());
 3667     DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr());
 4513     if (DeclRefExpr *ArgExpr = dyn_cast<DeclRefExpr>(Arg.getAsExpr())) {
 4513     if (DeclRefExpr *ArgExpr = dyn_cast<DeclRefExpr>(Arg.getAsExpr())) {
 6013   DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg);
 6013   DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg);
 6219   DeclRefExpr *DRE = nullptr;
 6244       DRE = dyn_cast<DeclRefExpr>(UnOp->getSubExpr());
 6250   else if ((DRE = dyn_cast<DeclRefExpr>(Arg))) {
 7585     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ArgExpr))
 7585     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ArgExpr))
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
  189   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
  189   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
 5283   const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
 5283   const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  281     if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
  281     if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
  362     if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
  362     if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
 3082         cast<DeclRefExpr>(D->getCombinerIn())->getDecl(),
 3083         cast<DeclRefExpr>(NewDRD->getCombinerIn())->getDecl());
 3085         cast<DeclRefExpr>(D->getCombinerOut())->getDecl(),
 3086         cast<DeclRefExpr>(NewDRD->getCombinerOut())->getDecl());
 3098           cast<DeclRefExpr>(D->getInitOrig())->getDecl(),
 3099           cast<DeclRefExpr>(NewDRD->getInitOrig())->getDecl());
 3101           cast<DeclRefExpr>(D->getInitPriv())->getDecl(),
 3102           cast<DeclRefExpr>(NewDRD->getInitPriv())->getDecl());
 3175         cast<DeclRefExpr>(D->getMapperVarRef())->getDecl(),
 3176         cast<DeclRefExpr>(NewDMD->getMapperVarRef())->getDecl());
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
   93     bool VisitDeclRefExpr(DeclRefExpr *E) {
tools/clang/lib/Sema/SemaType.cpp
 7731   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParens())) {
 7731   if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParens())) {
 8327   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
 8327   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
 8353       if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParens())) {
 8353       if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParens())) {
tools/clang/lib/Sema/TreeTransform.h
 3235         DeclRefExpr(SemaRef.Context, Builtin, false,
 9810     auto *Callee = dyn_cast<DeclRefExpr>(Op->getCallee()->IgnoreImplicit());
 9810     auto *Callee = dyn_cast<DeclRefExpr>(Op->getCallee()->IgnoreImplicit());
13265     NamedDecl *ND = cast<DeclRefExpr>(Callee)->getDecl();
13287     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Callee)) {
13287     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Callee)) {
tools/clang/lib/Serialization/ASTReaderStmt.cpp
  561 void ASTStmtReader::VisitDeclRefExpr(DeclRefExpr *E) {
 2609       S = DeclRefExpr::CreateEmpty(
tools/clang/lib/Serialization/ASTWriterStmt.cpp
  479 void ASTStmtWriter::VisitDeclRefExpr(DeclRefExpr *E) {
tools/clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp
   39     if (const auto *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts()))
   39     if (const auto *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts()))
   40       if (const auto *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts()))
   40       if (const auto *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts()))
   73     if (const auto *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
   73     if (const auto *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
  159   const auto *DstArgDRE = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts());
  159   const auto *DstArgDRE = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts());
  160   const auto *LenArgDRE =
  161       dyn_cast<DeclRefExpr>(LenArg->IgnoreParenLValueCasts());
  190         DstArgDRE = dyn_cast<DeclRefExpr>(BE->getLHS()->IgnoreParenImpCasts());
tools/clang/lib/StaticAnalyzer/Checkers/CastToStructChecker.cpp
   79     if (const auto *SE = dyn_cast<DeclRefExpr>(U->getSubExpr()))
   79     if (const auto *SE = dyn_cast<DeclRefExpr>(U->getSubExpr()))
tools/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp
  120         if (const auto *DRE = dyn_cast<DeclRefExpr>(Object)) {
  120         if (const auto *DRE = dyn_cast<DeclRefExpr>(Object)) {
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
  209 static const DeclRefExpr*
  218     if (const DeclRefExpr *lhs = getIncrementedVar(B->getLHS(), x, y))
  221     if (const DeclRefExpr *rhs = getIncrementedVar(B->getRHS(), x, y))
  227   if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(expr)) {
  227   if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(expr)) {
  274   const DeclRefExpr *drLHS =
  275     dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParenLValueCasts());
  276   const DeclRefExpr *drRHS =
  277     dyn_cast<DeclRefExpr>(B->getRHS()->IgnoreParenLValueCasts());
  293   const DeclRefExpr *drInc = getIncrementedVar(increment, vdLHS, vdRHS);
  302   const DeclRefExpr *drCond = vdLHS == vdInc ? drLHS : drRHS;
tools/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp
   61     if (!isa<DeclRefExpr>(ArgEx->IgnoreParens()))
tools/clang/lib/StaticAnalyzer/Checkers/ConversionChecker.cpp
   60   if (!isa<DeclRefExpr>(Cast->IgnoreParenImpCasts()))
tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
   54   bool VisitDeclRefExpr(DeclRefExpr *DR) {
  288   void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk,
  304     const DeclRefExpr *DR;
  306     if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts())))
  310     if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts())))
  331       if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS()))
  331       if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS()))
  349           if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS))
  349           if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS))
  371       if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex))
  371       if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex))
  418               if (const DeclRefExpr *DRE =
  419                   dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
  476     if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
  476     if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
tools/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
   63       const DeclRefExpr *DR = cast<DeclRefExpr>(Ex);
   63       const DeclRefExpr *DR = cast<DeclRefExpr>(Ex);
  114   if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
  114   if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
  326   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(RecE)) {
  326   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(RecE)) {
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
  225   const DeclRefExpr *DeclRef1 = dyn_cast<DeclRefExpr>(LHS);
  225   const DeclRefExpr *DeclRef1 = dyn_cast<DeclRefExpr>(LHS);
  226   const DeclRefExpr *DeclRef2 = dyn_cast<DeclRefExpr>(RHS);
  226   const DeclRefExpr *DeclRef2 = dyn_cast<DeclRefExpr>(RHS);
  460     const DeclRefExpr *DeclRef1 = cast<DeclRefExpr>(Stmt1);
  460     const DeclRefExpr *DeclRef1 = cast<DeclRefExpr>(Stmt1);
  461     const DeclRefExpr *DeclRef2 = cast<DeclRefExpr>(Stmt2);
  461     const DeclRefExpr *DeclRef2 = cast<DeclRefExpr>(Stmt2);
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
 1245   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Condition)) {
 1245   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Condition)) {
tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
  161   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
  161   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
  363       if (const DeclRefExpr *DE = dyn_cast<DeclRefExpr>(DeallocatorExpr)) {
  363       if (const DeclRefExpr *DE = dyn_cast<DeclRefExpr>(DeallocatorExpr)) {
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
 3020       if (const DeclRefExpr *DE = dyn_cast<DeclRefExpr>(ArgE)) {
 3020       if (const DeclRefExpr *DE = dyn_cast<DeclRefExpr>(ArgE)) {
 3044       if (const DeclRefExpr *ArgDRE = dyn_cast<DeclRefExpr>(ArgE))
 3044       if (const DeclRefExpr *ArgDRE = dyn_cast<DeclRefExpr>(ArgE))
tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp
  105     else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e))
  143     static const Decl *getDecl(const DeclRefExpr *DR) { return DR->getDecl(); }
  149     void Erase(const T1 *DR,
  152         if (const auto *CheckDR = dyn_cast<T1>(Check.variable))
  152         if (const auto *CheckDR = dyn_cast<T1>(Check.variable))
  163       if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
  163       if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
  164         Erase<DeclRefExpr>(DR, PredTrue);
  220       if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
  220       if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
  221         Erase<DeclRefExpr>(DR, pred);
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
  190     if (const auto *DRE = dyn_cast<DeclRefExpr>(This)) {
  190     if (const auto *DRE = dyn_cast<DeclRefExpr>(This)) {
tools/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp
   36 static const DeclRefExpr *FindBlockDeclRefExpr(const Stmt *S,
   38   if (const DeclRefExpr *BR = dyn_cast<DeclRefExpr>(S))
   38   if (const DeclRefExpr *BR = dyn_cast<DeclRefExpr>(S))
   44       if (const DeclRefExpr *BR = FindBlockDeclRefExpr(Child, VD))
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
  769       if (const auto *DR = dyn_cast<DeclRefExpr>(LHS)) {
  769       if (const auto *DR = dyn_cast<DeclRefExpr>(LHS)) {
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  195   if (const auto *DRE = dyn_cast<DeclRefExpr>(CondVarExpr))
  195   if (const auto *DRE = dyn_cast<DeclRefExpr>(CondVarExpr))
  457     if (const auto *DRE = dyn_cast<DeclRefExpr>(Base))
  457     if (const auto *DRE = dyn_cast<DeclRefExpr>(Base))
 1106       if (const auto *DR = dyn_cast<DeclRefExpr>(RetE))
 1106       if (const auto *DR = dyn_cast<DeclRefExpr>(RetE))
 1836   if (const auto *DR = dyn_cast<DeclRefExpr>(E)) {
 1836   if (const auto *DR = dyn_cast<DeclRefExpr>(E)) {
 2280         if (auto P = VisitTrueTest(Cond, cast<DeclRefExpr>(CondTmp),
 2347   if (const auto *DR = dyn_cast<DeclRefExpr>(Ex)) {
 2347   if (const auto *DR = dyn_cast<DeclRefExpr>(Ex)) {
 2552     const Expr *Cond, const DeclRefExpr *DRE, BugReporterContext &BRC,
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
 1174   const auto *InstRecIg = dyn_cast<DeclRefExpr>(InstRec->IgnoreParenImpCasts());
 1174   const auto *InstRecIg = dyn_cast<DeclRefExpr>(InstRec->IgnoreParenImpCasts());
tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
   38   const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S);
   38   const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S);
   52   const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S);
   52   const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S);
   88       if (auto DE = dyn_cast_or_null<DeclRefExpr>(Assign->getLHS()))
tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
   53   return isa<DeclRefExpr>(Ex) ||
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 1675       const auto *DE = cast<DeclRefExpr>(S);
 1675       const auto *DE = cast<DeclRefExpr>(S);
 2434     const auto *DeclRefEx = dyn_cast<DeclRefExpr>(Ex);
 2434     const auto *DeclRefEx = dyn_cast<DeclRefExpr>(Ex);
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  979       if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Ex)) {
  979       if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Ex)) {
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  463   if (auto *D = dyn_cast<DeclRefExpr>(S))
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
  280     if ((isa<MemberExpr>(S) || isa<DeclRefExpr>(S)) &&
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
  249   bool VisitDeclRefExpr(const DeclRefExpr *Expr) {
  464   const Decl *getClosestAncestorDecl(const ASTNodeType &Node) {
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp
  206     if (const auto *E = Node.get<DeclRefExpr>()) {
  206     if (const auto *E = Node.get<DeclRefExpr>()) {
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  590   } else if (const auto *VarRef =
  591                  Result.Nodes.getNodeAs<DeclRefExpr>("var_ref")) {
  600   } else if (const auto *EnumConstRef =
  601                  Result.Nodes.getNodeAs<DeclRefExpr>("enum_const_ref")) {
  617   } else if (const auto *FuncRef =
  618                  Result.Nodes.getNodeAs<DeclRefExpr>("func_ref")) {
  633     const auto *CalleeFuncRef =
  634         llvm::cast<DeclRefExpr>(Call->getCallee()->IgnoreImplicit());
  959     const DeclRefExpr *Ref) {
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.h
   85                       const DeclRefExpr *Ref);
  166   llvm::SmallPtrSet<const clang::DeclRefExpr*, 16> ProcessedFuncRefs;
tools/clang/tools/extra/clang-move/HelperDeclRefGraph.cpp
  115   if (const auto *FuncRef = Result.Nodes.getNodeAs<DeclRefExpr>("func_ref")) {
  115   if (const auto *FuncRef = Result.Nodes.getNodeAs<DeclRefExpr>("func_ref")) {
tools/clang/tools/extra/clang-tidy/bugprone/BoolPointerImplicitConversionCheck.cpp
   35   auto *Var = Result.Nodes.getNodeAs<DeclRefExpr>("expr");
tools/clang/tools/extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
   29   if (const auto *DRE = dyn_cast<DeclRefExpr>(S))
   29   if (const auto *DRE = dyn_cast<DeclRefExpr>(S))
   95   if (const auto *DRE = dyn_cast<DeclRefExpr>(Cond)) {
   95   if (const auto *DRE = dyn_cast<DeclRefExpr>(Cond)) {
  137   if (const auto *DRE = dyn_cast<DeclRefExpr>(Cond)) {
  137   if (const auto *DRE = dyn_cast<DeclRefExpr>(Cond)) {
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
   70   if (const auto *LengthDRE = dyn_cast<DeclRefExpr>(E))
   70   if (const auto *LengthDRE = dyn_cast<DeclRefExpr>(E))
   80   if (const auto *StrDRE = dyn_cast<DeclRefExpr>(E))
   80   if (const auto *StrDRE = dyn_cast<DeclRefExpr>(E))
  186   if (const auto *DestDRE = Result.Nodes.getNodeAs<DeclRefExpr>(DestExprName))
  186   if (const auto *DestDRE = Result.Nodes.getNodeAs<DeclRefExpr>(DestExprName))
  187     if (const auto *SrcDRE = Result.Nodes.getNodeAs<DeclRefExpr>(SrcExprName))
  187     if (const auto *SrcDRE = Result.Nodes.getNodeAs<DeclRefExpr>(SrcExprName))
  239     if (const auto *ArgDRE =
  240             dyn_cast<DeclRefExpr>(StrlenCE->getArg(0)->IgnoreImpCasts()))
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp
  156   const auto *EnumExpr = dyn_cast<DeclRefExpr>(NodeExpr);
  156   const auto *EnumExpr = dyn_cast<DeclRefExpr>(NodeExpr);
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
   29   const DeclRefExpr *DeclRef;
   53                          llvm::SmallVectorImpl<const DeclRefExpr *> *Uses,
   56                    llvm::SmallPtrSetImpl<const DeclRefExpr *> *DeclRefs);
   59                   llvm::SmallPtrSetImpl<const DeclRefExpr *> *DeclRefs);
  129   llvm::SmallVector<const DeclRefExpr *, 1> Uses;
  145   for (const DeclRefExpr *Use : Uses) {
  186     llvm::SmallVectorImpl<const DeclRefExpr *> *Uses,
  188   llvm::SmallPtrSet<const DeclRefExpr *, 1> DeclRefs;
  189   llvm::SmallPtrSet<const DeclRefExpr *, 1> ReinitDeclRefs;
  196   for (const DeclRefExpr *DeclRef : DeclRefs) {
  230     llvm::SmallPtrSetImpl<const DeclRefExpr *> *DeclRefs) {
  240         const auto *DeclRef = Match.getNodeAs<DeclRefExpr>("declref");
  240         const auto *DeclRef = Match.getNodeAs<DeclRefExpr>("declref");
  270     llvm::SmallPtrSetImpl<const DeclRefExpr *> *DeclRefs) {
  341       const auto *TheDeclRef = Match.getNodeAs<DeclRefExpr>("declref");
  341       const auto *TheDeclRef = Match.getNodeAs<DeclRefExpr>("declref");
  355 static void emitDiagnostic(const Expr *MovingCall, const DeclRefExpr *MoveArg,
  412   const auto *Arg = Result.Nodes.getNodeAs<DeclRefExpr>("arg");
  412   const auto *Arg = Result.Nodes.getNodeAs<DeclRefExpr>("arg");
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp
  196   const auto *DeletedVariable =
  197       Nodes.getNodeAs<DeclRefExpr>("deleted_variable");
tools/clang/tools/extra/clang-tidy/google/ExplicitMakePairCheck.cpp
   48   const auto *DeclRef = Result.Nodes.getNodeAs<DeclRefExpr>("declref");
   48   const auto *DeclRef = Result.Nodes.getNodeAs<DeclRefExpr>("declref");
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp
  228 static bool isInInstantiation(const NodeType &Node,
  278     } else if (const auto *Ref = Result.Nodes.getNodeAs<DeclRefExpr>("ref")) {
  278     } else if (const auto *Ref = Result.Nodes.getNodeAs<DeclRefExpr>("ref")) {
tools/clang/tools/extra/clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp
  158     if (const auto *GeneralCondition =
  159             Result.Nodes.getNodeAs<DeclRefExpr>("non-enum-condition")) {
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
  113     return cast<DeclRefExpr>(Left)->getDecl() ==
  114            cast<DeclRefExpr>(Right)->getDecl();
tools/clang/tools/extra/clang-tidy/misc/ThrowByValueCatchByReferenceCheck.cpp
   50     const DeclRefExpr *declRefExpr) {
   55     const DeclRefExpr *declRefExpr) {
   63     const DeclRefExpr *declRefExpr) {
   82     auto *declRef = dyn_cast<DeclRefExpr>(inner);
  105     const auto *variableReference = dyn_cast<DeclRefExpr>(currentSubExpr);
  105     const auto *variableReference = dyn_cast<DeclRefExpr>(currentSubExpr);
  122         if (auto *tmp = dyn_cast<DeclRefExpr>(currentSubExpr))
tools/clang/tools/extra/clang-tidy/misc/ThrowByValueCatchByReferenceCheck.h
   40   bool isFunctionParameter(const DeclRefExpr *declRefExpr);
   41   bool isCatchVariable(const DeclRefExpr *declRefExpr);
   42   bool isFunctionOrCatchVar(const DeclRefExpr *declRefExpr);
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.cpp
   83   const std::unordered_set<const DeclRefExpr *> &
   90   bool WalkUpFromDeclRefExpr(DeclRefExpr *DeclRef) {
  102       if (const auto *Ref =
  103               dyn_cast<DeclRefExpr>(Call->getCallee()->IgnoreImplicit())) {
  114     std::unordered_set<const DeclRefExpr *> OtherRefs;
tools/clang/tools/extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
  143   if (const auto *DRE = Result.Nodes.getNodeAs<DeclRefExpr>("used")) {
  143   if (const auto *DRE = Result.Nodes.getNodeAs<DeclRefExpr>("used")) {
tools/clang/tools/extra/clang-tidy/modernize/AvoidBindCheck.cpp
  165   const auto *Ref = Result.Nodes.getNodeAs<DeclRefExpr>("ref");
  165   const auto *Ref = Result.Nodes.getNodeAs<DeclRefExpr>("ref");
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
  374   if (const DeclRefExpr *DRE = getDeclRef(E))
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
   61 bool ComponentFinderASTVisitor::VisitDeclRefExpr(DeclRefExpr *E) {
   74 bool DependencyFinderASTVisitor::VisitDeclRefExpr(DeclRefExpr *DeclRef) {
  127 bool DeclFinderASTVisitor::VisitDeclRefExpr(DeclRefExpr *DeclRef) {
  198 const DeclRefExpr *getDeclRef(const Expr *E) {
  199   return dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts());
  213   const DeclRefExpr *Decl = getDeclRef(E);
  255   const DeclRefExpr *Idx = getDeclRef(IndexExpr);
  541   const DeclRefExpr *Obj = getDeclRef(Base);
  744 bool ForLoopIndexUseVisitor::VisitDeclRefExpr(DeclRefExpr *E) {
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.h
  103   bool VisitDeclRefExpr(clang::DeclRefExpr *E);
  165   bool VisitDeclRefExpr(clang::DeclRefExpr *D);
  199   bool VisitDeclRefExpr(clang::DeclRefExpr *D);
  275 const DeclRefExpr *getDeclRef(const Expr *E);
  350   bool VisitDeclRefExpr(DeclRefExpr *E);
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.cpp
   87     bool VisitDeclRefExpr(DeclRefExpr *D) {
tools/clang/tools/extra/clang-tidy/modernize/ReplaceRandomShuffleCheck.cpp
   59   const auto *MatchedDecl = Result.Nodes.getNodeAs<DeclRefExpr>("name");
   59   const auto *MatchedDecl = Result.Nodes.getNodeAs<DeclRefExpr>("name");
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  174     return cast<DeclRefExpr>(E1)->getDecl() == cast<DeclRefExpr>(E2)->getDecl();
  174     return cast<DeclRefExpr>(E1)->getDecl() == cast<DeclRefExpr>(E2)->getDecl();
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
   90   bool VisitDeclRefExpr(DeclRefExpr *S) {
tools/clang/tools/extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp
   62   } else if (const auto *D =
   63                  Result.Nodes.getNodeAs<DeclRefExpr>("decl_ref_expr")) {
tools/clang/tools/extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp
   72   const auto *LhsStr = Result.Nodes.getNodeAs<DeclRefExpr>("lhsStr");
   72   const auto *LhsStr = Result.Nodes.getNodeAs<DeclRefExpr>("lhsStr");
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
  208   llvm::SmallPtrSet<const DeclRefExpr *, 16> AllVarRefs =
  211   for (const auto *Ref : AllVarRefs) {
tools/clang/tools/extra/clang-tidy/performance/MoveConstArgCheck.cpp
   95     bool IsVariable = isa<DeclRefExpr>(Arg);
   97         IsVariable ? dyn_cast<DeclRefExpr>(Arg)->getDecl() : nullptr;
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
   42 bool hasLoopStmtAncestor(const DeclRefExpr &DeclRef, const Decl &Decl,
  118       const auto &DeclRefExpr = **AllDeclRefExprs.begin();
  190                                                const DeclRefExpr &CopyArgument,
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.h
   36   void handleMoveFix(const ParmVarDecl &Var, const DeclRefExpr &CopyArgument,
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  802   if (const auto *DeclRef = Result.Nodes.getNodeAs<DeclRefExpr>("declRef")) {
  802   if (const auto *DeclRef = Result.Nodes.getNodeAs<DeclRefExpr>("declRef")) {
tools/clang/tools/extra/clang-tidy/readability/MisplacedArrayIndexCheck.cpp
   39   if (!isa<StringLiteral>(RHSE) && !isa<DeclRefExpr>(RHSE) &&
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp
   55   } else if (const auto *Ref = Result.Nodes.getNodeAs<DeclRefExpr>("Ref")) {
   55   } else if (const auto *Ref = Result.Nodes.getNodeAs<DeclRefExpr>("Ref")) {
  117 void NonConstParameterCheck::setReferenced(const DeclRefExpr *Ref) {
  212     if (const auto *D = dyn_cast<DeclRefExpr>(E)) {
  212     if (const auto *D = dyn_cast<DeclRefExpr>(E)) {
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.h
   47   void setReferenced(const DeclRefExpr *Ref);
tools/clang/tools/extra/clang-tidy/utils/DeclRefExprUtils.cpp
   35                         SmallPtrSet<const Node *, 16> &Nodes) {
   37     Nodes.insert(Match.getNodeAs<Node>(ID));
   44 SmallPtrSet<const DeclRefExpr *, 16>
   58   SmallPtrSet<const DeclRefExpr *, 16> DeclRefs;
   75 SmallPtrSet<const DeclRefExpr *, 16>
   90   SmallPtrSet<const DeclRefExpr *, 16> DeclRefs;
  119 SmallPtrSet<const DeclRefExpr *, 16>
  124   SmallPtrSet<const DeclRefExpr *, 16> DeclRefs;
  129 SmallPtrSet<const DeclRefExpr *, 16>
  135   SmallPtrSet<const DeclRefExpr *, 16> DeclRefs;
  140 bool isCopyConstructorArgument(const DeclRefExpr &DeclRef, const Decl &Decl,
  154 bool isCopyAssignmentArgument(const DeclRefExpr &DeclRef, const Decl &Decl,
tools/clang/tools/extra/clang-tidy/utils/DeclRefExprUtils.h
   31 llvm::SmallPtrSet<const DeclRefExpr *, 16>
   35 llvm::SmallPtrSet<const DeclRefExpr *, 16>
   40 llvm::SmallPtrSet<const DeclRefExpr *, 16>
   46 llvm::SmallPtrSet<const DeclRefExpr *, 16>
   52 bool isCopyConstructorArgument(const DeclRefExpr &DeclRef, const Decl &Decl,
   57 bool isCopyAssignmentArgument(const DeclRefExpr &DeclRef, const Decl &Decl,
tools/clang/tools/extra/clangd/FindTarget.cpp
  178       void VisitDeclRefExpr(const DeclRefExpr *DRE) {
  473     void VisitDeclRefExpr(const DeclRefExpr *E) {
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  199   bool VisitDeclRefExpr(DeclRefExpr *Ref) {
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp
  479     bool VisitDeclRefExpr(DeclRefExpr *DRE) {
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
   76     bool VisitDeclRefExpr(DeclRefExpr *DeclRef) { // NOLINT
  376   if (llvm::isa<DeclRefExpr>(E) || llvm::isa<MemberExpr>(E))
  411   if (llvm::isa<DeclRefExpr>(SelectedExpr) ||
tools/clang/tools/extra/unittests/clang-tidy/OverlappingReplacementsTest.cpp
   91       bool VisitDeclRefExpr(DeclRefExpr *E) {
tools/clang/tools/libclang/CIndex.cpp
 1988   void VisitDeclRefExpr(const DeclRefExpr *D);
 2562 void EnqueueVisitor::VisitDeclRefExpr(const DeclRefExpr *DR) {
 3112         const DeclRefExpr *DR = cast<DeclRefExprParts>(&LI)->get();
 3932     DeclRefExpr *D = static_cast<DeclRefExpr *>(expr);
 4336   if (const DeclRefExpr *RefExpr = dyn_cast<DeclRefExpr>(E))
 4336   if (const DeclRefExpr *RefExpr = dyn_cast<DeclRefExpr>(E))
 4389   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
 4389   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
 6566     if (const DeclRefExpr *E = dyn_cast<DeclRefExpr>(getCursorExpr(C))) {
 6566     if (const DeclRefExpr *E = dyn_cast<DeclRefExpr>(getCursorExpr(C))) {
 6581       if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Callee))
 6581       if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Callee))
 6999       if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(SubExpr)) {
 6999       if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(SubExpr)) {
tools/clang/tools/libclang/CXCursor.cpp
  511          dyn_cast_or_null<ImplicitParamDecl>(cast<DeclRefExpr>(S)->getDecl())) {
tools/clang/unittests/AST/DeclMatcher.h
   22   NodeType *Node = nullptr;
   26       Node = const_cast<NodeType *>(Result.Nodes.getNodeAs<NodeType>(""));
   32   NodeType *match(const Decl *D, const MatcherType &AMatcher) {
tools/clang/unittests/ASTMatchers/ASTMatchersTest.h
  421     if (Nodes->getNodeAs<T>(Id)) {
tools/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp
   71     E = dyn_cast<DeclRefExpr>(By);
tools/clang/unittests/Tooling/ASTSelectionTest.cpp
  107           typename std::enable_if<std::is_base_of<Stmt, T>::value, T>::type
  107           typename std::enable_if<std::is_base_of<Stmt, T>::value, T>::type
  109   checkNodeImpl(isa<T>(StmtNode.Node.get<Stmt>()), StmtNode, SelectionKind,
  217         checkNode<DeclRefExpr>(Return.Children[0].Children[0],
  589         checkNode<DeclRefExpr>(Cast.Children[0],
  610         checkNode<DeclRefExpr>(Cast.Children[0],
  633         checkNode<DeclRefExpr>(Cast.Children[0],
  656         checkNode<DeclRefExpr>(Cast.Children[0],
  667         checkNode<DeclRefExpr>(Cast2.Children[0],
  669         checkNode<DeclRefExpr>(BinOp.Children[1],
tools/clang/unittests/Tooling/LexicallyOrderedRecursiveASTVisitorTest.cpp
   38   bool VisitDeclRefExpr(const DeclRefExpr *D);
   62   template <class T> void match(StringRef Path, const T *D) {
   94 bool LexicallyOrderedDeclVisitor::VisitDeclRefExpr(const DeclRefExpr *D) {
tools/clang/unittests/Tooling/LookupTest.cpp
   44     const auto *Callee = cast<DeclRefExpr>(Expr->getCallee()->IgnoreImplicit());
   44     const auto *Callee = cast<DeclRefExpr>(Expr->getCallee()->IgnoreImplicit());
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/CXXMethodDecl.cpp
   24   bool VisitDeclRefExpr(DeclRefExpr *D) {
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/DeclRefExpr.cpp
   25   bool VisitDeclRefExpr(DeclRefExpr *Reference) {
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
 1447     : public __and_<is_destructible<_Tp>, integral_constant<bool,
 1554     { typedef _Tp     type; };
 1558     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1580     { typedef _Tp const     type; };
 1629     { typedef _Tp   type; };
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };
 1983     { typedef _Up     type; };
 1999     { typedef typename remove_reference<_Tp>::type*     type; };
 2003     : public __add_pointer_helper<_Tp>
 2157     { typedef _Tp type; };