diff options
author | Richard Smith <richard@metafoo.co.uk> | 2019-12-10 16:45:02 -0800 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2019-12-10 17:24:27 -0800 |
commit | bc24014b9765a454cb5214f4871451a41ffb7d29 (patch) | |
tree | 8824f31e7dc574ce2a567dcfedc2f259c2a3fa6f /clang/lib/Frontend/FrontendActions.cpp | |
parent | f364686f34d80e0873b478933952c6b664177ce4 (diff) | |
download | bcm5719-llvm-bc24014b9765a454cb5214f4871451a41ffb7d29.tar.gz bcm5719-llvm-bc24014b9765a454cb5214f4871451a41ffb7d29.zip |
[c++20] Implement P1185R2 (as modified by P2002R0).
For each defaulted operator<=> in a class that doesn't explicitly
declare any operator==, also inject a matching implicit defaulted
operator==.
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 4d47c768ad3..aeea63ca323 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -413,6 +413,8 @@ private: return "ExceptionSpecInstantiation"; case CodeSynthesisContext::DeclaringSpecialMember: return "DeclaringSpecialMember"; + case CodeSynthesisContext::DeclaringImplicitEqualityComparison: + return "DeclaringImplicitEqualityComparison"; case CodeSynthesisContext::DefiningSynthesizedFunction: return "DefiningSynthesizedFunction"; case CodeSynthesisContext::RewritingOperatorAsSpaceship: |