We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b58813b + 76eaf86 commit b4f5800Copy full SHA for b4f5800
src/util/symbol_table_base.h
@@ -181,7 +181,15 @@ class symbol_table_baset
181
return &**this;
182
}
183
184
- symbolt &get_writeable_symbol(const irep_idt &identifier)
+ /// Whereas the dereference operator gives a constant reference to the
185
+ /// current symbol, this method allows users to get a writeable reference
186
+ /// to the symbol
187
+ /// \remarks
188
+ /// This method calls the on_get_writeable method first to give derived
189
+ /// symbol table classes the opportunity to note that this symbol is being
190
+ /// written to before it is accessed.
191
+ /// \returns a non-const reference to the current symbol
192
+ symbolt &get_writeable_symbol()
193
{
194
if(on_get_writeable)
195
on_get_writeable((*this)->first);
0 commit comments