[PATCH] D76997: Fix StringRef::strLen in windows with clang++ C++17

Aaron Ballman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 09:08:42 PDT 2020


aaron.ballman added a comment.

In D76997#2020466 <https://reviews.llvm.org/D76997#2020466>, @isuruf wrote:

> I've only used this from clang. How do I set it using clang's gnu driver?


`clang-cl.exe /std:c++17 /Zc:__cplusplus /E -Xclang -dM C:\Users\aballman\Desktop\test.cpp` (test.cpp is an empty file) lists `#define __cplusplus 201703L`, while dropping either `/Zc:` or changing `/std:` changes the reported value.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76997/new/

https://reviews.llvm.org/D76997





More information about the llvm-commits mailing list