[flang-commits] [flang] [flang][CLI] Have the CLI hint the flag to disable a warning (PR #144767)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Wed Jun 25 12:23:52 PDT 2025


================
@@ -171,7 +171,10 @@ bool FrontendAction::runParse(bool emitMessages) {
   if (emitMessages) {
     // Report any non-fatal diagnostics from getParsing now rather than
     // combining them with messages from semantics.
-    ci.getParsing().messages().Emit(llvm::errs(), ci.getAllCookedSources());
+    bool echoSourceLine{true};
+    const auto &features{ci.getInvocation().getFortranOpts().features};
----------------
tarunprabhu wrote:

Could we use a more concrete type here instead of auto? The type of features is not obvious from the initializer.

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


More information about the flang-commits mailing list