[all-commits] [llvm/llvm-project] d052a5: [c++2a] Allow comparison functions to be explicitl...

Richard Smith via All-commits all-commits at lists.llvm.org
Tue Oct 22 18:17:56 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d052a578de58cbbb638cbe2dba05242d1ff443b9
      https://github.com/llvm/llvm-project/commit/d052a578de58cbbb638cbe2dba05242d1ff443b9
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2019-10-22 (Tue, 22 Oct 2019)

  Changed paths:
    M clang/include/clang/AST/Decl.h
    M clang/include/clang/Basic/DiagnosticCommonKinds.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/Decl.cpp
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    A clang/test/CXX/class/class.compare/class.compare.default/p1.cpp
    A clang/test/CXX/class/class.compare/class.eq/p1.cpp
    A clang/test/CXX/class/class.compare/class.rel/p1.cpp
    M clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/p1.cpp
    M clang/test/Parser/cxx0x-decl.cpp
    M clang/test/SemaCXX/cxx0x-defaulted-functions.cpp
    M clang/test/SemaCXX/cxx17-compat.cpp

  Log Message:
  -----------
  [c++2a] Allow comparison functions to be explicitly defaulted.

This adds some initial syntactic checking that only the appropriate
function signatures can be defaulted. No implicit definitions are
generated yet.




More information about the All-commits mailing list