[pstl] Fix -Wundef errors in the test suite
[pstl] Replace direct use of assert() with _PSTL_ASSERTStandard libraries may (libstdc++ in particular) forbid direct use ofassert()/<cassert> in library code.Differential Revision: https://revi
[pstl] Replace direct use of assert() with _PSTL_ASSERTStandard libraries may (libstdc++ in particular) forbid direct use ofassert()/<cassert> in library code.Differential Revision: https://reviews.llvm.org/D60249
show more ...
[libc++][pstl] Remove c++98 from UNSUPPORTED annotationsc++98 isn't used by the test suite anymore, only c++03 is.
[pstl] Fix a few errors when running PSTL tests through the libc++ test suite
[pstl] A fix for move placement-new (and destroy) allocated objects from raw memory.https://reviews.llvm.org/D74123The fix affects follow algorithms:remove_if, unique, rotate, inplace_merge, par
[pstl] A fix for move placement-new (and destroy) allocated objects from raw memory.https://reviews.llvm.org/D74123The fix affects follow algorithms:remove_if, unique, rotate, inplace_merge, partial_sort_copy, set_union, set_intersection, set_difference, set_symmetric_difference.For "is_trivial" types there are no problems with "creating objects/clean-up"For non-trivial types the algo results are also correct, but possible incorrect copying/moving "operator=" calls "by raw memory" within one of mentioned algo or incorrect destructor calls in the end of algo.
[NFC][pstl] Run clang-format on the sources, including the testsllvm-svn: 366492
[pstl] Declare main() as returning int, not int32_tllvm-svn: 366490
[pstl] Use utilities from <functional> instead of reinventing the wheelllvm-svn: 365158
[pstl] Mark pstl tests as unsupported before C++17This is required to run the tests in lit with libc++'s tests.llvm-svn: 363942
[pstl] Remove warnings in tests and headersMostly unused parameter, unused local typedefs and shadowed declarations.This massaging it necessary if we want to be able to run the tests underthe lib
[pstl] Remove warnings in tests and headersMostly unused parameter, unused local typedefs and shadowed declarations.This massaging it necessary if we want to be able to run the tests underthe libc++ lit configuration.llvm-svn: 363872
[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
[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 capturesNote that the rationale for why the static_casts to unsigned are OK isthat last - first must always be non-negative, since [first, last) isa valid range.llvm-svn: 362148
[pstl] Remove the stdlib headers from the PSTL and move them to the testsSummary:PSTL should not provide those headers since they belong to the standardlibrary. Instead, we define a dummy standar
[pstl] Remove the stdlib headers from the PSTL and move them to the testsSummary:PSTL should not provide those headers since they belong to the standardlibrary. Instead, we define a dummy standard library in the tests thatprovides those headers.Reviewers: rodgert, MikeDvorskiySubscribers: mgorny, jkorous, dexonsmith, libcxx-commitsTags: #libcDifferential Revision: https://reviews.llvm.org/D60535llvm-svn: 358497
[pstl] Move to single underscore-capital for macros and include guardsSummary: Per the LLVM convention.Reviewers: rodgertSubscribers: jkorous, dexonsmith, jdoerfert, libcxx-commitsTags: #libc
[pstl] Move to single underscore-capital for macros and include guardsSummary: Per the LLVM convention.Reviewers: rodgertSubscribers: jkorous, dexonsmith, jdoerfert, libcxx-commitsTags: #libcDifferential Revision: https://reviews.llvm.org/D60521llvm-svn: 358131
[pstl] Uglify internal names of the libraryllvm-svn: 357203
Restructure test suite to follow libc++ standard layoutSummary: Subsumes changes requested in https://reviews.llvm.org/D59110Reviewers: EricWF, ldionneSubscribers: mgorny, krytarowski, jfb, jdo
Restructure test suite to follow libc++ standard layoutSummary: Subsumes changes requested in https://reviews.llvm.org/D59110Reviewers: EricWF, ldionneSubscribers: mgorny, krytarowski, jfb, jdoerfert, libcxx-commitsDifferential Revision: https://reviews.llvm.org/D59856llvm-svn: 357124