[C++20] [Modules] Don't create duplicated deduction guides for duplicated classes
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 28 Mar 2023 09:34:43 +0000 (17:34 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 28 Mar 2023 09:51:38 +0000 (17:51 +0800)
commit1b5980997bc03659a41329c3dff96ff274e13d85
tree5dc3b6cb6060a1060416d959a69683f4351a1794
parent25613507ccd843d8a9bfee7e4bd6b746d9cf640e
[C++20] [Modules] Don't create duplicated deduction guides for duplicated classes

Close https://github.com/llvm/llvm-project/issues/56916

Within C++20 modules, we may have multiple same constructors in
multiple same RecordDecls. And it doesn't make sense naturally to create
duplicated deduction guides for the duplicated constructors.
clang/docs/StandardCPlusPlusModules.rst
clang/lib/Sema/SemaTemplate.cpp
clang/test/Modules/pr56916.cppm [new file with mode: 0644]
clang/test/Modules/pr61317.cppm