[llvm] r235000 - Clarify that Twine::toVector *appends* the Twine to the given SmallString.

Yaron Keren yaron.keren at gmail.com
Wed Apr 15 04:27:33 PDT 2015


Author: yrnkrn
Date: Wed Apr 15 06:27:32 2015
New Revision: 235000

URL: http://llvm.org/viewvc/llvm-project?rev=235000&view=rev
Log:
Clarify that Twine::toVector *appends* the Twine to the given SmallString.

That's the way it works now, since toVector does not clear the given
SmallString before printing to it.


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

Modified: llvm/trunk/include/llvm/ADT/Twine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Twine.h?rev=235000&r1=234999&r2=235000&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Twine.h (original)
+++ llvm/trunk/include/llvm/ADT/Twine.h Wed Apr 15 06:27:32 2015
@@ -430,7 +430,7 @@ namespace llvm {
     /// Return the twine contents as a std::string.
     std::string str() const;
 
-    /// Write the concatenated string into the given SmallString or SmallVector.
+    /// Append the concatenated string into the given SmallString or SmallVector.
     void toVector(SmallVectorImpl<char> &Out) const;
 
     /// This returns the twine as a single StringRef.  This method is only valid





More information about the llvm-commits mailing list