[llvm] r302315 - [BitVector] Improve the description of the BitVector::clear to say it removes the bits rather than clearing since clearing could be interpreted as just zeroing. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri May 5 15:46:40 PDT 2017


Author: ctopper
Date: Fri May  5 17:46:40 2017
New Revision: 302315

URL: http://llvm.org/viewvc/llvm-project?rev=302315&view=rev
Log:
[BitVector] Improve the description of the BitVector::clear to say it removes the bits rather than clearing since clearing could be interpreted as just zeroing. NFC

Modified:
    llvm/trunk/include/llvm/ADT/BitVector.h

Modified: llvm/trunk/include/llvm/ADT/BitVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/BitVector.h?rev=302315&r1=302314&r2=302315&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/BitVector.h (original)
+++ llvm/trunk/include/llvm/ADT/BitVector.h Fri May  5 17:46:40 2017
@@ -280,7 +280,7 @@ public:
     return -1;
   }
 
-  /// clear - Clear all bits.
+  /// clear - Removes all bits from the bitvector. Does not change capacity.
   void clear() {
     Size = 0;
   }




More information about the llvm-commits mailing list