[PATCH] D151627: [clang][c++20][NFC] `ComparisonCategoryType` - updated comment, removed `std:*_equality`

Hristo Hristov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 28 01:59:27 PDT 2023


H-G-Hristov created this revision.
Herald added a project: All.
H-G-Hristov requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

`weak_equality` and `strong_equality` are removed from the standard:

- https://wg21.link/P1959R0
- https://eel.is/c++draft/cmp.categories.pre


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151627

Files:
  clang/include/clang/AST/ComparisonCategories.h


Index: clang/include/clang/AST/ComparisonCategories.h
===================================================================
--- clang/include/clang/AST/ComparisonCategories.h
+++ clang/include/clang/AST/ComparisonCategories.h
@@ -39,9 +39,8 @@
 /// An enumeration representing the different comparison categories
 /// types.
 ///
-/// C++2a [cmp.categories.pre] The types weak_equality, strong_equality,
-/// partial_ordering, weak_ordering, and strong_ordering are collectively
-/// termed the comparison category types.
+/// C++20 [cmp.categories.pre] The types partial_ordering, weak_ordering, and
+/// strong_ordering are collectively termed the comparison category types.
 enum class ComparisonCategoryType : unsigned char {
   PartialOrdering,
   WeakOrdering,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151627.526317.patch
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230528/983d7dce/attachment.bin>


More information about the cfe-commits mailing list