[PATCH] D60539: Add -std=c++14 language standard option to tests that require C++14 default

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 12 22:34:37 PDT 2019


rsmith added a comment.

In D60539#1464097 <https://reviews.llvm.org/D60539#1464097>, @sammccall wrote:

> Adding `-std=c++14` doesn't work in general as it has side-effects: `clang -std=c++14 foo.c` is a warning, `clang -std=c++14 -x c-header foo.h` is an error. It would be nice if clang had a flag to specify the default c++ language version without also forcing the file to be parsed as C++, but AFAIK it does not.


Hmm. We have `-std-default`, but apparently it only works in C. :( Shouldn't be too hard to fix that.


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

https://reviews.llvm.org/D60539





More information about the cfe-commits mailing list