Applying bugprone-narrowing-conversions clang-tidy fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -91,7 +91,7 @@ void clang_visitor::visit(
|
||||
const auto *command_info =
|
||||
traits.getCommandInfo(command->getCommandID());
|
||||
|
||||
if (command_info->IsBlockCommand && command_info->NumArgs == 0) {
|
||||
if (command_info->IsBlockCommand && command_info->NumArgs == 0u) {
|
||||
// Visit block command with a single text argument, e.g.:
|
||||
// \brief text
|
||||
// \todo text
|
||||
|
||||
Reference in New Issue
Block a user