diff options
author | David Blaikie <dblaikie@gmail.com> | 2022-08-11 21:55:44 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2022-08-15 23:28:51 +0000 |
commit | c63f2581f4f8ff9766b55410674f97245c51b7b4 (patch) | |
tree | de9903e22fb6926d251ed893e8fa7db11ca0dd3e /clang/unittests/Format/FormatTestJava.cpp | |
parent | 5a1f864e89ab4a8e43fd12c9ee590b6c4558deb7 (diff) | |
download | llvm-c63f2581f4f8ff9766b55410674f97245c51b7b4.zip llvm-c63f2581f4f8ff9766b55410674f97245c51b7b4.tar.gz llvm-c63f2581f4f8ff9766b55410674f97245c51b7b4.tar.bz2 |
Enable -Wctad-maybe-unsupported in LLVM build
Warns on potentially unintended use of C++17 Class Template Argument
Deduction. Use of this feature with types that aren't intended to
support it may may future refactorings of those types more difficult -
so this warning fires whenever the feature is used with a type that may
not have intended to be used with CTAD (the warning uses the existence
of at least one explicit deduction guide to indicate that a type
intentionally supports CTAD - absent that, it's assumed to not be
intended to support CTAD & produces a warning).
This is disabled in libcxx because lots of the standard library is
assumed to provide ctad-usable APIs and the false positive suppression
in the diagnostic is based on system header classification which doesn't
apply in the libcxx build itself.
Differential Revision: https://reviews.llvm.org/D131727
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions