From 1b5f61b5c72ff06573adbe9ea8d88f572a3226b9 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sat, 10 Oct 2015 11:01:02 +0200 Subject: [PATCH] Fixes to Find Documentation. --- src/source.cc | 49 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/src/source.cc b/src/source.cc index 02a49a6..4ca6811 100644 --- a/src/source.cc +++ b/src/source.cc @@ -2371,15 +2371,17 @@ Source::ClangViewAutocomplete(file_path, project_path, language) { auto usr=referenced.get_usr(); boost::filesystem::path referenced_path=referenced.get_source_location().get_path(); + //Singleton::terminal()->print(usr+'\n', true); //TODO: remove + //Return empty if referenced is within project if(referenced_path.generic_string().substr(0, this->project_path.generic_string().size()+1)==this->project_path.generic_string()+'/') return data; data.emplace_back("clang"); - //namespace - not working - size_t pos1=0, pos2; - while((pos1=usr.find('@', pos1))!=std::string::npos && pos1+1