Skip to content

Commit

Permalink
[clang][c++20][NFC] ComparisonCategoryType - updated comment, remov…
Browse files Browse the repository at this point in the history
…ed `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
  • Loading branch information
Zingam committed May 28, 2023
1 parent d0e4119 commit fb250b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clang/include/clang/AST/ComparisonCategories.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ class NamespaceDecl;
/// 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,
Expand Down

0 comments on commit fb250b8

Please sign in to comment.