[gnome-builder] clang: trace finalize of translation units



commit ccb1aa55193b07e99d9c8568501a771a72b1470b
Author: Christian Hergert <christian hergert me>
Date:   Thu Mar 26 17:31:34 2015 -0700

    clang: trace finalize of translation units

 libide/clang/ide-clang-translation-unit.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libide/clang/ide-clang-translation-unit.c b/libide/clang/ide-clang-translation-unit.c
index d08f1ce..9daac1d 100644
--- a/libide/clang/ide-clang-translation-unit.c
+++ b/libide/clang/ide-clang-translation-unit.c
@@ -16,6 +16,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#define G_LOG_DOMAIN "ide-clang-translation-unit"
+
 #include <clang-c/Index.h>
 #include <glib/gi18n.h>
 
@@ -23,6 +25,7 @@
 #include "ide-clang-completion-item.h"
 #include "ide-clang-private.h"
 #include "ide-clang-translation-unit.h"
+#include "ide-debug.h"
 #include "ide-diagnostic.h"
 #include "ide-diagnostics.h"
 #include "ide-file.h"
@@ -441,12 +444,16 @@ ide_clang_translation_unit_finalize (GObject *object)
 {
   IdeClangTranslationUnit *self = (IdeClangTranslationUnit *)object;
 
+  IDE_ENTRY;
+
   clang_disposeTranslationUnit (self->tu);
   g_clear_pointer (&self->diagnostics, ide_diagnostics_unref);
   g_clear_object (&self->file);
   g_clear_pointer (&self->index, ide_highlight_index_unref);
 
   G_OBJECT_CLASS (ide_clang_translation_unit_parent_class)->finalize (object);
+
+  IDE_EXIT;
 }
 
 static void


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