Fixed clang-tidy warnings
This commit is contained in:
@@ -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