From d3fe9b0b2ffd828430bec07cd4d476358c4d3381 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 5 Jul 2015 19:43:35 +0200 Subject: [PATCH] Brief comments added to type info. --- juci/source.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/juci/source.cc b/juci/source.cc index c20da63..0cd4c8c 100644 --- a/juci/source.cc +++ b/juci/source.cc @@ -406,6 +406,9 @@ void Source::ClangView::update_types() { auto get_tooltip_buffer=[this, c]() { auto tooltip_buffer=Gtk::TextBuffer::create(get_buffer()->get_tag_table()); tooltip_buffer->insert_at_cursor("Type: "+(*clang_tokens)[c].type); + auto brief_comment=clang_tokens->get_brief_comment(c); + if(brief_comment!="") + tooltip_buffer->insert_at_cursor("\n\n"+brief_comment); return tooltip_buffer; };