Fixed clang-tidy warnings
This commit is contained in:
@@ -95,7 +95,7 @@ bool diagram::add_with_namespace_path<common::model::package>(
|
||||
|
||||
template <>
|
||||
bool diagram::add_with_filesystem_path<common::model::package>(
|
||||
const common::model::path &parent_path,
|
||||
const common::model::path & /*parent_path*/,
|
||||
std::unique_ptr<common::model::package> &&p)
|
||||
{
|
||||
LOG_DBG("Adding filesystem package: {}, {}", p->name(), p->full_name(true));
|
||||
|
||||
@@ -935,9 +935,9 @@ std::optional<template_parameter> template_builder::try_as_decl_type(
|
||||
|
||||
std::optional<template_parameter> template_builder::try_as_typedef_type(
|
||||
std::optional<clanguml::class_diagram::model::class_ *> &parent,
|
||||
const clang::NamedDecl *cls, const clang::TemplateDecl *template_decl,
|
||||
clang::QualType &type, class_ &template_instantiation,
|
||||
size_t argument_index)
|
||||
const clang::NamedDecl * /*cls*/,
|
||||
const clang::TemplateDecl * /*template_decl*/, clang::QualType &type,
|
||||
class_ & /*template_instantiation*/, size_t /*argument_index*/)
|
||||
{
|
||||
const auto *typedef_type =
|
||||
common::dereference(type)->getAs<clang::TypedefType>();
|
||||
|
||||
@@ -1308,7 +1308,7 @@ void translation_unit_visitor::process_method(
|
||||
.getUnqualifiedType()
|
||||
->getAs<clang::TemplateSpecializationType>();
|
||||
templ != nullptr) {
|
||||
auto *unaliased_type = templ;
|
||||
const auto *unaliased_type = templ;
|
||||
if (unaliased_type->isTypeAlias())
|
||||
unaliased_type = unaliased_type->getAliasedType()
|
||||
->getAs<clang::TemplateSpecializationType>();
|
||||
|
||||
Reference in New Issue
Block a user