[PATCH] D141441: [clang] Add ElaboratedType sugaring for types on implicit special members

Brad King via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 10 15:46:41 PST 2023


brad.king created this revision.
Herald added a subscriber: arphaman.
Herald added a project: All.
brad.king requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Extend the change from commit 15f3cd6bfc67 <https://reviews.llvm.org/rG15f3cd6bfc670ba6106184a903eb04be059e5977> ([clang] Implement
ElaboratedType sugaring for types written bare, 2021-10-11, D112374 <https://reviews.llvm.org/D112374>)
to cover types in the signatures of the copy-constructor, copy-assignment,
move-constructor, and move-assignment members in C++ record types.

With this fix, diagnostic messages print types of special members
consistently whether they are explicitly or implicitly defined.

Fixes: #59557


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141441

Files:
  clang/lib/Sema/SemaDeclCXX.cpp
  clang/test/AST/ast-dump-decl.cpp
  clang/test/AST/ast-dump-expr-json.cpp
  clang/test/Analysis/auto-obj-dtors-cfg-output.cpp
  clang/test/Analysis/lifetime-cfg-output.cpp
  clang/test/Analysis/missing-bind-temporary.cpp
  clang/test/Analysis/scopes-cfg-output.cpp
  clang/test/CXX/basic/basic.lookup/basic.lookup.argdep/p4.cpp
  clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/dcl.fct.def.default/p2.cpp
  clang/test/Index/print-type.cpp
  clang/test/Misc/diag-template-diffing.cpp
  clang/test/SemaCXX/conversion-function.cpp
  clang/test/SemaCXX/cxx11-call-to-deleted-constructor.cpp
  clang/test/SemaCXX/deduced-return-type-cxx14.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141441.488017.patch
Type: text/x-patch
Size: 31329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230110/9f69b164/attachment-0001.bin>


More information about the cfe-commits mailing list