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

Jean-Didier PAILLEUX via flang-commits flang-commits at lists.llvm.org
Mon May 4 06:34:54 PDT 2026


================
@@ -568,6 +569,8 @@ void Prescanner::SkipToEndOfLine() {
 bool Prescanner::MustSkipToEndOfLine() const {
   if (inFixedForm_ && column_ > fixedFormColumnLimit_ && !tabInCurrentLine_) {
     return true; // skip over ignored columns in right margin (73:80)
+  } else if (!inFixedForm_ && column_ > freeFormColumnLimit_) {
----------------
JDPailleux wrote:

`0` and `none` behave the same behavior, which is to use the default value of `freeFormColumnLimit` . I don't think it's a good idea to treat the case `0` here as a sentinel and not allow 0 on the command line.

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


More information about the flang-commits mailing list