[flang-commits] [clang] [clang-tools-extra] [flang] [clang] Extend diagnose_if to accept more detailed warning information, take 2 (PR #119712)
Aaron Ballman via flang-commits
flang-commits at lists.llvm.org
Tue Jan 14 10:51:39 PST 2025
================
@@ -892,6 +894,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>
+ // TODO: Deprecate this once all uses are removed from LLVM
+ // [[deprecated("Use a CustomDiagDesc instead of a Level")]]
----------------
AaronBallman wrote:
```suggestion
// TODO: Deprecate this once all uses are removed from Clang.
// [[deprecated("Use a CustomDiagDesc instead of a Level")]]
```
I kind of wonder if we should have `-Wno-error=deprecated` in our CMake scripts and then just enable these sort of deprecations. We're terrible about ever actually removing uses of deprecated APIs and I think it's because they don't cause enough pain for us.
https://github.com/llvm/llvm-project/pull/119712
More information about the flang-commits
mailing list