[cfe-commits] r164223 - /cfe/trunk/include/clang/AST/CXXInheritance.h

Rafael Espindola rafael.espindola at gmail.com
Wed Sep 19 07:11:45 PDT 2012


Author: rafael
Date: Wed Sep 19 09:11:44 2012
New Revision: 164223

URL: http://llvm.org/viewvc/llvm-project?rev=164223&view=rev
Log:
Add some typedefs for clarity.

Modified:
    cfe/trunk/include/clang/AST/CXXInheritance.h

Modified: cfe/trunk/include/clang/AST/CXXInheritance.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/CXXInheritance.h?rev=164223&r1=164222&r2=164223&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/CXXInheritance.h (original)
+++ cfe/trunk/include/clang/AST/CXXInheritance.h Wed Sep 19 09:11:44 2012
@@ -271,15 +271,14 @@
 /// pair is the virtual method that overrides it (including the
 /// subobject in which that virtual function occurs).
 class OverridingMethods {
-  llvm::DenseMap<unsigned, SmallVector<UniqueVirtualMethod, 4> > 
-    Overrides;
+  typedef SmallVector<UniqueVirtualMethod, 4> ValuesT;
+  typedef llvm::DenseMap<unsigned, ValuesT> MapType;
+  MapType Overrides;
 
 public:
   // Iterate over the set of subobjects that have overriding methods.
-  typedef llvm::DenseMap<unsigned, SmallVector<UniqueVirtualMethod, 4> >
-            ::iterator iterator;
-  typedef llvm::DenseMap<unsigned, SmallVector<UniqueVirtualMethod, 4> >
-            ::const_iterator const_iterator;
+  typedef MapType::iterator iterator;
+  typedef MapType::const_iterator const_iterator;
   iterator begin() { return Overrides.begin(); }
   const_iterator begin() const { return Overrides.begin(); }
   iterator end() { return Overrides.end(); }





More information about the cfe-commits mailing list