Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/util/namespace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ namespace_baset::follow_tag(const c_enum_tag_typet &src) const
return to_c_enum_type(symbol.type);
}

const struct_union_typet &namespace_baset::follow_struct_or_union_tag(
const struct_or_union_tag_typet &src) const
/// Resolve a `struct_tag_typet` or `union_tag_typet` to the complete version.
const struct_union_typet &
namespace_baset::follow_tag(const struct_or_union_tag_typet &src) const
{
const symbolt &symbol = lookup(src.get_identifier());
CHECK_RETURN(symbol.is_type);
Expand Down
7 changes: 1 addition & 6 deletions src/util/namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,10 @@ class namespace_baset
DEPRECATED(SINCE(2024, 2, 19, "use follow_tag(...) instead"))
const typet &follow(const typet &) const;

// These produce union_typet, struct_typet, c_enum_typet or
// the incomplete version.
const union_typet &follow_tag(const union_tag_typet &) const;
const struct_typet &follow_tag(const struct_tag_typet &) const;
const c_enum_typet &follow_tag(const c_enum_tag_typet &) const;

/// Resolve a `struct_tag_typet` or `union_tag_typet` to the complete version.
const struct_union_typet &
follow_struct_or_union_tag(const struct_or_union_tag_typet &) const;
const struct_union_typet &follow_tag(const struct_or_union_tag_typet &) const;

/// Returns the minimal integer n such that there is no symbol (in any of the
/// symbol tables) whose name is of the form "An" where A is \p prefix.
Expand Down