Skip to content

Commit d7b229e

Browse files
authored
Merge pull request #8251 from tautschnig/cleanup/fixup-follow-struct-union-tag
Rename follow_struct_or_union_tag to follow_tag
2 parents e7b0557 + bb8d706 commit d7b229e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/util/namespace.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ namespace_baset::follow_tag(const c_enum_tag_typet &src) const
9292
return to_c_enum_type(symbol.type);
9393
}
9494

95-
const struct_union_typet &namespace_baset::follow_struct_or_union_tag(
96-
const struct_or_union_tag_typet &src) const
95+
/// Resolve a `struct_tag_typet` or `union_tag_typet` to the complete version.
96+
const struct_union_typet &
97+
namespace_baset::follow_tag(const struct_or_union_tag_typet &src) const
9798
{
9899
const symbolt &symbol = lookup(src.get_identifier());
99100
CHECK_RETURN(symbol.is_type);

src/util/namespace.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,10 @@ class namespace_baset
6464
DEPRECATED(SINCE(2024, 2, 19, "use follow_tag(...) instead"))
6565
const typet &follow(const typet &) const;
6666

67-
// These produce union_typet, struct_typet, c_enum_typet or
68-
// the incomplete version.
6967
const union_typet &follow_tag(const union_tag_typet &) const;
7068
const struct_typet &follow_tag(const struct_tag_typet &) const;
7169
const c_enum_typet &follow_tag(const c_enum_tag_typet &) const;
72-
73-
/// Resolve a `struct_tag_typet` or `union_tag_typet` to the complete version.
74-
const struct_union_typet &
75-
follow_struct_or_union_tag(const struct_or_union_tag_typet &) const;
70+
const struct_union_typet &follow_tag(const struct_or_union_tag_typet &) const;
7671

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

0 commit comments

Comments
 (0)