[libc-commits] [PATCH] D100569: [libc] Add slice/take/drop methods to ArrayRef
Guillaume Chatelet via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Apr 16 00:53:38 PDT 2021
gchatelet updated this revision to Diff 338015.
gchatelet marked an inline comment as done.
gchatelet added a comment.
- Fix argument capitalization
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100569/new/
https://reviews.llvm.org/D100569
Files:
libc/utils/CPP/ArrayRef.h
Index: libc/utils/CPP/ArrayRef.h
===================================================================
--- libc/utils/CPP/ArrayRef.h
+++ libc/utils/CPP/ArrayRef.h
@@ -37,11 +37,11 @@
explicit ArrayRefBase(T &OneElt) : Data(&OneElt), Length(1) {}
// Construct an ArrayRefBase from a pointer and length.
- ArrayRefBase(pointer data, size_t length) : Data(data), Length(length) {}
+ ArrayRefBase(pointer Data, size_t Length) : Data(Data), Length(Length) {}
// Construct an ArrayRefBase from a range.
- ArrayRefBase(iterator begin, iterator end)
- : Data(begin), Length(end - begin) {}
+ ArrayRefBase(iterator Begin, iterator End)
+ : Data(Begin), Length(End - Begin) {}
// Construct an ArrayRefBase from a C array.
template <size_t N>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100569.338015.patch
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210416/8a4d6fd0/attachment.bin>
More information about the libc-commits
mailing list