[gjs/refactor-globals] Fix iwyu errors.



commit c4d78b0a738003fb2a14fe251b17c80bf61112db
Author: Evan Welsh <noreply evanwelsh com>
Date:   Sat Jul 18 01:32:06 2020 -0500

    Fix iwyu errors.

 gi/boxed.h            | 1 +
 gi/object.cpp         | 2 ++
 gi/object.h           | 1 +
 gi/wrapperutils.h     | 2 ++
 gjs/atoms.h           | 2 ++
 gjs/context-private.h | 1 +
 gjs/importer.cpp      | 1 +
 7 files changed, 10 insertions(+)
---
diff --git a/gi/boxed.h b/gi/boxed.h
index e69ffe2a..01660472 100644
--- a/gi/boxed.h
+++ b/gi/boxed.h
@@ -44,6 +44,7 @@
 
 class BoxedPrototype;
 class BoxedInstance;
+class JSTracer;
 namespace JS {
 class CallArgs;
 }
diff --git a/gi/object.cpp b/gi/object.cpp
index c1173fba..6cd83ed8 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -75,6 +75,8 @@
 #include "gjs/mem-private.h"
 #include "util/log.h"
 
+class JSTracer;
+
 /* This is a trick to print out the sizes of the structs at compile time, in
  * an error message. */
 // template <int s> struct Measure;
diff --git a/gi/object.h b/gi/object.h
index 55fa30ed..9f61cfac 100644
--- a/gi/object.h
+++ b/gi/object.h
@@ -53,6 +53,7 @@
 #include "util/log.h"
 
 class GjsAtoms;
+class JSTracer;
 namespace JS {
 class CallArgs;
 }
diff --git a/gi/wrapperutils.h b/gi/wrapperutils.h
index 8ec8b6ba..181be1b6 100644
--- a/gi/wrapperutils.h
+++ b/gi/wrapperutils.h
@@ -55,6 +55,8 @@
 struct JSFunctionSpec;
 struct JSPropertySpec;
 
+class JSTracer;
+
 GJS_JSAPI_RETURN_CONVENTION
 bool gjs_wrapper_to_string_func(JSContext* cx, JSObject* this_obj,
                                 const char* objtype, GIBaseInfo* info,
diff --git a/gjs/atoms.h b/gjs/atoms.h
index baf1e681..eb53a785 100644
--- a/gjs/atoms.h
+++ b/gjs/atoms.h
@@ -33,6 +33,8 @@
 
 #include "gjs/macros.h"
 
+class JSTracer;
+
 // clang-format off
 #define FOR_EACH_ATOM(macro) \
     macro(code, "code") \
diff --git a/gjs/context-private.h b/gjs/context-private.h
index 1b1e5562..c88537c0 100644
--- a/gjs/context-private.h
+++ b/gjs/context-private.h
@@ -55,6 +55,7 @@ template <class Key>
 struct DefaultHasher;
 }
 class GjsAtoms;
+class JSTracer;
 
 using JobQueueStorage =
     JS::GCVector<JS::Heap<JSObject*>, 0, js::SystemAllocPolicy>;
diff --git a/gjs/importer.cpp b/gjs/importer.cpp
index 628d3cad..9303b739 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -34,6 +34,7 @@
 #include <vector>   // for vector
 
 #include <gio/gio.h>
+#include <glib-object.h>  // for g_object_unref
 #include <glib.h>
 
 #include <js/CallArgs.h>


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