Skip to content

Commit 21ac550

Browse files
committed
Document return value of get_show_symbol_language function
Because the behaviour could be surprising if the reader is not familiar with the intended behaviour.
1 parent 2b47481 commit 21ac550

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/goto-programs/show_symbol_table.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Author: Daniel Kroening, [email protected]
2626

2727
/// \brief Gets the language which should be used for showing the type and value
2828
/// of the supplied \p symbol.
29+
/// \return A unique pointer, pointing to the language corresponding to the mode
30+
/// of the \p symbol in the case where the symbol specifies a known/registered
31+
/// language mode. Returns the globally configured default language/first
32+
/// language registered in the case where mode is empty or does not correspond
33+
/// to a known registered language. The enables showing the symbol even if the
34+
/// language is not recognised.
2935
static std::unique_ptr<languaget>
3036
get_show_symbol_language(const symbolt &symbol)
3137
{

0 commit comments

Comments
 (0)