[flang-commits] [clang] [flang] [flang][Driver] Add support of -fd-lines-as-comments and -fd-lines-as-code flags (PR #127605)
Kelvin Li via flang-commits
flang-commits at lists.llvm.org
Tue Feb 18 10:07:49 PST 2025
================
@@ -6747,8 +6747,18 @@ defm backtrace : BooleanFFlag<"backtrace">, Group<gfortran_Group>;
defm bounds_check : BooleanFFlag<"bounds-check">, Group<gfortran_Group>;
defm check_array_temporaries : BooleanFFlag<"check-array-temporaries">, Group<gfortran_Group>;
defm cray_pointer : BooleanFFlag<"cray-pointer">, Group<gfortran_Group>;
-defm d_lines_as_code : BooleanFFlag<"d-lines-as-code">, Group<gfortran_Group>;
-defm d_lines_as_comments : BooleanFFlag<"d-lines-as-comments">, Group<gfortran_Group>;
+defm d_lines_as_code
+ : BooleanFFlag<"d-lines-as-code">,
+ HelpText<"In fixed form, with lines beginning with 'd' or 'D', the first "
+ "column will be treated as if it contained a blank.">,
+ Group<gfortran_Group>,
+ Visibility<[FlangOption, FC1Option]>;
+defm d_lines_as_comments
+ : BooleanFFlag<"d-lines-as-comments">,
+ HelpText<"In fixed form, with lines beginning with 'd' or 'D', the lines "
+ "will be treated as a comment.">,
----------------
kkwli wrote:
Another suggestion:
"Treat fixed form lines with 'd' or 'D' in the first column as comments."
I think the 'd'/'D' is required to be in the first column.
https://github.com/llvm/llvm-project/pull/127605
More information about the flang-commits
mailing list