|
|
|
|
@ -423,8 +423,9 @@ void Source::ClangViewParse::show_type_tooltips(const Gdk::Rectangle &rectangle)
|
|
|
|
|
Glib::ustring debug_value=Debug::get().get_value(token.get_spelling(), location.get_path(), location.get_offset().line, location.get_offset().index); |
|
|
|
|
if(debug_value.empty()) { |
|
|
|
|
value_type="Return value"; |
|
|
|
|
auto location=token.get_cursor().get_source_location(); |
|
|
|
|
debug_value=Debug::get().get_return_value(location.get_path(), location.get_offset().line, location.get_offset().index); |
|
|
|
|
auto cursor=token.get_cursor(); |
|
|
|
|
auto offsets=cursor.get_source_range().get_offsets(); |
|
|
|
|
debug_value=Debug::get().get_return_value(cursor.get_source_location().get_path(), offsets.first.line, offsets.first.index); |
|
|
|
|
} |
|
|
|
|
if(!debug_value.empty()) { |
|
|
|
|
size_t pos=debug_value.find(" = "); |
|
|
|
|
|