diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-11-13 22:47:22 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-11-13 22:47:22 +0000 |
commit | f2941ec5bfcce36feffac514582d168b4e0ef811 (patch) | |
tree | b10b27f7ff2d1aaf7a2bf462141a6092e6bec1b2 /include/clang/Basic/Builtins.h | |
parent | d4315fe3c4c9684068564cb68f262d1a805329a4 (diff) |
Only provide MS builtins when -fms-extensions is on
We already have builtins that are only available in GNU mode, so this
mirrors that.
Reviewers: rsmith
Differential Revision: http://llvm-reviews.chandlerc.com/D2128
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Builtins.h')
-rw-r--r-- | include/clang/Basic/Builtins.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/Builtins.h b/include/clang/Basic/Builtins.h index b66c0db464..9756f21a1c 100644 --- a/include/clang/Basic/Builtins.h +++ b/include/clang/Basic/Builtins.h @@ -35,8 +35,10 @@ namespace clang { C_LANG = 0x2, // builtin for c only. CXX_LANG = 0x4, // builtin for cplusplus only. OBJC_LANG = 0x8, // builtin for objective-c and objective-c++ + MS_LANG = 0x10, // builtin requires MS mode. ALL_LANGUAGES = C_LANG | CXX_LANG | OBJC_LANG, // builtin for all languages. - ALL_GNU_LANGUAGES = ALL_LANGUAGES | GNU_LANG // builtin requires GNU mode. + ALL_GNU_LANGUAGES = ALL_LANGUAGES | GNU_LANG, // builtin requires GNU mode. + ALL_MS_LANGUAGES = ALL_LANGUAGES | MS_LANG // builtin requires MS mode. }; namespace Builtin { |