| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
initializer lists. Should also silence a -Wsign-compare warning accidentally introduced.
llvm-svn: 229515
|
|
|
|
|
|
| |
values and as function arguments also work as expected.
llvm-svn: 229513
|
|
|
|
|
|
| |
initialization.
llvm-svn: 229512
|
|
|
|
|
|
|
|
| |
MSVC 2013 and GCC. Added a trivial test to ensure the ArrayRef initializer list constructor is called and behaves as expected.
If any of the bots complain (perhaps due to an antiquated version of an STL implementation), I will revert.
llvm-svn: 229502
|
|
|
|
|
|
|
|
|
|
|
| |
ArrayRef<T*> where T is a base of U.
This appears to have broken at least the windows build bots due to
compile errors in the predicate that didn't simply supress the overload.
I'm not sure what the fix is, and the bots have been broken for a long
time now so I'm just reverting until Michael can figure out a fix.
llvm-svn: 225064
|
|
|
|
|
|
| |
where T is a base of U.
llvm-svn: 225053
|
|
|
|
|
|
| |
ArrayRef-of-pointer conversions introduced in r216709
llvm-svn: 216830
|
|
|
|
| |
llvm-svn: 216821
|
|
|
|
| |
llvm-svn: 216008
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
checking whether the ArrayRef is equal to an explicit list of arguments.
This is particularly easy to implement even without variadic templates
because ArrayRef happens to be homogeneously typed. As a consequence we
can use a "clever" wrapper type and default arguments to capture in
a single method many arguments as well as *how many* arguments the user
specified.
Thanks to Dave Blaikie for helping me pull together this little helper.
Suggestions for how to improve or generalize it are of course welcome.
I'll be using it immediately in my follow-up patch. =D
llvm-svn: 214041
|
|
|
|
|
|
|
|
| |
The slice(N, M) interface is powerful but not concise when wanting to
drop a few elements off of an ArrayRef, fix this by adding a drop_back
method.
llvm-svn: 212370
|
|
Now to copy a string into a BumpPtrAllocator and get a StringRef to the copy:
StringRef myCopy = myStr.copy(myAllocator);
llvm-svn: 200885
|