Skip to content

Commit a217f05

Browse files
committed
cc tests: fix a warning detected by clang-tidy16
1 parent f36f573 commit a217f05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/engine/impl/async_flat_combining_queue_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,15 @@ UTEST_MT(AsyncFlatCombiningQueue, StressAsync, 3) {
158158
return engine::AsyncNoSpan([&] {
159159
BackOff back_off;
160160

161+
// NOLINTBEGIN(clang-analyzer-cplusplus.NewDeleteLeaks)
161162
while (!engine::current_task::ShouldCancel()) {
162-
// NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
163163
PushAndWork(queue, *new EmptyNode{}, back_off,
164164
[&](NodeBase& node) noexcept {
165165
++nodes_consumed_sync;
166166
delete &node;
167167
});
168168
}
169+
// NOLINTEND(clang-analyzer-cplusplus.NewDeleteLeaks)
169170
});
170171
});
171172

0 commit comments

Comments
 (0)