From 5dd9d3bdbfac2a8c783bed3c1c432ae45975a315 Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 7 Apr 2020 12:04:16 +0200 Subject: [PATCH] Now supports structured binding declarations properly --- lib/libclangmm | 2 +- src/source_clang.cc | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/libclangmm b/lib/libclangmm index 2edcb84..b8ff60c 160000 --- a/lib/libclangmm +++ b/lib/libclangmm @@ -1 +1 @@ -Subproject commit 2edcb84b34b118e34ed498bdbfab43e440280448 +Subproject commit b8ff60c0f30b0f8bb163c83c2861219d3ec6028e diff --git a/src/source_clang.cc b/src/source_clang.cc index c604b8b..03ed934 100644 --- a/src/source_clang.cc +++ b/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 &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()) {