[clang] [clang-tools-extra] [clang] Extend diagnose_if to accept more detailed warning information (PR #70976)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 11 08:21:55 PDT 2024


================
@@ -870,7 +872,8 @@ class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
   /// \param FormatString A fixed diagnostic format string that will be hashed
   /// and mapped to a unique DiagID.
   template <unsigned N>
-  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
+  [[deprecated("Use a CustomDiagDesc instead of a Level")]] unsigned
----------------
AaronBallman wrote:

If we still have uses within tree (which it looks like we do), I think this may cause problems for `-Werror` builds, won't it?

https://github.com/llvm/llvm-project/pull/70976


More information about the cfe-commits mailing list