File tree Expand file tree Collapse file tree 12 files changed +12
-10
lines changed Expand file tree Collapse file tree 12 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 2
2
// RUN: -config="{CheckOptions: \
3
3
// RUN: [{key: bugprone-dangling-handle.HandleClasses, \
4
4
// RUN: value: 'std::basic_string_view; ::llvm::StringRef;'}]}"
5
- // FIXME: Fix the checker to work in C++17 mode.
5
+ // FIXME: Fix the checker to work in C++17 or later mode.
6
6
7
7
namespace std {
8
8
Original file line number Diff line number Diff line change 1
- // RUN: %check_clang_tidy -std=c++17 %s bugprone-easily-swappable-parameters %t \
1
+ // RUN: %check_clang_tidy -std=c++17-or-later %s bugprone-easily-swappable-parameters %t \
2
2
// RUN: -config='{CheckOptions: [ \
3
3
// RUN: {key: bugprone-easily-swappable-parameters.MinimumLength, value: 2}, \
4
4
// RUN: {key: bugprone-easily-swappable-parameters.IgnoredParameterNames, value: ""}, \
Original file line number Diff line number Diff line change 4
4
// RUN: {key: bugprone-exception-escape.FunctionsThatShouldNotThrow, value: 'enabled1,enabled2,enabled3'} \
5
5
// RUN: ]}" \
6
6
// RUN: -- -fexceptions
7
+ // FIXME: Fix the checker to work in C++17 or later mode.
7
8
8
9
struct throwing_destructor {
9
10
~throwing_destructor () {
Original file line number Diff line number Diff line change 1
1
// RUN: %check_clang_tidy -std=c++14 %s bugprone-signal-handler %t -- -- -isystem %clang_tidy_headers -isystem %S/Inputs/signal-handler -target x86_64-unknown-unknown
2
-
2
+ // FIXME: Fix the checker to work in C++17 or later mode.
3
3
#include " stdcpp.h"
4
4
#include " stdio.h"
5
5
Original file line number Diff line number Diff line change 1
1
// RUN: %check_clang_tidy -std=c++14 %s bugprone-unhandled-exception-at-new %t -- -- -fexceptions
2
-
2
+ // FIXME: Fix the checker to work in C++17 or later mode.
3
3
namespace std {
4
4
typedef __typeof__ (sizeof (0 )) size_t;
5
5
enum class align_val_t : std::size_t {};
Original file line number Diff line number Diff line change 1
1
// RUN: %check_clang_tidy -std=c++11,c++14 %s cert-err60-cpp %t -- -- -fcxx-exceptions
2
2
// FIXME: Split off parts of this test that rely on dynamic exception
3
3
// specifications, and run this test in all language modes.
4
-
4
+ // FIXME: Fix the checker to work in C++17 or later mode.
5
5
struct S {};
6
6
struct T : S {};
7
7
struct U {
Original file line number Diff line number Diff line change 1
1
// RUN: %check_clang_tidy -std=c++11 -check-suffixes=,CXX11 %s misc-static-assert %t
2
- // RUN: %check_clang_tidy -std=c++17 -check-suffixes=,CXX17 %s misc-static-assert %t
2
+ // RUN: %check_clang_tidy -std=c++17-or-later -check-suffixes=,CXX17 %s misc-static-assert %t
3
3
4
4
void abort () {}
5
5
#ifdef NDEBUG
Original file line number Diff line number Diff line change 1
- // RUN: %check_clang_tidy -std=c++17 %s performance-unnecessary-copy-initialization %t
1
+ // RUN: %check_clang_tidy -std=c++17-or-later %s performance-unnecessary-copy-initialization %t
2
2
3
3
template <typename T>
4
4
struct Iterator {
Original file line number Diff line number Diff line change 1
- // RUN: %check_clang_tidy -std=c++14 %s readability-const-return-type %t -- \
1
+ // RUN: %check_clang_tidy -std=c++14-or-later %s readability-const-return-type %t -- \
2
2
// RUN: -config="{CheckOptions: [{key: readability-const-return-type.IgnoreMacros, value: false}]}"
3
3
4
4
// p# = positive test
Original file line number Diff line number Diff line change 1
- // RUN: %check_clang_tidy -std=c++14 %s readability-const-return-type %t
1
+ // RUN: %check_clang_tidy -std=c++14-or-later %s readability-const-return-type %t
2
2
3
3
// p# = positive test
4
4
// n# = negative test
Original file line number Diff line number Diff line change 1
- // RUN: %check_clang_tidy -std=c++17 %s readability-isolate-declaration %t
1
+ // RUN: %check_clang_tidy -std=c++17-or-later %s readability-isolate-declaration %t
2
2
3
3
template <typename T1, typename T2>
4
4
struct pair {
Original file line number Diff line number Diff line change 1
1
// RUN: %check_clang_tidy -std=c++14,c++17 %s readability-use-anyofallof %t -- -- -fexceptions
2
+ // FIXME: Fix the checker to work in C++20 mode.
2
3
3
4
bool good_any_of () {
4
5
int v[] = {1 , 2 , 3 };
You can’t perform that action at this time.
0 commit comments