]> granicus.if.org Git - clang/commit
[clang-cl] Define _MSVC_LANG
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 28 Jun 2016 03:13:16 +0000 (03:13 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 28 Jun 2016 03:13:16 +0000 (03:13 +0000)
commite71aa188b2f2815be25a870c7a29dc1b8211cc2c
tree7ba9d11405b3b4e16b0c95015b9ad99922a9df1b
parentf524908a62d6ab0bb8e46476bbd1d31d7f8e3060
[clang-cl] Define _MSVC_LANG

Recently, Microsoft added support for a flag, /std, which controls which
version of the language rules MSVC should use.
MSVC hasn't updated __cplusplus though.
Instead, they added a new macro, _MSVC_LANG, which is defined in a
similar fashion to __cplusplus.  This is used to indicate which mode the
compiler is in.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273987 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Preprocessor/predefined-macros.c