Skip to content

Commit 79e7d21

Browse files
Merge pull request #5253 from hannes-steffenhagen-diffblue/fix/non-inline-functions-in-headers
Make functions with bodies in c_types_util.h inline
2 parents 72ddc18 + 5e232ea commit 79e7d21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/c_types_util.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ inline bool is_c_enum_type(const typet &type)
8080
/// \param c_enum the enum type \p member_name is supposed to be part of.
8181
/// \return constant, that could be assigned as the value of an expression with
8282
/// type c_enum.
83-
constant_exprt convert_member_name_to_enum_value(
83+
inline constant_exprt convert_member_name_to_enum_value(
8484
const irep_idt &member_name,
8585
const c_enum_typet &c_enum)
8686
{
@@ -100,7 +100,7 @@ constant_exprt convert_member_name_to_enum_value(
100100
/// Convert id to a Boolean value
101101
/// \param bool_value: A string that is compared to "true" ignoring case.
102102
/// \return a constant of type Boolean
103-
bool id2boolean(const std::string &bool_value)
103+
inline bool id2boolean(const std::string &bool_value)
104104
{
105105
std::string string_value = bool_value;
106106
std::transform(
@@ -117,7 +117,7 @@ bool id2boolean(const std::string &bool_value)
117117
/// \param bool_value: A Boolean value.
118118
/// \param type: The type, the resulting constant is supposed to have.
119119
/// \return a constant of type \param type with either 0 or 1 as value.
120-
constant_exprt from_c_boolean_value(bool bool_value, const typet &type)
120+
inline constant_exprt from_c_boolean_value(bool bool_value, const typet &type)
121121
{
122122
return bool_value ? from_integer(mp_integer(1), type)
123123
: from_integer(mp_integer(0), type);

0 commit comments

Comments
 (0)