[PATCH] D131727: Enable -Wctad-maybe-unsupported in LLVM build

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 11 15:36:45 PDT 2022


dblaikie marked an inline comment as done.
dblaikie added a comment.

>> If there are mixed feelings, I think we should be conservative by doing this, and let folks propose CTAD to make convincing arguments not to use -Wctad-maybe-unsupported
>
> I don't think there is any harm in requiring an explicit guide, and it shouldn't hinder the use of CTAD.  Do you know of any cases where such a guide cannot be added?

None that I know of.

Though the libcxx situation might be weird in some way - it looked like it was warning on standard library types (which the warning is meant to/does usually assume are valid CTAD classes even if they lack explicit guides) & adding all of those might be more than is helpful, so figuring out what's going on there and/or disabling the warning in the libcxx build might be suitable (though I don't know how to do that).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131727/new/

https://reviews.llvm.org/D131727



More information about the llvm-commits mailing list