[gnome-builder/wip/chergert/clang] clang: add probe helper
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/clang] clang: add probe helper
- Date: Fri, 27 Apr 2018 07:17:44 +0000 (UTC)
commit b30e25e87346d91c39fe971cf7d6a16fb8cafc87
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 27 00:17:59 2018 -0700
clang: add probe helper
Just printerr some info when we enter a function
src/plugins/clang/ide-clang.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
---
diff --git a/src/plugins/clang/ide-clang.c b/src/plugins/clang/ide-clang.c
index 28bf1541b..68ed022c5 100644
--- a/src/plugins/clang/ide-clang.c
+++ b/src/plugins/clang/ide-clang.c
@@ -38,6 +38,12 @@
#define PRIORITY_INDEX_FILE (500)
#define PRIORITY_HIGHLIGHT (300)
+#if 0
+# define PROBE G_STMT_START { g_printerr ("PROBE: %s\n", G_STRFUNC); } G_STMT_END
+#else
+# define PROBE G_STMT_START { } G_STMT_END
+#endif
+
struct _IdeClang
{
GObject parent;
@@ -739,6 +745,8 @@ ide_clang_index_file_async (IdeClang *self,
g_autoptr(IdeTask) task = NULL;
IndexFile *state;
+ PROBE;
+
g_return_if_fail (IDE_IS_CLANG (self));
g_return_if_fail (path != NULL);
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
@@ -1072,6 +1080,8 @@ ide_clang_diagnose_async (IdeClang *self,
g_autofree gchar *parent = NULL;
Diagnose *state;
+ PROBE;
+
g_return_if_fail (IDE_IS_CLANG (self));
g_return_if_fail (path != NULL);
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
@@ -1273,6 +1283,8 @@ ide_clang_complete_async (IdeClang *self,
g_autofree gchar *parent = NULL;
Complete *state;
+ PROBE;
+
g_return_if_fail (IDE_IS_CLANG (self));
g_return_if_fail (path != NULL);
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
@@ -1423,6 +1435,8 @@ ide_clang_find_nearest_scope_async (IdeClang *self,
g_autoptr(IdeTask) task = NULL;
FindNearestScope *state;
+ PROBE;
+
g_return_if_fail (IDE_IS_CLANG (self));
g_return_if_fail (path != NULL);
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
@@ -1609,6 +1623,8 @@ ide_clang_locate_symbol_async (IdeClang *self,
g_autofree gchar *parent = NULL;
LocateSymbol *state;
+ PROBE;
+
g_return_if_fail (IDE_IS_CLANG (self));
g_return_if_fail (path != NULL);
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
@@ -1812,6 +1828,8 @@ ide_clang_get_symbol_tree_async (IdeClang *self,
g_autofree gchar *parent = NULL;
GetSymbolTree *state;
+ PROBE;
+
g_return_if_fail (IDE_IS_CLANG (self));
g_return_if_fail (path != NULL);
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
@@ -2001,6 +2019,8 @@ ide_clang_get_highlight_index_async (IdeClang *self,
g_autofree gchar *parent = NULL;
GetHighlightIndex *state;
+ PROBE;
+
g_return_if_fail (IDE_IS_CLANG (self));
g_return_if_fail (path != NULL);
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
@@ -2132,6 +2152,8 @@ ide_clang_get_index_key_async (IdeClang *self,
g_autofree gchar *parent = NULL;
GetIndexKey *state;
+ PROBE;
+
g_return_if_fail (IDE_IS_CLANG (self));
g_return_if_fail (path != NULL);
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]