summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/variant
Commit message (Collapse)AuthorAgeFilesLines
...
* Update all bug URL's to point to https://bugs.llvm.org/...Eric Fiselier2017-02-172-4/+4
| | | | llvm-svn: 295434
* Fix PR31916 - std::visit rejects visitors accepting lvalue argumentsEric Fiselier2017-02-091-0/+11
| | | | | | | | | | A static assertion was misfiring since it checked is_callable<Visitor, decltype(__variant_alt<T>.value)>. However the decltype expression doesn't capture the value category as required. This patch applies extra braces to decltype to fix that. llvm-svn: 294612
* Implement P0513R0 - "Poisoning the Hash"Eric Fiselier2017-01-212-0/+53
| | | | | | | | | | | | | | | | | | | | | Summary: Exactly what the title says. This patch also adds a `std::hash<nullptr_t>` specialization in C++17, but it was not added by this paper and I can't find the actual paper that adds it. See http://wg21.link/P0513R0 for more info. If there are no comments in the next couple of days I'll commit this Reviewers: mclow.lists, K-ballo, EricWF Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28938 llvm-svn: 292684
* Added a workaround for a `-fdelayed-template-parsing` bug.Michael Park2017-01-161-3/+0
| | | | | | | | | | | | | | | Summary: There seems to be an additional bug in `-fdelayed-template-parsing` similar to http://llvm.org/viewvc/llvm-project?view=revision&revision=236063. This is a workaround for it for <variant> to compile with `clang-cl` on Windows. Reviewers: EricWF Differential Revision: https://reviews.llvm.org/D28734 llvm-svn: 292097
* Mark test as UNSUPPORTED on Windows since it hangs foreverEric Fiselier2017-01-141-0/+3
| | | | llvm-svn: 292012
* Add gcc-[56] clang-3.[678] to list of XFAILS for variant tests. Patch from ↵Eric Fiselier2017-01-052-4/+8
| | | | | | Michael Park llvm-svn: 291094
* Use C++11 static_assert in variant tests. Patch from Michael ParkEric Fiselier2017-01-041-2/+2
| | | | llvm-svn: 291021
* Add apple-clang-8 to list of XFAILS for some variant tests. Patch from ↵Eric Fiselier2016-12-232-2/+2
| | | | | | Michael Park llvm-svn: 290440
* std::get<0>([std::variant constant expression]) *is* noexcept.Casey Carter2016-12-062-2/+40
| | | | | | Differential review: http://reviews.llvm.org/D27436 llvm-svn: 288760
* XFAIL variant tests for apple-clangEric Fiselier2016-12-032-2/+2
| | | | llvm-svn: 288559
* Work around Clang 3.8 bugsEric Fiselier2016-12-034-47/+6
| | | | llvm-svn: 288556
* Make variant's index part of the hash valueEric Fiselier2016-12-021-0/+13
| | | | llvm-svn: 288554
* Implement C++17 <variant>. Patch from Michael Park!Eric Fiselier2016-12-0223-164/+162
| | | | | | This patch was reviewed as https://reviews.llvm.org/D23263. llvm-svn: 288547
* Fix copy/paste errors in new variant testsEric Fiselier2016-12-022-6/+6
| | | | llvm-svn: 288538
* Add tests for libc++'s constexpr variant copy/move extensionEric Fiselier2016-12-024-0/+93
| | | | llvm-svn: 288536
* Don't "LIBCPP_ONLY(stuff;)" at namespace scope.Casey Carter2016-11-231-3/+3
| | | | | | Differential review: https://reviews.llvm.org/D27029 llvm-svn: 287732
* Add <variant> tests but disable them for libc++Eric Fiselier2016-11-2339-0/+4985
llvm-svn: 287728
OpenPOWER on IntegriCloud