[gnome-builder/wip/chergert/layout: 99/118] clang: use short name for symbol
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout: 99/118] clang: use short name for symbol
- Date: Wed, 5 Jul 2017 11:56:22 +0000 (UTC)
commit 7802a54c9537c9abe7e2523a6fbcb4e39f0a6cdb
Author: Christian Hergert <chergert redhat com>
Date: Tue Jul 4 15:41:31 2017 -0700
clang: use short name for symbol
Having the full spelling was getting really distracting.
plugins/clang/ide-clang-translation-unit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/clang/ide-clang-translation-unit.c b/plugins/clang/ide-clang-translation-unit.c
index c763470..abc1646 100644
--- a/plugins/clang/ide-clang-translation-unit.c
+++ b/plugins/clang/ide-clang-translation-unit.c
@@ -1280,7 +1280,7 @@ ide_clang_translation_unit_find_nearest_scope (IdeClangTranslationUnit *self,
}
symbol_location = ide_source_location_new (ifile, line - 1, line_offset - 1, 0);
- cxname = clang_getCursorDisplayName (cursor);
+ cxname = clang_getCursorSpelling (cursor);
symkind = get_symbol_kind (cursor, &symflags);
ret = ide_symbol_new (clang_getCString (cxname),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]