mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-12 22:10:54 -04:00
chore: add exceptions for clang-tidy
This commit is contained in:
parent
e42f7dfc46
commit
6d9e8811b2
@ -277,9 +277,12 @@ class multi_queue_block_merger_impl : public block_merger_base,
|
|||||||
cached_max_worst_case_source_block_size_.reset();
|
cached_max_worst_case_source_block_size_.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOLINTBEGIN(cppcoreguidelines-avoid-do-while)
|
||||||
|
// This really becomes harder to read if we don't use a do-while loop
|
||||||
do {
|
do {
|
||||||
active_slot_index_ = (active_slot_index_ + 1) % active_slots_.size();
|
active_slot_index_ = (active_slot_index_ + 1) % active_slots_.size();
|
||||||
} while (active_slot_index_ != ix && !active_slots_[active_slot_index_]);
|
} while (active_slot_index_ != ix && !active_slots_[active_slot_index_]);
|
||||||
|
// NOLINTEND(cppcoreguidelines-avoid-do-while)
|
||||||
|
|
||||||
if constexpr (debug) {
|
if constexpr (debug) {
|
||||||
if (not_last) {
|
if (not_last) {
|
||||||
|
@ -80,10 +80,12 @@ std::optional<pager_program> find_pager_program(os_access const& os) {
|
|||||||
|
|
||||||
void show_in_pager(pager_program const& pager, std::string text) {
|
void show_in_pager(pager_program const& pager, std::string text) {
|
||||||
boost::asio::io_context ios;
|
boost::asio::io_context ios;
|
||||||
|
// NOLINTBEGIN(clang-analyzer-unix.BlockInCriticalSection)
|
||||||
bp::child proc(pager.name.wstring(), bp::args(pager.args),
|
bp::child proc(pager.name.wstring(), bp::args(pager.args),
|
||||||
bp::std_in =
|
bp::std_in =
|
||||||
boost::asio::const_buffer(text.data(), text.size()),
|
boost::asio::const_buffer(text.data(), text.size()),
|
||||||
bp::std_out > stdout, ios);
|
bp::std_out > stdout, ios);
|
||||||
|
// NOLINTEND(clang-analyzer-unix.BlockInCriticalSection)
|
||||||
ios.run();
|
ios.run();
|
||||||
proc.wait();
|
proc.wait();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user