Silenced some weird (very likely false-positive) clang-tidy warnings.

This commit is contained in:
2024-08-18 12:24:37 +02:00
parent 66e319fb0d
commit d73fa25ed8
2 changed files with 3 additions and 3 deletions

View File

@@ -274,7 +274,7 @@ struct TaskPromise : impl::TaskReturn<typename TTraits::result_t, TaskPromise<TT
template<typename TResultOther>
auto await_transform(TaskBase<TResultOther> task) noexcept
{
MIJIN_ASSERT(loop_ != nullptr, "Cannot await another task outside of a loop!");
MIJIN_ASSERT(loop_ != nullptr, "Cannot await another task outside of a loop!"); // NOLINT(clang-analyzer-core.UndefinedBinaryOperatorResult)
auto future = delayEvaluation<TResultOther>(loop_)->addTask(std::move(task), &sharedState_->subTask); // hackidyhack: delay evaluation of the type of loop_ as it is only forward-declared here
return await_transform(future);
}