[all-commits] [llvm/llvm-project] 1376c7: [clang] Add fix-it note to defaulted-function-dele...

Nathan James via All-commits all-commits at lists.llvm.org
Tue Oct 4 11:38:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1376c73927dcb899db5d46f7b970692e2e95f9ac
      https://github.com/llvm/llvm-project/commit/1376c73927dcb899db5d46f7b970692e2e95f9ac
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/Decl.h
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/ASTImporter.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Serialization/ASTWriterDecl.cpp
    M clang/test/CXX/class.derived/class.abstract/p16.cpp
    M clang/test/CXX/class/class.compare/class.compare.default/p1.cpp
    M clang/test/CXX/class/class.compare/class.compare.default/p2.cpp
    M clang/test/CXX/class/class.compare/class.compare.secondary/p2.cpp
    M clang/test/CXX/class/class.compare/class.eq/p2.cpp
    M clang/test/CXX/class/class.compare/class.rel/p2.cpp
    M clang/test/CXX/class/class.compare/class.spaceship/p1.cpp
    M clang/test/CXX/class/class.compare/class.spaceship/p2.cpp
    M clang/test/CXX/drs/dr6xx.cpp
    M clang/test/SemaCXX/cxx0x-deleted-default-ctor.cpp
    M clang/test/SemaCXX/dr1301.cpp
    A clang/test/SemaCXX/explicitly-defaulted.cpp
    M clang/test/SemaCXX/microsoft-dtor-lookup-cxx11.cpp
    M clang/test/SemaObjCXX/arc-0x.mm

  Log Message:
  -----------
  [clang] Add fix-it note to defaulted-function-deleted warning

Adds a fix to the diagnostic of replacing the `= default` to `= delete`

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list