[all-commits] [llvm/llvm-project] 9eb096: [libcxx] makes comparison operators for `std::*_or...

Christopher Di Bella via All-commits all-commits at lists.llvm.org
Mon May 10 23:42:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9eb0969a767bdc8ed5b28dbcc51b46c2ee088256
      https://github.com/llvm/llvm-project/commit/9eb0969a767bdc8ed5b28dbcc51b46c2ee088256
  Author: Christopher Di Bella <cjdb at google.com>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M libcxx/include/compare

  Log Message:
  -----------
  [libcxx] makes comparison operators for `std::*_ordering` types hidden friends

The standard leaves it up to the implementation to decide whether or not
these operators are hidden friends. There are several (well-documented)
reasons to prefer hidden friends, as well as an argument for improved
readability.

Depends on D100342.

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




More information about the All-commits mailing list