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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to