From: Aaron Ballman Date: Sun, 9 Mar 2014 12:59:45 +0000 (+0000) Subject: [C++11] Replacing some using declarations which are not supported on all compilers... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e74395412dd09c3854905e824aef22998e4f881d;p=clang [C++11] Replacing some using declarations which are not supported on all compilers (such as MSVC 2012) with a less problematic typedef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203397 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 83003e0496..11b667fd5c 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -2899,7 +2899,8 @@ public: // enumerator_iterator - Iterates through the enumerators of this // enumeration. typedef specific_decl_iterator enumerator_iterator; - typedef specific_decl_range enumerator_range; + typedef llvm::iterator_range> + 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 field_iterator; - typedef specific_decl_range field_range; + typedef llvm::iterator_range> field_range; field_range fields() const { return field_range(field_begin(), field_end()); } field_iterator field_begin() const; diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index f3098ab37f..49e0de11f4 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -1399,10 +1399,6 @@ public: } }; - template - using specific_decl_range = - llvm::iterator_range>; - /// \brief Iterates over a filtered subrange of declarations stored /// in a DeclContext. ///