[PATCH] D23965: Add StringRef::keep_front() and StringRef::keep_back()

Noel Grandin via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 28 05:04:37 PDT 2016


grandinj added a subscriber: grandinj.

================
Comment at: include/llvm/ADT/ArrayRef.h:340
@@ -323,1 +339,3 @@
 
+    /// \brief Drop the first \p N elements of the array.
+    LLVM_ATTRIBUTE_UNUSED_RESULT
----------------
this explanation can't be right

================
Comment at: include/llvm/ADT/ArrayRef.h:348
@@ +347,3 @@
+
+    /// \brief Keep the first \p N elements of the array.
+    LLVM_ATTRIBUTE_UNUSED_RESULT
----------------
or this one


https://reviews.llvm.org/D23965





More information about the llvm-commits mailing list