[clang-tools-extra] 007ed0d - [clang-tidy][NFC] Enable exceptions in test for bugprone-unused-local-non-trivial-variable
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 25 03:30:20 PST 2023
Author: Piotr Zegar
Date: 2023-12-25T11:30:02Z
New Revision: 007ed0dccd6a3d19f331eb7cd91438d792754439
URL: https://github.com/llvm/llvm-project/commit/007ed0dccd6a3d19f331eb7cd91438d792754439
DIFF: https://github.com/llvm/llvm-project/commit/007ed0dccd6a3d19f331eb7cd91438d792754439.diff
LOG: [clang-tidy][NFC] Enable exceptions in test for bugprone-unused-local-non-trivial-variable
Added -fexceptions switch to test.
It were missing in #76101.
Added:
Modified:
clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-local-non-trivial-variable.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-local-non-trivial-variable.cpp b/clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-local-non-trivial-variable.cpp
index 9bbf3d116885f3..49000203716416 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-local-non-trivial-variable.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-local-non-trivial-variable.cpp
@@ -1,6 +1,6 @@
// RUN: %check_clang_tidy -std=c++17-or-later %s bugprone-unused-local-non-trivial-variable %t -- \
// RUN: -config="{CheckOptions: {bugprone-unused-local-non-trivial-variable.IncludeTypes: '::async::Future;::async::Foo.*', bugprone-unused-local-non-trivial-variable.ExcludeTypes: '::async::FooBar'}}"
-
+// RUN: -- -fexceptions
namespace async {
template <typename T>
@@ -19,7 +19,7 @@ class Ptr {
template<typename T>
class Future {
-public:
+public:
T get() {
return Pending;
}
More information about the cfe-commits
mailing list