Applying llvm-qualified-auto clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-21 17:46:44 +01:00
parent 6750365d54
commit 5d8f31dbe6
3 changed files with 5 additions and 5 deletions

View File

@@ -187,7 +187,7 @@ bool template_parameter::find_nested_relationships(
// just add it and skip recursion (e.g. this is a user defined type)
if (should_include(name())) {
if (id()) {
nested_relationships.push_back({id().value(), hint});
nested_relationships.emplace_back(id().value(), hint);
added_aggregation_relationship =
(hint == common::model::relationship_t::kAggregation);
}
@@ -199,8 +199,8 @@ bool template_parameter::find_nested_relationships(
if (should_include(template_argument.name()) &&
template_argument.id()) {
nested_relationships.push_back(
{template_argument.id().value(), hint});
nested_relationships.emplace_back(
template_argument.id().value(), hint);
added_aggregation_relationship =
(hint == common::model::relationship_t::kAggregation);

View File

@@ -1745,7 +1745,7 @@ void translation_unit_visitor::
if (!param_type->getAs<clang::RecordType>())
continue;
auto classTemplateSpecialization =
auto *classTemplateSpecialization =
llvm::dyn_cast<clang::ClassTemplateSpecializationDecl>(
param_type->getAsRecordDecl());

View File

@@ -462,7 +462,7 @@ bool translation_unit_visitor::VisitLambdaExpr(clang::LambdaExpr *expr)
auto m_ptr = std::make_unique<sequence_diagram::model::method>(
config().using_namespace());
auto method_name = "operator()";
const auto *method_name = "operator()";
m_ptr->set_method_name(method_name);
m_ptr->set_class_id(cls_id);