diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-09-17 04:32:15 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-09-17 04:32:15 +0000 |
commit | 1b4f1637fbcc9c72cf1c8e3836957f29c17b7b33 (patch) | |
tree | 98fc61e8aa47e2f243d5ee031344604be265bab0 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | c6b316acd9de6fac7c9b7eb13b1e4aedc53cd950 (diff) | |
download | llvm-1b4f1637fbcc9c72cf1c8e3836957f29c17b7b33.zip llvm-1b4f1637fbcc9c72cf1c8e3836957f29c17b7b33.tar.gz llvm-1b4f1637fbcc9c72cf1c8e3836957f29c17b7b33.tar.bz2 |
As per discussion with Doug Gregor on the IRC channel, introduce a new compiler switch: -fms-compatility.
Microsoft specific tweaking will now fall into 2 categories:
- fms-extension: Microsoft specific extensions that should never change the meaning of an otherwise well formed code. Currently map to LangOptions::Microsoft. (To be clearer, I am planning to change the name to LangOptions::MicrosoftExt).
- fms-compatibility: Really a MSVC emulation mode. Map to LangOptions::MicrosoftMode. Can change the meaning of an otherwise standard conformant program.
llvm-svn: 139978
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 582fcef..5f4310a 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1655,6 +1655,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.DollarIdents); Opts.PascalStrings = Args.hasArg(OPT_fpascal_strings); Opts.Microsoft = Args.hasArg(OPT_fms_extensions); + Opts.MicrosoftMode = Args.hasArg(OPT_fms_compatibility); Opts.MSCVersion = Args.getLastArgIntValue(OPT_fmsc_version, 0, Diags); Opts.Borland = Args.hasArg(OPT_fborland_extensions); Opts.WritableStrings = Args.hasArg(OPT_fwritable_strings); |