[PATCH] D133425: Silence -Wctad-maybe-unsupported stemming from system headers
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 7 07:44:38 PDT 2022
erichkeane accepted this revision.
erichkeane added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/lib/Sema/SemaInit.cpp:10303
// Warn if CTAD was used on a type that does not have any user-defined
- // deduction guides.
- if (!HasAnyDeductionGuide) {
- Diag(TSInfo->getTypeLoc().getBeginLoc(),
- diag::warn_ctad_maybe_unsupported)
- << TemplateName;
+ // deduction guides, but do not warn if the deduction guide is in a system
+ // header on the assumption that the support is intentional there.
----------------
"but do not warn if the type without a deduction guide is in a system..."
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133425/new/
https://reviews.llvm.org/D133425
More information about the cfe-commits
mailing list