[gnome-builder/wip/chergert/completion] clang: break out union/namespace



commit 6dc5f2f0e2694343b0c02eaf7fdae534db3e2762
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 30 21:17:02 2018 -0700

    clang: break out union/namespace

 src/plugins/clang/ide-clang-completion-item.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/clang/ide-clang-completion-item.c b/src/plugins/clang/ide-clang-completion-item.c
index 3992f5c6e..8f32bf1ec 100644
--- a/src/plugins/clang/ide-clang-completion-item.c
+++ b/src/plugins/clang/ide-clang-completion-item.c
@@ -74,14 +74,18 @@ ide_clang_completion_item_do_init (IdeClangCompletionItem *self)
       /* local? */
       break;
 
+    case CXCursor_Namespace:
+    case CXCursor_NamespaceAlias:
+    case CXCursor_NamespaceRef:
+      self->icon_name = "lang-namespace-symbolic";
+      self->kind = IDE_SYMBOL_NAMESPACE;
+      break;
+
     case CXCursor_ParmDecl:
     case CXCursor_ObjCIvarDecl:
     case CXCursor_ObjCPropertyDecl:
     case CXCursor_ObjCSynthesizeDecl:
     case CXCursor_NonTypeTemplateParameter:
-    case CXCursor_Namespace:
-    case CXCursor_NamespaceAlias:
-    case CXCursor_NamespaceRef:
       break;
 
     case CXCursor_StructDecl:
@@ -90,6 +94,10 @@ ide_clang_completion_item_do_init (IdeClangCompletionItem *self)
       break;
 
     case CXCursor_UnionDecl:
+      self->icon_name  = "lang-union-symbolic";
+      self->kind = IDE_SYMBOL_UNION;
+      break;
+
     case CXCursor_ClassDecl:
     case CXCursor_TypeRef:
     case CXCursor_TemplateRef:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]