[flang-commits] [flang] [flang][warnings] systematically guard warnings (PR #154234)

Andre Kuhlenschmidt via flang-commits flang-commits at lists.llvm.org
Tue Aug 19 13:55:28 PDT 2025


================
@@ -255,6 +255,16 @@ class FoldingContext {
   const common::LanguageFeatureControl &languageFeatures() const {
     return languageFeatures_;
   }
+  template <typename... A>
+  parser::Message *Warn(common::LanguageFeature feature, A &&...args) {
+    return messages_.Warn(/*isInModuleFile=*/false, languageFeatures_, feature,
----------------
akuhlens wrote:

That is a good questions, that I don't know the answer to. Probably not, the vast majority of calls that I modified didn't check and it seemed like the standard check depends on semantics.

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


More information about the flang-commits mailing list