[PATCH] D56731: Add -Wimplicit-ctad warning to diagnose CTAD on types with no user defined deduction guides.
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 15 10:20:33 PST 2019
EricWF created this revision.
EricWF added reviewers: rsmith, james.dennett, gromer.
Some style guides want to allow using CTAD only on types that "opt-in"; i.e. on types that are designed to support it and not just types that *happen* to work with it.
This patch implements the `-Wimplicit-ctad` warning, which is off by default, which warns when CTAD is used on a type that does not define any deduction guides.
Repository:
rC Clang
https://reviews.llvm.org/D56731
Files:
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaInit.cpp
test/SemaCXX/cxx1z-class-template-argument-deduction.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56731.181815.patch
Type: text/x-patch
Size: 3700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190115/ecf02443/attachment.bin>
More information about the cfe-commits
mailing list