llvm-project/clang/test/CXX
Richard Smith 974c8b7e2f [c++20] Add rewriting from comparison operators to <=> / ==.
This adds support for rewriting <, >, <=, and >= to a normal or reversed
call to operator<=>, for rewriting != to a normal or reversed call to
operator==, and for rewriting <=> and == to reversed forms of those same
operators.

Note that this is a breaking change for various C++17 code patterns,
including some in use in LLVM. The most common patterns (where an
operator== becomes ambiguous with a reversed form of itself) are still
accepted under this patch, as an extension (with a warning). I'm hopeful
that we can get the language rules fixed before C++20 ships, and the
extension warning is aimed primarily at providing data to inform that
decision.

llvm-svn: 375306
2019-10-19 00:04:43 +00:00
..
basic C++ DR712 and others: handle non-odr-use resulting from an lvalue-to-rvalue conversion applied to a member access or similar not-quite-trivial lvalue expression. 2019-06-14 17:46:37 +00:00
class When typo-correcting a function name, consider correcting to a type name 2019-05-09 00:57:24 +00:00
class.access Fix implementation of [temp.local]p4. 2019-02-15 21:53:07 +00:00
class.derived [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only 2018-09-28 01:16:43 +00:00
conv Specify an explicit underlying type for this enum to fix Windows 2018-06-29 20:41:23 +00:00
cpp PR41192: fix cases where "missing ';' after class" error would 2019-04-16 00:47:45 +00:00
dcl.dcl For P0784R7: compute whether a variable has constant destruction if it 2019-09-29 05:08:46 +00:00
dcl.decl For P0784R7: add support for constexpr destructors, and call them as 2019-09-23 03:48:44 +00:00
drs Implements CWG 1601 in [over.ics.rank/4.2] 2019-10-06 18:50:40 +00:00
except IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
expr [Concepts] Concept Specialization Expressions 2019-10-15 15:24:26 +00:00
lex [C++20] Implement context-sensitive header-name lexing and pp-import parsing in the preprocessor. 2019-04-11 21:18:23 +00:00
module C++ DR2387: a variable template declared wtih (or instantiated with) a 2019-04-26 01:51:08 +00:00
modules-ts [c++2a] Implement semantic restrictions for 'export' declarations. 2019-04-22 22:50:11 +00:00
over [c++20] Add rewriting from comparison operators to <=> / ==. 2019-10-19 00:04:43 +00:00
special [SemaDeclCXX] Allow inheriting constructor declaration to specify a cv-qualified type 2019-08-17 20:57:52 +00:00
stmt.stmt Refactor the way we handle diagnosing unused expression results. 2019-01-04 16:58:14 +00:00
temp [c++20] Add rewriting from comparison operators to <=> / ==. 2019-10-19 00:04:43 +00:00