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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits