File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ namespace osmium {
106
106
~ReadThreadManager () noexcept {
107
107
try {
108
108
close ();
109
- } catch (...) {
109
+ } catch (...) { // NOLINT(bugprone-empty-catch)
110
110
// Ignore any exceptions because destructor must not throw.
111
111
}
112
112
}
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ namespace osmium {
390
390
391
391
try {
392
392
m_read_thread_manager.close ();
393
- } catch (...) {
393
+ } catch (...) { // NOLINT(bugprone-empty-catch)
394
394
// Ignore any exceptions.
395
395
}
396
396
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ namespace osmium {
132
132
if (m_do_cleanup) {
133
133
try {
134
134
done ();
135
- } catch (...) {
135
+ } catch (...) { // NOLINT(bugprone-empty-catch)
136
136
// Swallow any exceptions, because a destructor should
137
137
// not throw.
138
138
}
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ TEST_CASE("Reader should work when there is an exception in main thread before g
266
266
const osmium::io::Reader reader{with_data_dir (" t/io/data.osm" )};
267
267
REQUIRE_FALSE (reader.eof ());
268
268
throw std::runtime_error{" foo" };
269
- } catch (...) {
269
+ } catch (...) { // NOLINT(bugprone-empty-catch)
270
270
}
271
271
272
272
REQUIRE (count == count_fds ());
@@ -280,7 +280,7 @@ TEST_CASE("Reader should work when there is an exception in main thread while re
280
280
REQUIRE_FALSE (reader.eof ());
281
281
auto header = reader.header ();
282
282
throw std::runtime_error{" foo" };
283
- } catch (...) {
283
+ } catch (...) { // NOLINT(bugprone-empty-catch)
284
284
}
285
285
286
286
REQUIRE (count == count_fds ());
You can’t perform that action at this time.
0 commit comments