In clang:
- Replace argc_ with Argc
- Replace argv_ with Argv
- Replace argv with Args
In flang:
- Replace argc_ with argc
- Replace argv_ with argv
- Replace argv with args
Paths
| Differential D97138
[clang][flang] Improve the consistency of the code-base ClosedPublic Authored by achieveartificialintelligence on Feb 21 2021, 12:10 AM.
Details Summary In clang:
In flang:
Diff Detail Event TimelineComment Actions In general, I don't work on the clang side. As such, I don't know the norms surrounding this sort of change in this area, and don't feel comfortable reviewing. You should look at getting reviewers who do work in that part of the repository. Comment Actions Thank you for submitting this @achieveartificialintelligence ! The aim of these changes is to improve the consistency of the code-base with respect to the coding standards documented separately for Clang and Flang. I think that this is a very positive suggestion, but would like to request a few refinements before this is ready:
Personally I'd prefer ArgC/argC and ArgV/argV for input parameters and ArgValues/argValues for the local variable. This way it would be more self-explanatory. But that's a matter of style. As long as this is consistent with the coding standards, I think that this should be accepted. This revision now requires changes to proceed.Feb 22 2021, 3:13 AM achieveartificialintelligence retitled this revision from [Driver] replace argc_ with argc to [clang][flang] Improve the consistency of the code-base. Comment Actions
Thank you very much for your comment.
Comment Actions Thanks @aganea. And I have a question that, should I use argc & argv or argC & argV in the flang part now ? Comment Actions
Looks good as it is now, thanks! This revision is now accepted and ready to land.Feb 25 2021, 5:18 AM This revision was landed with ongoing or failed builds.Feb 25 2021, 5:26 AM Closed by commit rGad14ccc8c22e: [clang][flang] Improve the consistency of the code-base (authored by achieveartificialintelligence). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 326313 clang/tools/driver/driver.cpp
flang/tools/flang-driver/driver.cpp
|
What about just Args? "Values" sounds a bit too broad.