[all-commits] [llvm/llvm-project] cafc74: [c++20] Synthesis of defaulted comparison functions.

Richard Smith via All-commits all-commits at lists.llvm.org
Sun Dec 8 23:31:18 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cafc7416baf7eecef8ecaf05802f2f7c0da725c0
      https://github.com/llvm/llvm-project/commit/cafc7416baf7eecef8ecaf05802f2f7c0da725c0
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2019-12-08 (Sun, 08 Dec 2019)

  Changed paths:
    M clang/include/clang/AST/Decl.h
    M clang/include/clang/AST/DeclCXX.h
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/CXX/class/class.compare/class.compare.default/p2.cpp
    A clang/test/CXX/class/class.compare/class.compare.default/p5.cpp
    M clang/test/CXX/class/class.compare/class.eq/p2.cpp
    A clang/test/CXX/class/class.compare/class.eq/p3.cpp
    M clang/test/CXX/class/class.compare/class.rel/p2.cpp
    M clang/test/CXX/class/class.compare/class.spaceship/p1.cpp
    A clang/test/CXX/class/class.compare/class.spaceship/p3.cpp

  Log Message:
  -----------
  [c++20] Synthesis of defaulted comparison functions.

Array members are not yet handled. In addition, defaulted comparisons
can't yet find comparison operators by unqualified lookup (only by
member lookup and ADL). These issues will be fixed in follow-on changes.




More information about the All-commits mailing list