Applied llvm-else-after-return clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-20 23:56:18 +01:00
parent 8e4c2af279
commit e32e4cd2aa
8 changed files with 17 additions and 36 deletions

View File

@@ -286,7 +286,7 @@ template <> id_t to_id(const clang::TemplateArgument &template_argument)
return to_id(*template_argument.getAsType()
->getAs<clang::EnumType>()
->getAsTagDecl());
else if (template_argument.getAsType()->getAs<clang::RecordType>())
if (template_argument.getAsType()->getAs<clang::RecordType>())
return to_id(*template_argument.getAsType()
->getAs<clang::RecordType>()
->getAsRecordDecl());