Browse Source

Added line numbers to goto method, and at the same time got rid of duplicate rows if declaration and implementation is in the same file.

merge-requests/365/head
eidheim 10 years ago
parent
commit
d56b484235
  1. 2
      src/source_clang.cc

2
src/source_clang.cc

@ -1112,7 +1112,7 @@ Source::ClangViewAutocomplete(file_path, project_path, language) {
if(methods.size()==0) if(methods.size()==0)
return; return;
for(auto &method: methods) { for(auto &method: methods) {
std::string row=Glib::Markup::escape_text(method.first); std::string row=std::to_string(method.second.line)+": "+Glib::Markup::escape_text(method.first);
//Add bold method token //Add bold method token
size_t token_end_pos=row.find('('); size_t token_end_pos=row.find('(');
if(token_end_pos==0 || token_end_pos==std::string::npos) if(token_end_pos==0 || token_end_pos==std::string::npos)

Loading…
Cancel
Save