diff options
author | Soumi Manna <soumi.manna@intel.com> | 2019-12-04 14:38:00 -0800 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-12-04 14:39:41 -0800 |
commit | 9c29aed6980dce42f2a071db09663c435ac21ad1 (patch) | |
tree | 9ccd9edc504ffa480e761fc4045686615c864886 /clang/test/Preprocessor/predefined-win-macros.c | |
parent | 8b8a7d1ecfb7fd07ffda4a34ef167074e841d3bc (diff) | |
download | bcm5719-llvm-9c29aed6980dce42f2a071db09663c435ac21ad1.tar.gz bcm5719-llvm-9c29aed6980dce42f2a071db09663c435ac21ad1.zip |
Bug 43965 - Value of _MSVC_LANG doesn't match MSVC++ VS2019 /std:c++latest mode
Summary:
The patch adds correct value of _MSVC_LANG to match with MSVC++ VS2019 /std:c++latest mode.
Bugzilla - Bug 43965
https://bugs.llvm.org/show_bug.cgi?id=43965
The value for a MS specific macro differs from Microsoft starting with VS2019 in /std:c++latest mode.
-bash-4.2$ cat msvclang.cpp
_MSVC_LANG
-bash-4.2$ cl /std:c++latest -E msvclang.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.20.27508.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
/std:c++latest is provided as a preview of language features from the latest C++
working draft, and we're eager to hear about bugs and suggestions for improvements.
However, note that these features are provided as-is without support, and subject
to changes or removal as the working draft evolves. See
https://go.microsoft.com/fwlink/?linkid=2045807 for details.
msvclang.cpp
201705L
-bash-4.2$ clang-cl /std:c++latest -E msvclang.cpp
201704L
Reviewers: rnk
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D70996
Diffstat (limited to 'clang/test/Preprocessor/predefined-win-macros.c')
-rw-r--r-- | clang/test/Preprocessor/predefined-win-macros.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/predefined-win-macros.c b/clang/test/Preprocessor/predefined-win-macros.c index 6034c085024..928ca6f4fa8 100644 --- a/clang/test/Preprocessor/predefined-win-macros.c +++ b/clang/test/Preprocessor/predefined-win-macros.c @@ -47,7 +47,7 @@ // RUN: %clang_cc1 %s -x c++ -E -dM -triple i686-pc-win32 -fms-extensions -fms-compatibility \ // RUN: -fms-compatibility-version=19.00 -std=c++2a -o - | FileCheck -match-full-lines %s --check-prefix=CHECK-MS-CPP2A // CHECK-MS-CPP2A: #define _MSC_VER 1900 -// CHECK-MS-CPP2A: #define _MSVC_LANG 201704L +// CHECK-MS-CPP2A: #define _MSVC_LANG 201705L // RUN: %clang_cc1 -triple i386-windows %s -E -dM -o - \ // RUN: | FileCheck -match-full-lines %s --check-prefix=CHECK-X86-WIN |