diff options
| author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2019-02-05 12:05:53 +0000 |
|---|---|---|
| committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2019-02-05 12:05:53 +0000 |
| commit | db64e7e9fac1005485aa2010566c24eb49140061 (patch) | |
| tree | e2d8463147d6b03e30bfe02f5bb685cb27786144 /clang/test/CodeCompletion | |
| parent | 998a925e0e4720a619bfbd6a5842b4c5ca8a9b63 (diff) | |
| download | bcm5719-llvm-db64e7e9fac1005485aa2010566c24eb49140061.tar.gz bcm5719-llvm-db64e7e9fac1005485aa2010566c24eb49140061.zip | |
[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
Diffstat (limited to 'clang/test/CodeCompletion')
| -rw-r--r-- | clang/test/CodeCompletion/crash-skipped-bodies-template-inst.cpp | 2 | ||||
| -rw-r--r-- | clang/test/CodeCompletion/skip-auto-funcs.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeCompletion/crash-skipped-bodies-template-inst.cpp b/clang/test/CodeCompletion/crash-skipped-bodies-template-inst.cpp index 6161f100cb5..7fec995ba06 100644 --- a/clang/test/CodeCompletion/crash-skipped-bodies-template-inst.cpp +++ b/clang/test/CodeCompletion/crash-skipped-bodies-template-inst.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:24:5 %s -o - 2>&1 | FileCheck %s +// RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:24:5 %s -o - 2>&1 | FileCheck %s template <class T> auto make_func() { struct impl { diff --git a/clang/test/CodeCompletion/skip-auto-funcs.cpp b/clang/test/CodeCompletion/skip-auto-funcs.cpp index ab2465d7fb0..c0fa0f556da 100644 --- a/clang/test/CodeCompletion/skip-auto-funcs.cpp +++ b/clang/test/CodeCompletion/skip-auto-funcs.cpp @@ -1,7 +1,7 @@ // We run clang in completion mode to force skipping of function bodies and // check if the function bodies were skipped by observing the warnings that // clang produces. -// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:60:1 %s -o - 2>&1 | FileCheck %s +// RUN: not %clang_cc1 -std=c++14 -fsyntax-only -code-completion-at=%s:60:1 %s -o - 2>&1 | FileCheck %s template <class T> auto not_skipped() { int x; |

