[gnome-builder] clang: sort completion results
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: sort completion results
- Date: Sun, 27 Sep 2015 09:45:29 +0000 (UTC)
commit f4d920a87c48ddaa7118d0358259b85b741e3f31
Author: Christian Hergert <christian hergert me>
Date: Sun Sep 27 02:44:56 2015 -0700
clang: sort completion results
This uses the built in provided language insensitive sort.
plugins/clang/ide-clang-translation-unit.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/clang/ide-clang-translation-unit.c b/plugins/clang/ide-clang-translation-unit.c
index 549c351..6babad6 100644
--- a/plugins/clang/ide-clang-translation-unit.c
+++ b/plugins/clang/ide-clang-translation-unit.c
@@ -692,6 +692,8 @@ ide_clang_translation_unit_code_complete_worker (GTask *task,
ufs, j,
clang_defaultCodeCompleteOptions ());
+ clang_sortCodeCompletionResults (results->Results, results->NumResults);
+
/*
* encapsulate in refptr so we don't need to malloc lots of little strings.
* we will inflate result strings as necessary.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]