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