Fixed clang-tidy warnings

This commit is contained in:
Bartek Kryza
2023-04-05 22:55:54 +02:00
parent 38928cf86f
commit ade1f76640
2 changed files with 13 additions and 7 deletions

View File

@@ -2597,7 +2597,8 @@ translation_unit_visitor::get_template_argument_from_type_parameter_string(
{
if (const auto *template_decl =
llvm::dyn_cast<clang::ClassTemplateSpecializationDecl>(decl);
template_decl && return_type_name.find("type-parameter-") == 0) {
template_decl != nullptr &&
return_type_name.find("type-parameter-") == 0) {
[[maybe_unused]] const auto [depth, index] =
common::extract_template_parameter_index(return_type_name);