From f558a8ad6a6a7959229d1400ee6480eaa2eca5a6 Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 22 Jul 2015 18:06:01 +0200 Subject: [PATCH] Minor fix to: go to declaration. --- juci/source.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juci/source.cc b/juci/source.cc index 9e829d1..a970acd 100644 --- a/juci/source.cc +++ b/juci/source.cc @@ -807,7 +807,7 @@ Source::ClangViewAutocomplete(file_path, project_path) { std::pair location; if(clang_readable) { for(auto &token: *clang_tokens) { - if(token.has_type()) { + if(token.get_kind()==clang::Token_Identifier && token.has_type()) { auto insert_offset=(unsigned)get_buffer()->get_insert()->get_iter().get_offset(); if(insert_offset>=token.offsets.first && insert_offset<=token.offsets.second) { auto referenced=token.get_cursor().get_referenced();