From: Nico Weber Date: Sun, 12 Jan 2014 23:12:35 +0000 (+0000) Subject: Add help text for -MMD, -MD, -MM, -M, -MF. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fe6f3fc71552ee79115387ab3a005869f27b383;p=clang Add help text for -MMD, -MD, -MM, -M, -MF. Also regroup these flags so that alike flags are next to each other, while keeping the list still mostly alphabetical. The help text isn't ideal, but I feel it's less maze-like than http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Preprocessor-Options.html (look at the entry for '-MMD' and count how many other entries you need to look up until you know what it does). And it looks like -M / -MM are mostly an historical accident and most people use -MD or -MMD for deps tracking these days, so make -M / -MM refer to -MD / -MMD instead of the other way round. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199067 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index e1930a2e95..948b4487ab 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -218,20 +218,26 @@ def I_ : Flag<["-"], "I-">, Group; def I : JoinedOrSeparate<["-"], "I">, Group, Flags<[CC1Option]>, HelpText<"Add directory to include search path">; def L : JoinedOrSeparate<["-"], "L">, Flags<[RenderJoined]>; -def MD : Flag<["-"], "MD">, Group; -def MF : JoinedOrSeparate<["-"], "MF">, Group; +def MD : Flag<["-"], "MD">, Group, + HelpText<"Write a depfile containing user and system headers">; +def MMD : Flag<["-"], "MMD">, Group, + HelpText<"Write a depfile containing user headers">; +def M : Flag<["-"], "M">, Group, + HelpText<"Like -MD, but also implies -E and writes to stdout by default">; +def MM : Flag<["-"], "MM">, Group, + HelpText<"Like -MMD, but also implies -E and writes to stdout by default">; +def MF : JoinedOrSeparate<["-"], "MF">, Group, + HelpText<"Write depfile output from -MMD, -MD, -MM, or -M to ">, + MetaVarName<"">; def MG : Flag<["-"], "MG">, Group, Flags<[CC1Option]>, - HelpText<"Add missing headers to dependency list">; -def MMD : Flag<["-"], "MMD">, Group; -def MM : Flag<["-"], "MM">, Group; + HelpText<"Add missing headers to depfile">; def MP : Flag<["-"], "MP">, Group, Flags<[CC1Option]>, HelpText<"Create phony target for each dependency (other than main file)">; def MQ : JoinedOrSeparate<["-"], "MQ">, Group, Flags<[CC1Option]>, - HelpText<"Specify target to quote for dependency">; + HelpText<"Specify name of main file output to quote in depfile">; def MT : JoinedOrSeparate<["-"], "MT">, Group, Flags<[CC1Option]>, - HelpText<"Specify target for dependency">; + HelpText<"Specify name of main file output in depfile">; def Mach : Flag<["-"], "Mach">; -def M : Flag<["-"], "M">, Group; def O0 : Flag<["-"], "O0">, Group, Flags<[CC1Option]>; def O4 : Flag<["-"], "O4">, Group, Flags<[CC1Option]>; def ObjCXX : Flag<["-"], "ObjC++">, Flags<[DriverOption]>,