We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0ca1f5 commit 5cf9561Copy full SHA for 5cf9561
clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp
@@ -928,3 +928,7 @@ void no_throw_in_lambda_by_reference_capture(const copy_constructor_throws& a) n
928
[&] { a; };
929
[&a] {};
930
}
931
+
932
+const auto throw_in_noexcept_lambda = [] () noexcept { throw 42; };
933
+// CHECK-MESSAGES: :[[@LINE-1]]:39: warning: an exception may be thrown in function 'operator()' which should not throw exceptions
934
+// CHECK-MESSAGES: :[[@LINE-2]]:56: note: frame #0: unhandled exception of type 'int' may be thrown in function 'operator()' here
0 commit comments