[clang] Add fix-it note to defaulted-function-deleted warning
authorNathan James <n.james93@hotmail.co.uk>
Tue, 4 Oct 2022 18:38:09 +0000 (19:38 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Tue, 4 Oct 2022 18:38:10 +0000 (19:38 +0100)
commit1376c73927dcb899db5d46f7b970692e2e95f9ac
treebc8fa3b11fc07861b4e7085e72f9eb7ab7604e71
parent266ec801fb23f9f5f1d61ca9466e0805fbdb78a7
[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
22 files changed:
clang/docs/ReleaseNotes.rst
clang/include/clang/AST/Decl.h
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Sema.h
clang/lib/AST/ASTImporter.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/lib/Serialization/ASTWriterDecl.cpp
clang/test/CXX/class.derived/class.abstract/p16.cpp
clang/test/CXX/class/class.compare/class.compare.default/p1.cpp
clang/test/CXX/class/class.compare/class.compare.default/p2.cpp
clang/test/CXX/class/class.compare/class.compare.secondary/p2.cpp
clang/test/CXX/class/class.compare/class.eq/p2.cpp
clang/test/CXX/class/class.compare/class.rel/p2.cpp
clang/test/CXX/class/class.compare/class.spaceship/p1.cpp
clang/test/CXX/class/class.compare/class.spaceship/p2.cpp
clang/test/CXX/drs/dr6xx.cpp
clang/test/SemaCXX/cxx0x-deleted-default-ctor.cpp
clang/test/SemaCXX/dr1301.cpp
clang/test/SemaCXX/explicitly-defaulted.cpp [new file with mode: 0644]
clang/test/SemaCXX/microsoft-dtor-lookup-cxx11.cpp
clang/test/SemaObjCXX/arc-0x.mm