-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest that iargc
and getarg
be replaced by command_argument_count
and get_command_argument
#267
Comments
getarg
and iargc
be replaced by command_argument_count
and get_command_argument
iargc
and getarg
be replaced by command_argument_count
and get_command_argument
There's also similar functions in other compilers that could be replaced. This feels like a new category, something like |
This should be quite nice to implement, and I imagine auto-fixes would be fairly easy (at least for the GNU functions, I can't speak for the other compiler-specific functions). @ZedThree I'm torn, as I think |
There's lots of other compiler extensions that could go in this category, e.g. Yes, maybe |
I had actually been thinking about a I also was thinking about rules for standards-compliance, where you could say you wanted code that was compliant with Fortran 2008, and then rules could identify the use of things from future standards (for instance, using intrinsics that were added in 2018/2023). |
For a code such as
from the gfortran documentation, Fortitude could suggest that
iargc
andgetarg
be replaced bycommand_argument_count
andget_command_argument
.The text was updated successfully, but these errors were encountered: