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

Hristo Hristov via cfe-commits cfe-commits at lists.llvm.org
Sun May 28 12:25:23 PDT 2023


Author: Hristo Hristov
Date: 2023-05-28T22:25:16+03:00
New Revision: fb250b8295b9f65590017c5b13d6de0b4f4617c1

URL: https://github.com/llvm/llvm-project/commit/fb250b8295b9f65590017c5b13d6de0b4f4617c1
DIFF: https://github.com/llvm/llvm-project/commit/fb250b8295b9f65590017c5b13d6de0b4f4617c1.diff

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

`weak_equality` and `strong_equality` are removed from the standard:
- https://wg21.link/P1959R0
- https://eel.is/c++draft/cmp.categories.pre

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D151627

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/ComparisonCategories.h b/clang/include/clang/AST/ComparisonCategories.h
index 1c94cee4b7c4..b4ad37e394ce 100644
--- a/clang/include/clang/AST/ComparisonCategories.h
+++ b/clang/include/clang/AST/ComparisonCategories.h
@@ -39,9 +39,8 @@ class NamespaceDecl;
 /// An enumeration representing the 
diff erent 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,


        


More information about the cfe-commits mailing list