[gnome-builder] libide: enable format string provider by default
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: enable format string provider by default
- Date: Tue, 24 Mar 2015 00:20:35 +0000 (UTC)
commit 488fc20d3fb4c20f086efb862c76c15613a7c088
Author: Christian Hergert <christian hergert me>
Date: Sun Mar 15 13:52:39 2015 -0700
libide: enable format string provider by default
libide/c/ide-c-language.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/libide/c/ide-c-language.c b/libide/c/ide-c-language.c
index a30104c..e065e21 100644
--- a/libide/c/ide-c-language.c
+++ b/libide/c/ide-c-language.c
@@ -18,6 +18,7 @@
#include <glib/gi18n.h>
+#include "ide-c-format-provider.h"
#include "ide-c-indenter.h"
#include "ide-c-language.h"
#include "ide-clang-completion-provider.h"
@@ -46,13 +47,16 @@ G_DEFINE_TYPE_EXTENDED (IdeCLanguage, ide_c_language, IDE_TYPE_LANGUAGE, 0,
static GList *
ide_c_language_get_completion_providers (IdeLanguage *language)
{
+ GList *providers = NULL;
+
g_return_val_if_fail (IDE_IS_C_LANGUAGE (language), NULL);
+ providers = g_list_append (providers, g_object_new (IDE_TYPE_C_FORMAT_PROVIDER, NULL));
#if 0
- return g_list_append (NULL, g_object_new (IDE_TYPE_CLANG_COMPLETION_PROVIDER, NULL));
-#else
- return NULL;
+ providers = g_list_append (providers, g_object_new (IDE_TYPE_CLANG_COMPLETION_PROVIDER, NULL));
#endif
+
+ return providers;
}
static IdeDiagnostician *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]