Applying llvm-qualified-auto clang-tidy fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user