Fixed clang-tidy warnings

This commit is contained in:
Bartek Kryza
2024-06-04 22:50:53 +02:00
parent 1c9f347c91
commit 50851531f9
5 changed files with 8 additions and 7 deletions

View File

@@ -133,7 +133,7 @@ void call_expression_context::update(
common::id_t call_expression_context::caller_id() const
{
if (lambda_caller_id().has_value())
return *lambda_caller_id();
return *lambda_caller_id(); // NOLINT
return current_caller_id_;
}

View File

@@ -1934,11 +1934,11 @@ std::string translation_unit_visitor::make_lambda_name(
// Parent is also a lambda (this id points to a lambda operator())
std::string parent_lambda_class_name{"()"};
if (diagram().get_participant<model::method>(
context().lambda_caller_id().value())) {
context().lambda_caller_id().value())) { // NOLINT
auto parent_lambda_class_id =
diagram()
.get_participant<model::method>(
context().lambda_caller_id().value())
context().lambda_caller_id().value()) // NOLINT
.value()
.class_id();