Fixed clang-tidy warnings

This commit is contained in:
Bartek Kryza
2023-03-25 22:49:47 +01:00
parent 90307793d8
commit fc3110fd4e
9 changed files with 44 additions and 42 deletions

View File

@@ -1606,8 +1606,13 @@ translation_unit_visitor::build_template_instantiation_process_type_argument(
// If this is a nested template type - add nested templates as
// template arguments
if (arg.getAsType()->getAs<clang::FunctionType>() != nullptr) {
if (const auto *function_template_type =
arg.getAsType()->getAs<clang::FunctionType>();
function_template_type != nullptr) {
// TODO
argument = template_parameter::make_argument(
common::to_string(function_template_type->getReturnType(),
template_decl->getASTContext()));
}
else if (const auto *nested_template_type =
arg.getAsType()->getAs<clang::TemplateSpecializationType>();