Create diagnostic group for definition deprecation warning
authorNuri Amari <nuri.amari99@gmail.com>
Sun, 16 Jul 2023 16:35:25 +0000 (12:35 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Sun, 16 Jul 2023 16:36:26 +0000 (12:36 -0400)
commitb0697a1cb0b539c773548f62402816e2d9b6f107
tree16e2ada2e1413eac6973c249b2daaf56d44ee24a
parentc7c0095b29283c65937e8571f23823b164431595
Create diagnostic group for definition deprecation warning

In https://reviews.llvm.org/D126664, a warning is introduced
warning against the deprecated out of line definition of a
static constexpr member in C++17 and later. Prior to this patch,
the only diagnostic group controlling this diagnostic was -Wdeprecated,
which controls many many diagnostics. This patch creates
a diagnostic group specifically for this warning so it can
be controlled in isolation, while also being included with -Wdeprecated.

Differential Revision: https://reviews.llvm.org/D153881
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/test/SemaCXX/redundant-out-of-line-static-constexpr-member-def-diag.cpp [new file with mode: 0644]