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

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Mon Apr 20 09:58:53 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_) {
+    return true; // inline comment goes to end of source line
----------------
tarunprabhu wrote:

I don't understand the comment here. Is the behavior here different from fixed form and the compiler does not just skip over ignored columns?

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


More information about the flang-commits mailing list