Skip to content

Commit 3e42a8d

Browse files
Add comment on has_symbol
1 parent a2b45e3 commit 3e42a8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/symbol_table_base.h

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class symbol_table_baset
5555
}
5656
virtual const symbol_tablet &get_symbol_table() const = 0;
5757

58+
/// Check whether a symbol exists in the symbol table
59+
/// \param name: The name of the symbol to look for
60+
/// \return true if the symbol exists
5861
bool has_symbol(const irep_idt &name) const
5962
{
6063
return symbols.find(name) != symbols.end();

0 commit comments

Comments
 (0)