Browse Source

Removed temporary testing output.

merge-requests/365/head
eidheim 11 years ago
parent
commit
1e12f00266
  1. 3
      juci/source.cc

3
juci/source.cc

@ -427,13 +427,14 @@ void Source::ClangView::on_mark_set(const Gtk::TextBuffer::iterator& iterator, c
type_tooltips.hide(); type_tooltips.hide();
diagnostic_tooltips.hide(); diagnostic_tooltips.hide();
//TODO: For testing purposes
if(clang_readable) { if(clang_readable) {
for(auto &token: *clang_tokens) { for(auto &token: *clang_tokens) {
if(token.has_type()) { if(token.has_type()) {
auto range_data=token.source_range.get_range_data(); auto range_data=token.source_range.get_range_data();
auto insert_offset=get_buffer()->get_insert()->get_iter().get_offset(); auto insert_offset=get_buffer()->get_insert()->get_iter().get_offset();
if(range_data.path==file_path && insert_offset>=range_data.start_offset && insert_offset<=range_data.end_offset) { if(range_data.path==file_path && insert_offset>=range_data.start_offset && insert_offset<=range_data.end_offset) {
cout << token.get_type() << endl; //cout << token.get_type() << endl;
} }
} }
} }

Loading…
Cancel
Save