Applying bugprone-narrowing-conversions clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-21 18:05:45 +01:00
parent 5d8f31dbe6
commit 14128374ef
5 changed files with 13 additions and 7 deletions

View File

@@ -244,7 +244,7 @@ bool is_subexpr_of(const clang::Stmt *parent_stmt, const clang::Stmt *sub_stmt)
template <> id_t to_id(const std::string &full_name)
{
return std::hash<std::string>{}(full_name) >> 3;
return static_cast<id_t>(std::hash<std::string>{}(full_name) >> 3u);
}
template <> id_t to_id(const clang::NamespaceDecl &declaration)