[NFC] Explicitly add -std=c++14 option to tests that rely on the C++14 default
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 5 Feb 2019 12:05:53 +0000 (12:05 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 5 Feb 2019 12:05:53 +0000 (12:05 +0000)
commitdb64e7e9fac1005485aa2010566c24eb49140061
treee2d8463147d6b03e30bfe02f5bb685cb27786144
parent998a925e0e4720a619bfbd6a5842b4c5ca8a9b63
[NFC] Explicitly add -std=c++14 option to tests that rely on the C++14 default

When Clang/LLVM is built with the CLANG_DEFAULT_STD_CXX CMake macro that sets
the default standard to something other than C++14, there are a number of lit
tests that fail as they rely on the C++14 default.
This patch just adds the language standard option explicitly to such test cases.

Differential revision: https://reviews.llvm.org/D57581

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