[pstl] Remove various warnings in the pstl headers and tests
authorLouis Dionne <ldionne@apple.com>
Thu, 30 May 2019 20:46:31 +0000 (20:46 +0000)
committerLouis Dionne <ldionne@apple.com>
Thu, 30 May 2019 20:46:31 +0000 (20:46 +0000)
commit5c4c44310a38ff77e15585636da57a66e737570d
tree6b969b713f66bcbbb6650fae8772bc4aba63b2c4
parenta481b01e958b19c2eb6564ab8930eae9058967f8
[pstl] Remove various warnings in the pstl headers and tests

- unused parameter warnings
- don't use single-letter template parameter names, like we do in libc++
- sign-comparison warnings
- unused variables in the tests
- unused local typedefs in the tests
- the use of #include_next
- field reordering in the tests
- unused lambda captures

Note that the rationale for why the static_casts to unsigned are OK is
that last - first must always be non-negative, since [first, last) is
a valid range.

llvm-svn: 362148
14 files changed:
pstl/include/pstl/internal/algorithm_impl.h
pstl/include/pstl/internal/numeric_impl.h
pstl/include/pstl/internal/parallel_backend_serial.h
pstl/include/pstl/internal/unseq_backend_simd.h
pstl/include/pstl/internal/utils.h
pstl/test/CMakeLists.txt
pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp
pstl/test/std/algorithms/alg.nonmodifying/adjacent_find.pass.cpp
pstl/test/std/algorithms/alg.nonmodifying/equal.pass.cpp
pstl/test/std/algorithms/alg.nonmodifying/find_end.pass.cpp
pstl/test/std/algorithms/alg.nonmodifying/search_n.pass.cpp
pstl/test/std/algorithms/alg.sorting/alg.set.operations/set.pass.cpp
pstl/test/std/algorithms/alg.sorting/sort.pass.cpp
pstl/test/support/utils.h