diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-09-20 17:04:25 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-09-20 17:04:25 +0000 |
commit | 09ab088dc196863e4027b98916acb98013afb10f (patch) | |
tree | 4dc8c20fe8aed0bf4e43ef926a56861551689abd /docs/UsersManual.rst | |
parent | 7c98f9f5c3202a0b11eda7f30b4edd8cb4d1139c (diff) | |
download | clang-09ab088dc196863e4027b98916acb98013afb10f.tar.gz clang-09ab088dc196863e4027b98916acb98013afb10f.tar.bz2 clang-09ab088dc196863e4027b98916acb98013afb10f.tar.xz |
Use -fms-compatibility to trigger lookup into dep. bases
Update the docs for -fms-extensions and -fms-compatibility to try to
clarify the difference between the two.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/UsersManual.rst')
-rw-r--r-- | docs/UsersManual.rst | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst index 05d8f2715f..15bac1e3e7 100644 --- a/docs/UsersManual.rst +++ b/docs/UsersManual.rst @@ -1216,12 +1216,15 @@ Microsoft extensions clang has some experimental support for extensions from Microsoft Visual C++; to enable it, use the -fms-extensions command-line option. This is the default for Windows targets. Note that the support is incomplete; -enabling Microsoft extensions will silently drop certain constructs -(including ``__declspec`` and Microsoft-style asm statements). +some constructs like dllexport on classes with inline methods will be +ignored with a warning. clang has a -fms-compatibility flag that makes clang accept enough -invalid C++ to be able to parse most Microsoft headers. This flag is -enabled by default for Windows targets. +invalid C++ to be able to parse most Microsoft headers. For example, it +allows `unqualified lookup of dependent base class members +<http://clang.llvm.org/compatibility.html#dep_lookup_bases>`, which is a +common compatibility issue with clang. This flag is enabled by default +for Windows targets. -fdelayed-template-parsing lets clang delay all template instantiation until the end of a translation unit. This flag is enabled by default for |