Browse Source

Now supports structured binding declarations properly

merge-requests/399/head
eidheim 6 years ago
parent
commit
5dd9d3bdbf
  1. 2
      lib/libclangmm
  2. 10
      src/source_clang.cc

2
lib/libclangmm

@ -1 +1 @@
Subproject commit 2edcb84b34b118e34ed498bdbfab43e440280448
Subproject commit b8ff60c0f30b0f8bb163c83c2861219d3ec6028e

10
src/source_clang.cc

@ -393,12 +393,10 @@ void Source::ClangViewParse::show_type_tooltips(const Gdk::Rectangle &rectangle)
type_tooltips.emplace_back(this, get_buffer()->create_mark(start), get_buffer()->create_mark(end), [this, token](const Glib::RefPtr<Gtk::TextBuffer> &buffer) {
auto cursor = token.get_cursor();
if(cursor.is_valid_kind()) {
buffer->insert(buffer->get_insert()->get_iter(), "Type: " + cursor.get_type_description());
auto brief_comment = cursor.get_brief_comments();
if(brief_comment != "")
insert_with_links_tagged(buffer, "\n\n" + brief_comment);
}
buffer->insert(buffer->get_insert()->get_iter(), "Type: " + cursor.get_type_description());
auto brief_comment = cursor.get_brief_comments();
if(brief_comment != "")
insert_with_links_tagged(buffer, "\n\n" + brief_comment);
#ifdef JUCI_ENABLE_DEBUG
if(Debug::LLDB::get().is_stopped()) {

Loading…
Cancel
Save