Rename language option MicrosoftMode to MSVCCompat

Press ? to show keyboard shortcuts.
Committed
alpJan 14 2014, 4:51 AM
Parents
rL199208: [OpenCL] Disallow casts between address spaces.
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

Rename language option MicrosoftMode to MSVCCompat

There's been long-standing confusion over the role of these two options. This
commit makes the necessary changes to differentiate them clearly, following up
from r198936.

MicrosoftExt (aka. fms-extensions):
Enable largely unobjectionable Microsoft language extensions to ease
portability. This mode, also supported by gcc, is used for building software
like FreeBSD and Linux kernel extensions that share code with Windows drivers.

MSVCCompat (aka. -fms-compatibility, formerly MicrosoftMode):
Turn on a special mode supporting 'heinous' extensions for drop-in
compatibility with the Microsoft Visual C++ product. Standards-compilant C and
C++ code isn't guaranteed to work in this mode. Implies MicrosoftExt.

Note that full -fms-compatibility mode is currently enabled by default on the
Windows target, which may need tuning to serve as a reasonable default.

See cfe-commits for the full discourse, thread 'r198497 - Move MS predefined
type_info out of InitializePredefinedMacros'

No change in behaviour.

rL199209

cfe/trunk/include/clang/Basic/LangOptions.def

Loading...

cfe/trunk/lib/AST/ASTContext.cpp

Loading...

cfe/trunk/lib/AST/Expr.cpp

Loading...

cfe/trunk/lib/Basic/IdentifierTable.cpp

Loading...

cfe/trunk/lib/Frontend/CompilerInvocation.cpp

Loading...

cfe/trunk/lib/Frontend/InitPreprocessor.cpp

Loading...

cfe/trunk/lib/Lex/Lexer.cpp

Loading...

cfe/trunk/lib/Lex/PPDirectives.cpp

Loading...

cfe/trunk/lib/Lex/TokenLexer.cpp

Loading...

cfe/trunk/lib/Parse/Parser.cpp

Loading...

cfe/trunk/lib/Sema/JumpDiagnostics.cpp

Loading...

cfe/trunk/lib/Sema/Sema.cpp

Loading...

cfe/trunk/lib/Sema/SemaAccess.cpp

Loading...

cfe/trunk/lib/Sema/SemaCXXScopeSpec.cpp

Loading...

cfe/trunk/lib/Sema/SemaDecl.cpp

Loading...

cfe/trunk/lib/Sema/SemaDeclCXX.cpp

Loading...

cfe/trunk/lib/Sema/SemaExpr.cpp

Loading...

cfe/trunk/lib/Sema/SemaExprCXX.cpp

Loading...

cfe/trunk/lib/Sema/SemaLookup.cpp

Loading...

cfe/trunk/lib/Sema/SemaOverload.cpp

Loading...

Add Comment