[flang-commits] [clang] [flang] [Flang] Adding -ffree-line-length-<value> flag (PR #192941)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Tue Apr 21 07:17:45 PDT 2026


================
@@ -822,13 +826,16 @@ static bool parseFrontendArgs(FrontendOptions &opts, llvm::opt::ArgList &args,
       diags.Report(clang::diag::err_drv_negative_columns)
           << arg->getOption().getName() << arg->getValue();
     } else if (columns == 0) {
-      opts.fixedFormColumns = 1000000;
-    } else if (columns < 7) {
+      columns = 1000000;
----------------
tarunprabhu wrote:

Since the value of 10000 is used as the default value of `freeFormColumns` in `FrontendOptions.h`, perhaps that value should be used here as well?

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


More information about the flang-commits mailing list