[PATCH] D57581: Explicitly add language standard option to test cases that rely on the C++14 default

Nemanja Ivanovic via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 1 05:30:05 PST 2019


nemanjai created this revision.
nemanjai added reviewers: ilya-biryukov, jfb, takuto.ikuta, rjmccall, rsmith, SjoerdMeijer, t.p.northover, erichkeane.
Herald added a subscriber: eraman.
Herald added a project: clang.

One of the platforms on which we do regular builds has some system headers that are not compatible with C++14. As a result, we can't compile any code (including `test-suite` tests) if we leave the default as is. So what we do is set the CMake option that allows us to set clang's default language level (we set it to `gnu++11` in our case). However, this causes failures in all of the lit tests attached.

This patch simply adds the `-std=gnu++14` option to match the typical default for clang that the test cases rely on.

I've tried to add people that have added/modified the tests as reviewers to this patch - so I am sorry about the very long list of reviewers. Please let me know if this is an acceptable change.


Repository:
  rC Clang

https://reviews.llvm.org/D57581

Files:
  test/CodeCompletion/crash-skipped-bodies-template-inst.cpp
  test/CodeCompletion/skip-auto-funcs.cpp
  test/CodeGenCXX/auto-var-init.cpp
  test/CodeGenCXX/dllexport-no-dllexport-inlines.cpp
  test/CodeGenCXX/new-overflow.cpp
  test/CodeGenCXX/new.cpp
  test/Lexer/cxx-features.cpp
  test/Lexer/half-literal.cpp
  test/Modules/friend-definition-2.cpp
  test/Modules/merge-lambdas.cpp
  test/SemaCXX/int-ptr-cast-SFINAE.cpp
  test/SemaTemplate/argument-dependent-lookup.cpp
  test/SemaTemplate/class-template-decl.cpp
  test/SemaTemplate/typo-dependent-name.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57581.184728.patch
Type: text/x-patch
Size: 8475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190201/264d0fbb/attachment.bin>


More information about the cfe-commits mailing list