[gnome-builder] clang: use short name for symbol
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: use short name for symbol
- Date: Wed, 19 Jul 2017 11:07:52 +0000 (UTC)
commit d2798f8c07a22baeb1eb155efaec6943ce387196
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]