Skip to content

Commit 007ed0d

Browse files
committed
[clang-tidy][NFC] Enable exceptions in test for bugprone-unused-local-non-trivial-variable
Added -fexceptions switch to test. It were missing in #76101.
1 parent 3f85fb9 commit 007ed0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-local-non-trivial-variable.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %check_clang_tidy -std=c++17-or-later %s bugprone-unused-local-non-trivial-variable %t -- \
22
// RUN: -config="{CheckOptions: {bugprone-unused-local-non-trivial-variable.IncludeTypes: '::async::Future;::async::Foo.*', bugprone-unused-local-non-trivial-variable.ExcludeTypes: '::async::FooBar'}}"
3-
3+
// RUN: -- -fexceptions
44

55
namespace async {
66
template <typename T>
@@ -19,7 +19,7 @@ class Ptr {
1919

2020
template<typename T>
2121
class Future {
22-
public:
22+
public:
2323
T get() {
2424
return Pending;
2525
}

0 commit comments

Comments
 (0)