[gnome-builder] libide-code: update diagnostics availability macros
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide-code: update diagnostics availability macros
- Date: Tue, 12 Jul 2022 06:39:07 +0000 (UTC)
commit 8f4021b0d4670a8f9f9f88a1e90a1c375d1ca08e
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 16:20:16 2022 -0700
libide-code: update diagnostics availability macros
src/libide/code/ide-diagnostic-provider.c | 10 -------
src/libide/code/ide-diagnostic-provider.h | 12 ++++-----
src/libide/code/ide-diagnostic.c | 24 -----------------
src/libide/code/ide-diagnostic.h | 44 +++++++++++++++----------------
src/libide/code/ide-diagnostics-manager.c | 10 -------
src/libide/code/ide-diagnostics-manager.h | 12 ++++-----
src/libide/code/ide-diagnostics.c | 8 ------
src/libide/code/ide-diagnostics.h | 28 +++++++++-----------
8 files changed, 47 insertions(+), 101 deletions(-)
---
diff --git a/src/libide/code/ide-diagnostic-provider.c b/src/libide/code/ide-diagnostic-provider.c
index 134901356..5c7bd1475 100644
--- a/src/libide/code/ide-diagnostic-provider.c
+++ b/src/libide/code/ide-diagnostic-provider.c
@@ -42,8 +42,6 @@ ide_diagnostic_provider_default_init (IdeDiagnosticProviderInterface *iface)
*
* This signal should be emitted by diagnostic providers when they know their
* diagnostics have been invalidated out-of-band.
- *
- * Since: 3.32
*/
signals [INVALIDATED] =
g_signal_new ("invalidated",
@@ -57,8 +55,6 @@ ide_diagnostic_provider_default_init (IdeDiagnosticProviderInterface *iface)
* @self: a #IdeDiagnosticProvider
*
* Loads the provider, discovering any necessary resources.
- *
- * Since: 3.32
*/
void
ide_diagnostic_provider_load (IdeDiagnosticProvider *self)
@@ -74,8 +70,6 @@ ide_diagnostic_provider_load (IdeDiagnosticProvider *self)
* @self: a #IdeDiagnosticProvider
*
* Unloads the provider and any allocated resources.
- *
- * Since: 3.32
*/
void
ide_diagnostic_provider_unload (IdeDiagnosticProvider *self)
@@ -101,8 +95,6 @@ ide_diagnostic_provider_unload (IdeDiagnosticProvider *self)
*
* @callback is executed upon completion, and the caller should call
* ide_diagnostic_provider_diagnose_finish() to get the result.
- *
- * Since: 3.32
*/
void
ide_diagnostic_provider_diagnose_async (IdeDiagnosticProvider *self,
@@ -133,8 +125,6 @@ ide_diagnostic_provider_diagnose_async (IdeDiagnosticProvider *self,
* Completes an asynchronous request to diagnose a file.
*
* Returns: (transfer full): an #IdeDiagnostics or %NULL and @error is set.
- *
- * Since: 3.32
*/
IdeDiagnostics *
ide_diagnostic_provider_diagnose_finish (IdeDiagnosticProvider *self,
diff --git a/src/libide/code/ide-diagnostic-provider.h b/src/libide/code/ide-diagnostic-provider.h
index 6f5c1b71b..17705fffc 100644
--- a/src/libide/code/ide-diagnostic-provider.h
+++ b/src/libide/code/ide-diagnostic-provider.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_DIAGNOSTIC_PROVIDER (ide_diagnostic_provider_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeDiagnosticProvider, ide_diagnostic_provider, IDE, DIAGNOSTIC_PROVIDER, IdeObject)
struct _IdeDiagnosticProviderInterface
@@ -53,13 +53,13 @@ struct _IdeDiagnosticProviderInterface
GError **error);
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostic_provider_load (IdeDiagnosticProvider *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostic_provider_unload (IdeDiagnosticProvider *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostic_provider_emit_invalidated (IdeDiagnosticProvider *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostic_provider_diagnose_async (IdeDiagnosticProvider *self,
GFile *file,
GBytes *contents,
@@ -67,7 +67,7 @@ void ide_diagnostic_provider_diagnose_async (IdeDiagnosticProvider
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeDiagnostics *ide_diagnostic_provider_diagnose_finish (IdeDiagnosticProvider *self,
GAsyncResult *result,
GError **error);
diff --git a/src/libide/code/ide-diagnostic.c b/src/libide/code/ide-diagnostic.c
index fdee6b3f4..722073067 100644
--- a/src/libide/code/ide-diagnostic.c
+++ b/src/libide/code/ide-diagnostic.c
@@ -215,8 +215,6 @@ ide_diagnostic_init (IdeDiagnostic *self)
* See also: ide_diagnostic_get_range().
*
* Returns: (transfer none) (nullable): an #IdeLocation or %NULL
- *
- * Since: 3.32
*/
IdeLocation *
ide_diagnostic_get_location (IdeDiagnostic *self)
@@ -244,8 +242,6 @@ ide_diagnostic_get_location (IdeDiagnostic *self)
* Gets the file containing the diagnostic, if any.
*
* Returns: (transfer none) (nullable): an #IdeLocation or %NULL
- *
- * Since: 3.32
*/
GFile *
ide_diagnostic_get_file (IdeDiagnostic *self)
@@ -273,8 +269,6 @@ ide_diagnostic_get_file (IdeDiagnostic *self)
*
* Returns: (transfer full): string containing the text formatted for
* display.
- *
- * Since: 3.32
*/
gchar *
ide_diagnostic_get_text_for_display (IdeDiagnostic *self)
@@ -306,8 +300,6 @@ ide_diagnostic_get_text_for_display (IdeDiagnostic *self)
* Returns a string suitable to represent the diagnsotic severity.
*
* Returns: a string
- *
- * Since: 3.32
*/
const gchar *
ide_diagnostic_severity_to_string (IdeDiagnosticSeverity severity)
@@ -357,8 +349,6 @@ ide_diagnostic_get_n_ranges (IdeDiagnostic *self)
* function with a value greater or equal to ide_diagnostic_get_n_ranges().
*
* Returns: (transfer none) (nullable): An #IdeRange
- *
- * Since: 3.32
*/
IdeRange *
ide_diagnostic_get_range (IdeDiagnostic *self,
@@ -396,8 +386,6 @@ ide_diagnostic_get_n_fixits (IdeDiagnostic *self)
* returned from ide_diagnostic_get_n_fixits().
*
* Returns: (transfer none) (nullable): An #IdeTextEdit
- *
- * Since: 3.32
*/
IdeTextEdit *
ide_diagnostic_get_fixit (IdeDiagnostic *self,
@@ -468,8 +456,6 @@ ide_diagnostic_get_severity (IdeDiagnostic *self)
* @range: an #IdeRange
*
* Adds a source range to the diagnostic.
- *
- * Since: 3.32
*/
void
ide_diagnostic_add_range (IdeDiagnostic *self,
@@ -492,8 +478,6 @@ ide_diagnostic_add_range (IdeDiagnostic *self,
*
* Adds a source range to the diagnostic, but does not increment the
* reference count of @range.
- *
- * Since: 3.32
*/
void
ide_diagnostic_take_range (IdeDiagnostic *self,
@@ -515,8 +499,6 @@ ide_diagnostic_take_range (IdeDiagnostic *self,
* @fixit: an #IdeTextEdit
*
* Adds a source fixit to the diagnostic.
- *
- * Since: 3.32
*/
void
ide_diagnostic_add_fixit (IdeDiagnostic *self,
@@ -539,8 +521,6 @@ ide_diagnostic_add_fixit (IdeDiagnostic *self,
*
* Adds a source fixit to the diagnostic, but does not increment the
* reference count of @fixit.
- *
- * Since: 3.32
*/
void
ide_diagnostic_take_fixit (IdeDiagnostic *self,
@@ -628,8 +608,6 @@ ide_diagnostic_equal (IdeDiagnostic *a,
* This function will never return a floating variant.
*
* Returns: (transfer full): a #GVariant
- *
- * Since: 3.32
*/
GVariant *
ide_diagnostic_to_variant (IdeDiagnostic *self)
@@ -699,8 +677,6 @@ ide_diagnostic_to_variant (IdeDiagnostic *self)
* If @variant is %NULL or Upon failure, %NULL is returned.
*
* Returns: (nullable) (transfer full): a #IdeDiagnostic or %NULL
- *
- * Since: 3.32
*/
IdeDiagnostic *
ide_diagnostic_new_from_variant (GVariant *variant)
diff --git a/src/libide/code/ide-diagnostic.h b/src/libide/code/ide-diagnostic.h
index 9fc1a457d..705411c79 100644
--- a/src/libide/code/ide-diagnostic.h
+++ b/src/libide/code/ide-diagnostic.h
@@ -44,7 +44,7 @@ typedef enum
IDE_DIAGNOSTIC_FATAL = 6,
} IdeDiagnosticSeverity;
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeDiagnostic, ide_diagnostic, IDE, DIAGNOSTIC, IdeObject)
struct _IdeDiagnosticClass
@@ -55,60 +55,60 @@ struct _IdeDiagnosticClass
gpointer _reserved[16];
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeDiagnostic *ide_diagnostic_new (IdeDiagnosticSeverity severity,
const gchar *message,
IdeLocation *location);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeDiagnostic *ide_diagnostic_new_from_variant (GVariant *variant);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
guint ide_diagnostic_hash (IdeDiagnostic *self);
IDE_AVAILABLE_IN_ALL
gboolean ide_diagnostic_equal (IdeDiagnostic *a,
IdeDiagnostic *b);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_diagnostic_get_location (IdeDiagnostic *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_diagnostic_get_text (IdeDiagnostic *self);
-IDE_AVAILABLE_IN_42
+IDE_AVAILABLE_IN_ALL
IdeMarkedKind ide_diagnostic_get_marked_kind (IdeDiagnostic *self);
-IDE_AVAILABLE_IN_42
+IDE_AVAILABLE_IN_ALL
void ide_diagnostic_set_marked_kind (IdeDiagnostic *self,
IdeMarkedKind marked_kind);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeDiagnosticSeverity ide_diagnostic_get_severity (IdeDiagnostic *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GFile *ide_diagnostic_get_file (IdeDiagnostic *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gchar *ide_diagnostic_get_text_for_display (IdeDiagnostic *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_diagnostic_severity_to_string (IdeDiagnosticSeverity severity);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
guint ide_diagnostic_get_n_ranges (IdeDiagnostic *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeRange *ide_diagnostic_get_range (IdeDiagnostic *self,
guint index);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
guint ide_diagnostic_get_n_fixits (IdeDiagnostic *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeTextEdit *ide_diagnostic_get_fixit (IdeDiagnostic *self,
guint index);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostic_add_range (IdeDiagnostic *self,
IdeRange *range);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostic_take_range (IdeDiagnostic *self,
IdeRange *range);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostic_add_fixit (IdeDiagnostic *self,
IdeTextEdit *fixit);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostic_take_fixit (IdeDiagnostic *self,
IdeTextEdit *fixit);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_diagnostic_compare (IdeDiagnostic *a,
IdeDiagnostic *b);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GVariant *ide_diagnostic_to_variant (IdeDiagnostic *self);
G_END_DECLS
diff --git a/src/libide/code/ide-diagnostics-manager.c b/src/libide/code/ide-diagnostics-manager.c
index a1ee668a0..1d86e3def 100644
--- a/src/libide/code/ide-diagnostics-manager.c
+++ b/src/libide/code/ide-diagnostics-manager.c
@@ -589,8 +589,6 @@ ide_diagnostics_manager_class_init (IdeDiagnosticsManagerClass *klass)
*
* This signal is emitted when the diagnostics have changed for any
* file managed by the IdeDiagnosticsManager.
- *
- * Since: 3.32
*/
signals [CHANGED] =
g_signal_new ("changed",
@@ -852,8 +850,6 @@ ide_diagnostics_manager_extension_removed (IdeExtensionSetAdapter *adapter,
* Gets if the diagnostics manager is currently executing a diagnosis.
*
* Returns: %TRUE if the #IdeDiagnosticsManager is busy diagnosing.
- *
- * Since: 3.32
*/
gboolean
ide_diagnostics_manager_get_busy (IdeDiagnosticsManager *self)
@@ -893,8 +889,6 @@ ide_diagnostics_manager_get_busy (IdeDiagnosticsManager *self)
* a %NULL value.
*
* Returns: (transfer full): A new #IdeDiagnostics.
- *
- * Since: 3.32
*/
IdeDiagnostics *
ide_diagnostics_manager_get_diagnostics_for_file (IdeDiagnosticsManager *self,
@@ -974,8 +968,6 @@ ide_diagnostics_manager_get_sequence_for_file (IdeDiagnosticsManager *self,
*
* You may want to call this if you changed something that a buffer depends on,
* and want to seamlessly update its diagnostics with that updated information.
- *
- * Since: 3.32
*/
void
ide_diagnostics_manager_rediagnose (IdeDiagnosticsManager *self,
@@ -1001,8 +993,6 @@ ide_diagnostics_manager_rediagnose (IdeDiagnosticsManager *self,
* Gets the diagnostics manager for the context.
*
* Returns: (transfer none): an #IdeDiagnosticsManager
- *
- * Since: 3.32
*/
IdeDiagnosticsManager *
ide_diagnostics_manager_from_context (IdeContext *context)
diff --git a/src/libide/code/ide-diagnostics-manager.h b/src/libide/code/ide-diagnostics-manager.h
index aa8386d9f..36c95a7ed 100644
--- a/src/libide/code/ide-diagnostics-manager.h
+++ b/src/libide/code/ide-diagnostics-manager.h
@@ -28,20 +28,20 @@ G_BEGIN_DECLS
#define IDE_TYPE_DIAGNOSTICS_MANAGER (ide_diagnostics_manager_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeDiagnosticsManager, ide_diagnostics_manager, IDE, DIAGNOSTICS_MANAGER, IdeObject)
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeDiagnosticsManager *ide_diagnostics_manager_from_context (IdeContext *context);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_diagnostics_manager_get_busy (IdeDiagnosticsManager *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeDiagnostics *ide_diagnostics_manager_get_diagnostics_for_file (IdeDiagnosticsManager *self,
GFile *file);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
guint ide_diagnostics_manager_get_sequence_for_file (IdeDiagnosticsManager *self,
GFile *file);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostics_manager_rediagnose (IdeDiagnosticsManager *self,
IdeBuffer *buffer);
diff --git a/src/libide/code/ide-diagnostics.c b/src/libide/code/ide-diagnostics.c
index af9713787..03f73a87d 100644
--- a/src/libide/code/ide-diagnostics.c
+++ b/src/libide/code/ide-diagnostics.c
@@ -401,8 +401,6 @@ ide_diagnostics_build_caches (IdeDiagnostics *self)
* This function calls @callback for every line with diagnostics between
* @begin_line and @end_line. This is useful when drawing information about
* diagnostics in an editor where a known number of lines are visible.
- *
- * Since: 3.32
*/
void
ide_diagnostics_foreach_line_in_range (IdeDiagnostics *self,
@@ -450,8 +448,6 @@ ide_diagnostics_foreach_line_in_range (IdeDiagnostics *self,
* Locates an #IdeDiagnostic in @file at @line.
*
* Returns: (transfer none) (nullable): an #IdeDiagnostic or %NULL
- *
- * Since: 3.32
*/
IdeDiagnostic *
ide_diagnostics_get_diagnostic_at_line (IdeDiagnostics *self,
@@ -492,8 +488,6 @@ ide_diagnostics_get_diagnostic_at_line (IdeDiagnostics *self,
* Locates all #IdeDiagnostic in @file at @line.
*
* Returns: (transfer full) (element-type IdeDiagnostic) (nullable): an #GPtrArray or %NULL
- *
- * Since: 3.38
*/
GPtrArray *
ide_diagnostics_get_diagnostics_at_line (IdeDiagnostics *self,
@@ -537,8 +531,6 @@ ide_diagnostics_get_diagnostics_at_line (IdeDiagnostics *self,
* of diagnostics to add.
*
* Returns: (transfer full): an #IdeDiagnostics
- *
- * Since: 3.32
*/
IdeDiagnostics *
ide_diagnostics_new_from_array (GPtrArray *array)
diff --git a/src/libide/code/ide-diagnostics.h b/src/libide/code/ide-diagnostics.h
index 40041d103..82bddab97 100644
--- a/src/libide/code/ide-diagnostics.h
+++ b/src/libide/code/ide-diagnostics.h
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_DIAGNOSTICS (ide_diagnostics_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeDiagnostics, ide_diagnostics, IDE, DIAGNOSTICS, IdeObject)
/**
@@ -44,8 +44,6 @@ G_DECLARE_DERIVABLE_TYPE (IdeDiagnostics, ide_diagnostics, IDE, DIAGNOSTICS, Ide
*
* This function prototype is used to notify a caller of every line that has a
* diagnostic, and the most severe #IdeDiagnosticSeverity for that line.
- *
- * Since: 3.32
*/
typedef void (*IdeDiagnosticsLineCallback) (guint line,
IdeDiagnosticSeverity severity,
@@ -59,39 +57,39 @@ struct _IdeDiagnosticsClass
gpointer _reserved[16];
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeDiagnostics *ide_diagnostics_new (void);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeDiagnostics *ide_diagnostics_new_from_array (GPtrArray *array);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostics_add (IdeDiagnostics *self,
IdeDiagnostic *diagnostic);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostics_take (IdeDiagnostics *self,
IdeDiagnostic *diagnostic);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostics_merge (IdeDiagnostics *self,
IdeDiagnostics *other);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
guint ide_diagnostics_get_n_errors (IdeDiagnostics *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_diagnostics_get_has_errors (IdeDiagnostics *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
guint ide_diagnostics_get_n_warnings (IdeDiagnostics *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_diagnostics_get_has_warnings (IdeDiagnostics *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_diagnostics_foreach_line_in_range (IdeDiagnostics *self,
GFile *file,
guint begin_line,
guint end_line,
IdeDiagnosticsLineCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeDiagnostic *ide_diagnostics_get_diagnostic_at_line (IdeDiagnostics *self,
GFile *file,
guint line);
-IDE_AVAILABLE_IN_3_38
+IDE_AVAILABLE_IN_ALL
GPtrArray *ide_diagnostics_get_diagnostics_at_line (IdeDiagnostics *self,
GFile *file,
guint line);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]