[flang-commits] [clang] [flang] [flang][driver] Avoid mentions of Clang in Flang's command line reference. (PR #88932)

Andrzej WarzyƄski via flang-commits flang-commits at lists.llvm.org
Wed Apr 17 06:54:33 PDT 2024


banach-space wrote:

> Would you like me to introduce DocBriefForVariants?

+1 That would be helpful for `-I`:
* https://flang.llvm.org/docs/FlangCommandLineReference.html#cmdoption-flang-I-dir

Ideally we'd find more examples (so that you are not adding it for just one option).

As for this:
```
def Diag_Group : OptionGroup<"<W/R group>">, Group<CompileOnly_Group>,
                 DocName<"Diagnostic options">,
                 DocBrief<!strconcat(
                   StringForProgram<"Flags controlling which warnings, errors, and remarks %Program will generate. ">.str,
                   !cond(!eq(GlobalDocumentation.Program, "Clang"):
                       "See the :doc:`full list of warning and remark flags <DiagnosticsReference>`.",
                     true:
                       "See Clang's Diagnostic Reference for a full list of warning and remark flags."
                   )
                 )>;
```

Wouldn't replacing `Clang's` with `%Program's` be sufficient in this case?

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


More information about the flang-commits mailing list