Fixed building on macos
This commit is contained in:
@@ -417,7 +417,8 @@ bool is_subexpr_of(const clang::Stmt *parent_stmt, const clang::Stmt *sub_stmt)
|
|||||||
|
|
||||||
template <> eid_t to_id(const std::string &full_name)
|
template <> eid_t to_id(const std::string &full_name)
|
||||||
{
|
{
|
||||||
return static_cast<eid_t>(std::hash<std::string>{}(full_name));
|
return static_cast<eid_t>(
|
||||||
|
static_cast<uint64_t>(std::hash<std::string>{}(full_name)));
|
||||||
}
|
}
|
||||||
|
|
||||||
eid_t to_id(const clang::QualType &type, const clang::ASTContext &ctx)
|
eid_t to_id(const clang::QualType &type, const clang::ASTContext &ctx)
|
||||||
|
|||||||
@@ -349,6 +349,6 @@ public:
|
|||||||
template <typename Context>
|
template <typename Context>
|
||||||
constexpr auto format(clanguml::common::eid_t const &id, Context &ctx) const
|
constexpr auto format(clanguml::common::eid_t const &id, Context &ctx) const
|
||||||
{
|
{
|
||||||
return format_to(ctx.out(), "{}", id.value());
|
return fmt::format_to(ctx.out(), "{}", id.value());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user