================ @@ -3382,10 +3382,19 @@ def fopenmp : Flag<["-"], "fopenmp">, Group<f_Group>, HelpText<"Parse OpenMP pragmas and generate parallel code.">; def fno_openmp : Flag<["-"], "fno-openmp">, Group<f_Group>, Flags<[NoArgumentUnused]>; +class OpenMPVersionHelp<string program, string default> { + string str = !strconcat( + "Set OpenMP version (e.g. 45 for OpenMP 4.5, 51 for OpenMP 5.1). Default value is ", + default, " for ", program); +} def fopenmp_version_EQ : Joined<["-"], "fopenmp-version=">, Group<f_Group>, Flags<[NoArgumentUnused]>, Visibility<[ClangOption, CC1Option, FlangOption, FC1Option]>, - HelpText<"Set OpenMP version (e.g. 45 for OpenMP 4.5, 51 for OpenMP 5.1). Default value is 51 for Clang">; + HelpText<OpenMPVersionHelp<"Clang", "51">.str>, + HelpTextForVisibilities<[ + HelpTextForVisibility<FlangOption, OpenMPVersionHelp<"Flang", "11">.str>, + HelpTextForVisibility<FC1Option, OpenMPVersionHelp<"Flang", "11">.str>, ---------------- DavidSpickett wrote:
Sure, I can make it `array<pair<array<visibility>, char*>>`. https://github.com/llvm/llvm-project/pull/81869 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits