[flang-commits] [clang] [clang-tools-extra] [flang] [clang] Extend diagnose_if to accept more detailed warning information, take 2 (PR #119712)

kadir çetinkaya via flang-commits flang-commits at lists.llvm.org
Wed Jan 15 02:22:26 PST 2025


================
@@ -551,10 +547,12 @@ DiagnosticIDs::getDiagnosticSeverity(unsigned DiagID, SourceLocation Loc,
   // as well as disabling all messages which are currently mapped to Warning
   // (whether by default or downgraded from Error via e.g. -Wno-error or #pragma
   // diagnostic.)
+  // FIXME: Should -w be ignored for custom warnings without a group?
----------------
kadircet wrote:

similar to concerns in #70976, i believe this is going to break certain targets that can compile today with `-w`. can we preserve the existing behavior and explicitly make a decision around changing it if need be ?

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


More information about the flang-commits mailing list