r199247 - Clarify driver/frontend -fms-compatibility help text

Nico Weber thakis at chromium.org
Tue Jan 14 21:59:24 PST 2014


On Tue, Jan 14, 2014 at 11:13 AM, Alp Toker <alp at nuanti.com> wrote:

> Author: alp
> Date: Tue Jan 14 13:13:00 2014
> New Revision: 199247
>
> URL: http://llvm.org/viewvc/llvm-project?rev=199247&view=rev
> Log:
> Clarify driver/frontend -fms-compatibility help text
>
> Better describe the flag that enables drop-in MSVC compatibility, including
> ability to parse MS standard headers. This is intended to distinguish it
> from
> -fms-extensions, the more established and 'gentler' flag also supported by
> GCC.
>
> The new wording matches up with the internal description introduced in
> r198936.
> Still room for improvement (e.g. C++ is part of the product name, yet the
> flag
> also applies to C) but it's a step forward from "Microsoft mode".
>
> Modified:
>     cfe/trunk/include/clang/Driver/Options.td
>
> Modified: cfe/trunk/include/clang/Driver/Options.td
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=199247&r1=199246&r2=199247&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Driver/Options.td (original)
> +++ cfe/trunk/include/clang/Driver/Options.td Tue Jan 14 13:13:00 2014
> @@ -575,9 +575,9 @@ def fmessage_length_EQ : Joined<["-"], "
>  def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>,
> Flags<[CC1Option]>,
>    HelpText<"Accept some non-standard constructs supported by the
> Microsoft compiler">;
>  def fms_compatibility : Flag<["-"], "fms-compatibility">, Group<f_Group>,
> Flags<[CC1Option]>,
> -  HelpText<"Enable Microsoft compatibility mode">;
> +  HelpText<"Enable full Microsoft Visual C++ compatibility">;
>

Isn't "full" too strong? I thought this was more "enough to parse ms sdk
headers and link to mscrt", not "full" compatibility.


>  def fmsc_version : Joined<["-"], "fmsc-version=">, Group<f_Group>,
> Flags<[CC1Option, CoreOption]>,
> -  HelpText<"Version of the Microsoft C/C++ compiler to report in _MSC_VER
> (0 = don't define it (default))">;
> +  HelpText<"Microsoft compiler version number to report in _MSC_VER (0 =
> don't define it (default))">;
>  def fdelayed_template_parsing : Flag<["-"], "fdelayed-template-parsing">,
> Group<f_Group>,
>    HelpText<"Parse templated function definitions at the end of the "
>             "translation unit">,  Flags<[CC1Option]>;
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140114/651a2cf9/attachment.html>


More information about the cfe-commits mailing list