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

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed Jun 18 11:21:27 PDT 2025


================
@@ -171,7 +171,9 @@ 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};
+    auto &features {ci.getInvocation().getFortranOpts().features};
----------------
klausler wrote:

Please put the brace immediately after the name, and add `const` unless the object must be mutable.

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


More information about the flang-commits mailing list