diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-21 05:21:48 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-21 05:21:48 +0000 |
commit | dae4ac4fe56ec60fc93b3e3c9f51e79e682084b9 (patch) | |
tree | 985aeb68564bd5554648b6e1175f0a5602736fd1 /include/clang/Basic/LangOptions.h | |
parent | 4d8ae4d57ed18d60da4d3786fb740607aa7c3688 (diff) |
Reorganize predefined macros for all Windows targets.
This adds an option to set the _MSC_VER macro without
recompiling. This is very useful when testing compatibility
with the Windows SDK and c++stdlib headers.
-fmsc-version=<version> (defaults to VS2003 (1300))
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.h')
-rw-r--r-- | include/clang/Basic/LangOptions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index a9c9935276..dd1dc20c09 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -122,6 +122,11 @@ private: public: unsigned InstantiationDepth; // Maximum template instantiation depth. + // Version of Microsoft Visual C/C++ we are pretending to be. This is + // temporary until we support all MS extensions used in Windows SDK and stdlib + // headers. Sets _MSC_VER. + unsigned MSCVersion; + std::string ObjCConstantStringClass; enum GCMode { NonGC, GCOnly, HybridGC }; |