[gnome-builder] clang: special case g_auto, g_autoptr, g_autofree
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: special case g_auto, g_autoptr, g_autofree
- Date: Sun, 11 Oct 2015 18:27:33 +0000 (UTC)
commit 1cbe7b11f8288884b7ea59ec07e2cbec305e2192
Author: Christian Hergert <chergert redhat com>
Date: Sun Oct 11 14:26:56 2015 -0400
clang: special case g_auto, g_autoptr, g_autofree
Based on a suggestion from Alex. Seems reasonable.
plugins/clang/ide-clang-service.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/clang/ide-clang-service.c b/plugins/clang/ide-clang-service.c
index bd68018..178155e 100644
--- a/plugins/clang/ide-clang-service.c
+++ b/plugins/clang/ide-clang-service.c
@@ -179,6 +179,9 @@ ide_clang_service_build_index (IdeClangService *self,
ide_highlight_index_insert (index, common_defines [i], "c:common-defines");
ide_highlight_index_insert (index, "TRUE", "c:boolean");
ide_highlight_index_insert (index, "FALSE", "c:boolean");
+ ide_highlight_index_insert (index, "g_autoptr", "c:storage-class");
+ ide_highlight_index_insert (index, "g_auto", "c:storage-class");
+ ide_highlight_index_insert (index, "g_autofree", "c:storage-class");
cursor = clang_getTranslationUnitCursor (tu);
clang_visitChildren (cursor, ide_clang_service_build_index_visitor, &client_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]