[llvm-commits] CVS: llvm/www/docs/CodingStandards.html

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 23 11:26:06 PDT 2003


Changes in directory llvm/www/docs:

CodingStandards.html updated: 1.5 -> 1.6

---
Log message:

Properly convert some &'s to &'s


---
Diffs of the changes:

Index: llvm/www/docs/CodingStandards.html
diff -u llvm/www/docs/CodingStandards.html:1.5 llvm/www/docs/CodingStandards.html:1.6
--- llvm/www/docs/CodingStandards.html:1.5	Sun Jan 20 13:01:26 2002
+++ llvm/www/docs/CodingStandards.html	Wed Apr 23 11:25:38 2003
@@ -378,9 +378,9 @@
         public std::iterator<std::forward_iterator_tag, value_type> {
           friend class container;
           public:
-            const value_type& operator*() const;
+            const value_type& operator*() const;
             const value_type* operator->() const;
-            const_iterator& operator++();
+            const_iterator& operator++();
             const_iterator operator++(int);
             friend bool operator==(const_iterator lhs,
                                    const_iterator rhs);
@@ -408,14 +408,14 @@
 There are normally only three member functions that need nontrivial
 implementations; the rest are just boilerplate.
 
-  const container::value_type&
+  const container::value_type&
     container::const_iterator::operator*() const {
       // find the element and return a reference to it
     }
 
   const container::value_type*
     container::const_iterator::operator->() const {
-      return &**this;
+      return &**this;
     }
 
 If there's an underlying real container, operator*() can just return a
@@ -431,7 +431,7 @@
 The operator->() function is just boilerplate around a call to
 operator*().
 
-  container::const_iterator&
+  container::const_iterator&
     container::const_iterator::operator++() {
       // the incrementing logic goes here
       return *this;
@@ -491,9 +491,9 @@
           friend class container;
           friend class container::const_iterator;
           public:
-            value_type& operator*() const;
+            value_type& operator*() const;
             value_type* operator->() const;
-            iterator& operator++();
+            iterator& operator++();
             iterator operator++(int);
             friend bool operator==(iterator lhs, iterator rhs);
             friend bool operator!=(iterator lhs, iterator rhs);
@@ -505,10 +505,10 @@
           friend class container;
           public:
             const_iterator();
-            const_iterator(const iterator& i);
-            const value_type& operator*() const;
+            const_iterator(const iterator& i);
+            const value_type& operator*() const;
             const value_type* operator->() const;
-            const_iterator& operator++();
+            const_iterator& operator++();
             const_iterator operator++(int);
             friend bool operator==(const_iterator lhs,
                                    const_iterator rhs);
@@ -537,7 +537,7 @@
     public std::iterator<std::bidirectional_iterator_tag, value_type> {
       public:
         //...
-        iterator& operator--();
+        iterator& operator--();
         iterator operator--(int);
         //...
     };
@@ -551,8 +551,8 @@
     public std::iterator<std::random_access_iterator_tag, value_type> {
       public:
         //...
-        iterator& operator+=(difference_type rhs);
-        iterator& operator-=(difference_type rhs);
+        iterator& operator+=(difference_type rhs);
+        iterator& operator-=(difference_type rhs);
         friend iterator operator+(iterator lhs, difference_type rhs);
         friend iterator operator+(difference_type lhs, iterator rhs);
         friend iterator operator-(iterator lhs, difference_type rhs);
@@ -564,13 +564,13 @@
         //...
     };
 
-  container::iterator&
+  container::iterator&
     container::iterator::operator+=(container::difference_type rhs) {
       // add rhs to iterator position
       return *this;
     }
 
-  container::iterator&
+  container::iterator&
     container::iterator::operator-=(container::difference_type rhs) {
       // subtract rhs from iterator position
       return *this;
@@ -660,7 +660,7 @@
 <address><a href="mailto:sabre at nondot.org">Chris Lattner</a></address>
 <!-- Created: Tue Jan 23 15:19:28 CST 2001 -->
 <!-- hhmts start -->
-Last modified: Sun Jan 20 13:01:02 CST 2002
+Last modified: Wed Apr 23 11:20:49 CDT 2003
 <!-- hhmts end -->
 </font>
 </body></html>





More information about the llvm-commits mailing list