]> granicus.if.org Git - clang/commitdiff
[C++11] Replacing some using declarations which are not supported on all compilers...
authorAaron Ballman <aaron@aaronballman.com>
Sun, 9 Mar 2014 12:59:45 +0000 (12:59 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sun, 9 Mar 2014 12:59:45 +0000 (12:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203397 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Decl.h
include/clang/AST/DeclBase.h

index 83003e0496cfaa66b1ea344401184b0a74fcc543..11b667fd5c6a2c55e35b69491f85588a9f4feb18 100644 (file)
@@ -2899,7 +2899,8 @@ public:
   // enumerator_iterator - Iterates through the enumerators of this
   // enumeration.
   typedef specific_decl_iterator<EnumConstantDecl> enumerator_iterator;
-  typedef specific_decl_range<EnumConstantDecl> enumerator_range;
+  typedef llvm::iterator_range<specific_decl_iterator<EnumConstantDecl>>
+    enumerator_range;
 
   enumerator_range enumerators() const {
     return enumerator_range(enumerator_begin(), enumerator_end());
@@ -3150,7 +3151,7 @@ public:
   // the non-static data members of this class, ignoring any static
   // data members, functions, constructors, destructors, etc.
   typedef specific_decl_iterator<FieldDecl> field_iterator;
-  typedef specific_decl_range<FieldDecl> field_range;
+  typedef llvm::iterator_range<specific_decl_iterator<FieldDecl>> field_range;
 
   field_range fields() const { return field_range(field_begin(), field_end()); }
   field_iterator field_begin() const;
index f3098ab37f5ad6f2b6d8518092cb1b65cda321d5..49e0de11f42d4595e02e817435bbb6cff68d744e 100644 (file)
@@ -1399,10 +1399,6 @@ public:
     }
   };
 
-  template <typename SpecificDecl>
-  using specific_decl_range =
-      llvm::iterator_range<specific_decl_iterator<SpecificDecl>>;
-
   /// \brief Iterates over a filtered subrange of declarations stored
   /// in a DeclContext.
   ///