[gnome-builder] clang: include more cursor types for kinds
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: include more cursor types for kinds
- Date: Mon, 11 Jun 2018 06:08:54 +0000 (UTC)
commit 940a69a2a07484432e464bd08142dde23ae1be26
Author: Christian Hergert <chergert redhat com>
Date: Sun Jun 10 22:40:59 2018 -0700
clang: include more cursor types for kinds
src/plugins/clang/ide-clang.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/src/plugins/clang/ide-clang.c b/src/plugins/clang/ide-clang.c
index 7dc70027d..540308500 100644
--- a/src/plugins/clang/ide-clang.c
+++ b/src/plugins/clang/ide-clang.c
@@ -319,6 +319,20 @@ ide_clang_get_symbol_kind (CXCursor cursor,
kind = IDE_SYMBOL_HEADER;
break;
+ case CXCursor_VarDecl:
+ kind = IDE_SYMBOL_VARIABLE;
+ break;
+
+ case CXCursor_NamespaceAlias:
+ kind = IDE_SYMBOL_NAMESPACE;
+ break;
+
+ case CXCursor_CXXMethod:
+ case CXCursor_Destructor:
+ case CXCursor_Constructor:
+ kind = IDE_SYMBOL_METHOD;
+ break;
+
default:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]