[gnome-builder] clang: Adding code indexer
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: Adding code indexer
- Date: Fri, 1 Sep 2017 22:25:00 +0000 (UTC)
commit 0ac01358078d63aea48a890e72f633ce13c2b8fc
Author: Anoop Chandu <anoopchandu96 gmail com>
Date: Tue Aug 29 21:16:20 2017 +0530
clang: Adding code indexer
https://bugzilla.gnome.org/show_bug.cgi?id=786700
plugins/clang/clang-plugin.c | 4 ++++
plugins/clang/clang.plugin | 2 ++
plugins/clang/meson.build | 4 ++++
3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/plugins/clang/clang-plugin.c b/plugins/clang/clang-plugin.c
index 42278b5..9347385 100644
--- a/plugins/clang/clang-plugin.c
+++ b/plugins/clang/clang-plugin.c
@@ -19,6 +19,7 @@
#include <libpeas/peas.h>
#include <ide.h>
+#include "ide-clang-code-indexer.h"
#include "ide-clang-completion-item.h"
#include "ide-clang-completion-provider.h"
#include "ide-clang-diagnostic-provider.h"
@@ -35,6 +36,9 @@ void
peas_register_types (PeasObjectModule *module)
{
peas_object_module_register_extension_type (module,
+ IDE_TYPE_CODE_INDEXER,
+ IDE_TYPE_CLANG_CODE_INDEXER);
+ peas_object_module_register_extension_type (module,
IDE_TYPE_HIGHLIGHTER,
IDE_TYPE_CLANG_HIGHLIGHTER);
peas_object_module_register_extension_type (module,
diff --git a/plugins/clang/clang.plugin b/plugins/clang/clang.plugin
index f63cccb..aaa6a89 100644
--- a/plugins/clang/clang.plugin
+++ b/plugins/clang/clang.plugin
@@ -13,3 +13,5 @@ X-Symbol-Resolver-Languages=c,chdr,cpp
X-Symbol-Resolver-Languages-Priority=100
X-Diagnostic-Provider-Languages=c,chdr,cpp
X-Diagnostic-Provider-Languages-Priority=100
+X-Code-Indexer-Languages=c,chdr,cpp,cphdr
+X-Code-Indexer-Languages-Priority=100
diff --git a/plugins/clang/meson.build b/plugins/clang/meson.build
index 40697b3..0af7e0c 100644
--- a/plugins/clang/meson.build
+++ b/plugins/clang/meson.build
@@ -1,6 +1,10 @@
if get_option('with_clang')
clang_sources = [
+ 'ide-clang-code-index-entries.c',
+ 'ide-clang-code-index-entries.h',
+ 'ide-clang-code-indexer.c',
+ 'ide-clang-code-indexer.h',
'ide-clang-completion-item.c',
'ide-clang-completion-item.h',
'ide-clang-completion-item-private.h',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]