]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
2 years agoflatpak: Change the branch of the sdk-extension to match the runtime version
Jordan Petridis [Tue, 6 Jun 2023 17:20:57 +0000 (20:20 +0300)] 
flatpak: Change the branch of the sdk-extension to match the runtime version

2 years agoci: Only run the Flatpak jobs if there's REPO_TOKEN set in the repo
Jordan Petridis [Tue, 6 Jun 2023 12:45:24 +0000 (15:45 +0300)] 
ci: Only run the Flatpak jobs if there's REPO_TOKEN set in the repo

REPO_TOKEN is the authentication token to publish to the Nightly
flatpak repository.

And overwrite the publish_nightly rules again, since we need
to append them to only run on schedules.

2 years agoci: Tweak the rules for the flatpak builds
Lorenz Wildberg [Tue, 30 May 2023 16:12:30 +0000 (16:12 +0000)] 
ci: Tweak the rules for the flatpak builds

Make it possible to trigger manually if needed through the Web
UI and also drop the namespace and branch guard as there is only
one schedule and has to be set up explicitly anyway.

2 years agoflatpak: Add CI for the manifests
Jordan Petridis [Fri, 21 Apr 2023 01:17:30 +0000 (04:17 +0300)] 
flatpak: Add CI for the manifests

2 years agoflatpak: Add manifests
Lorenz Wildberg [Mon, 10 Apr 2023 19:56:32 +0000 (21:56 +0200)] 
flatpak: Add manifests

org.freedesktop.Sdk.Extension.vala-nightly builds the Vala Sdk extension
and dev.vala.valac is for quickly providing a development environment.

2 years agoSync NEWS from 0.56
Rico Tzschichholz [Thu, 25 May 2023 11:21:28 +0000 (13:21 +0200)] 
Sync NEWS from 0.56

2 years agotests: Add more method tests to increase coverage
Rico Tzschichholz [Wed, 17 May 2023 20:40:53 +0000 (22:40 +0200)] 
tests: Add more method tests to increase coverage

2 years agogtk4: Don't skip AlertDialog ctor
Val Och [Wed, 17 May 2023 15:14:19 +0000 (15:14 +0000)] 
gtk4: Don't skip AlertDialog ctor

2 years agoglib-2.0: Fix binding of g_variant_type_n_items()
JCWasmx86 [Sun, 5 Jun 2022 15:30:29 +0000 (17:30 +0200)] 
glib-2.0: Fix binding of g_variant_type_n_items()

2 years agoDOAP: Replace defunct mailing-list with developer-forum (GNOME Discourse)
Andre Klapper [Fri, 28 Apr 2023 02:33:08 +0000 (04:33 +0200)] 
DOAP: Replace defunct mailing-list with developer-forum (GNOME Discourse)

2 years agocodegen: Include "glib-object.h" when using GType/GBoxedCopyFunc
Rico Tzschichholz [Sat, 22 Apr 2023 08:49:14 +0000 (10:49 +0200)] 
codegen: Include "glib-object.h" when using GType/GBoxedCopyFunc

2 years agogirwriter: Write filename, line, and column attributes for doc elements
Lleyton Gray [Fri, 24 Mar 2023 01:16:47 +0000 (18:16 -0700)] 
girwriter: Write filename, line, and column attributes for doc elements

See https://gitlab.gnome.org/GNOME/vala/issues/707

2 years agovaladoc/tests: Add girwriter test
Rico Tzschichholz [Sun, 9 Apr 2023 11:29:26 +0000 (13:29 +0200)] 
valadoc/tests: Add girwriter test

2 years agovaladoc: Backing method of lambda-expression isn't included in valadoc AST
Rico Tzschichholz [Fri, 14 Apr 2023 13:13:54 +0000 (15:13 +0200)] 
valadoc: Backing method of lambda-expression isn't included in valadoc AST

2 years agobuild: valadoc requires valac 0.18.1
Rico Tzschichholz [Wed, 19 Apr 2023 11:16:30 +0000 (13:16 +0200)] 
build: valadoc requires valac 0.18.1

2 years agobuild: Improve usage of AC_PATH_PROG() for valacs
Rico Tzschichholz [Wed, 19 Apr 2023 11:16:30 +0000 (13:16 +0200)] 
build: Improve usage of AC_PATH_PROG() for valacs

2 years agoRegenerate manpages
Rico Tzschichholz [Tue, 18 Apr 2023 08:52:18 +0000 (10:52 +0200)] 
Regenerate manpages

2 years agoSync NEWS from 0.56
Rico Tzschichholz [Tue, 18 Apr 2023 08:48:07 +0000 (10:48 +0200)] 
Sync NEWS from 0.56

2 years agoUpdate another glib version reference to reflect bump to 2.56
Rico Tzschichholz [Mon, 17 Apr 2023 19:17:20 +0000 (21:17 +0200)] 
Update another glib version reference to reflect bump to 2.56

See 97d6ffb154ce0afab2bafb81b824ff7faadb66fa

2 years agoglib-2.0: g_chdir is declared in <glib/gstdio.h>
Florian Weimer [Mon, 17 Apr 2023 20:04:18 +0000 (22:04 +0200)] 
glib-2.0: g_chdir is declared in <glib/gstdio.h>

Not <glib.h>.  Fixes an implicit function error when building deja-dup.

2 years agogee: Fix type-arguments in cast
Rico Tzschichholz [Mon, 17 Apr 2023 13:56:12 +0000 (15:56 +0200)] 
gee: Fix type-arguments in cast

2 years agogee: Fix reversed type-arguments
Rico Tzschichholz [Mon, 17 Apr 2023 13:40:02 +0000 (15:40 +0200)] 
gee: Fix reversed type-arguments

2 years agovapi: Regenerate for GIR-based bindings to pick up sealed declaration modifier
Rico Tzschichholz [Sun, 16 Apr 2023 12:24:25 +0000 (14:24 +0200)] 
vapi: Regenerate for GIR-based bindings to pick up sealed declaration modifier

2 years agogirparser: Classes are considered sealed when there were no fields found
Rico Tzschichholz [Sun, 16 Apr 2023 12:24:25 +0000 (14:24 +0200)] 
girparser: Classes are considered sealed when there were no fields found

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1036

2 years agotests: Add missing instance fields to GIR test files
Rico Tzschichholz [Sun, 16 Apr 2023 12:24:25 +0000 (14:24 +0200)] 
tests: Add missing instance fields to GIR test files

2 years agovapi: Regenerate bindings for GenericType change
Rico Tzschichholz [Thu, 13 Apr 2023 18:36:08 +0000 (20:36 +0200)] 
vapi: Regenerate bindings for GenericType change

2 years agovala: Don't make GenericType nullable by default
Rico Tzschichholz [Thu, 13 Apr 2023 18:36:08 +0000 (20:36 +0200)] 
vala: Don't make GenericType nullable by default

Allow equality between nullable and non-nullable generic-types for now

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1191

2 years agocodegen: Fix usage of lambda-expression from delegate initializer
Rico Tzschichholz [Thu, 13 Apr 2023 08:46:45 +0000 (10:46 +0200)] 
codegen: Fix usage of lambda-expression from delegate initializer

Unset delegate-type if a lambda-expression handler was found to use
the correct code paths.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1428

2 years agocodegen: Return CCodeInvalidExpression instead of null
Rico Tzschichholz [Thu, 13 Apr 2023 06:25:02 +0000 (08:25 +0200)] 
codegen: Return CCodeInvalidExpression instead of null

This fixes the following criticals:

  vala_ccode_cast_expression_construct: assertion 'expr != NULL' failed
  vala_ccode_function_call_add_argument: assertion 'expr != NULL' failed

Remove dead code, this is already handled in get_dup_func_expression()

2 years agovala: Improve check of type_referene in ObjectCreationExpression
Lorenz Wildberg [Tue, 11 Apr 2023 20:02:51 +0000 (22:02 +0200)] 
vala: Improve check of type_referene in ObjectCreationExpression

2 years agovala: Check type-arguments in more declarations
Rico Tzschichholz [Sat, 8 Apr 2023 17:30:33 +0000 (19:30 +0200)] 
vala: Check type-arguments in more declarations

2 years agogirparser: Add support for type_parameters, implements and prerequisites metadata
Rico Tzschichholz [Sat, 8 Apr 2023 13:50:53 +0000 (15:50 +0200)] 
girparser: Add support for type_parameters, implements and prerequisites metadata

2 years agovala: Don't report consequential error when base_method is incompatible already
Rico Tzschichholz [Tue, 11 Apr 2023 10:21:14 +0000 (12:21 +0200)] 
vala: Don't report consequential error when base_method is incompatible already

2 years agovaladoc: Add missing generic type arguments
Rico Tzschichholz [Mon, 10 Apr 2023 21:42:16 +0000 (23:42 +0200)] 
valadoc: Add missing generic type arguments

2 years agovala: Add GenericSymbol interface for symbols supporting type-parameters
Rico Tzschichholz [Mon, 10 Apr 2023 15:13:35 +0000 (17:13 +0200)] 
vala: Add GenericSymbol interface for symbols supporting type-parameters

2 years agogee: Add more missing generic type arguments
Rico Tzschichholz [Sat, 8 Apr 2023 20:43:41 +0000 (22:43 +0200)] 
gee: Add more missing generic type arguments

2 years agogee: Fix return-type of HashMap.MapIterator.get_key()/get_value()
Rico Tzschichholz [Sat, 8 Apr 2023 16:50:59 +0000 (18:50 +0200)] 
gee: Fix return-type of HashMap.MapIterator.get_key()/get_value()

They didn't match the declarations in Vala.MapIterator interface.

2 years agovala: Improve error message for wrong number of type-arguments
Rico Tzschichholz [Sat, 8 Apr 2023 13:50:53 +0000 (15:50 +0200)] 
vala: Improve error message for wrong number of type-arguments

2 years agovala: Improve Symbol.to_string() to include TypeParameters
Rico Tzschichholz [Sat, 8 Apr 2023 13:50:53 +0000 (15:50 +0200)] 
vala: Improve Symbol.to_string() to include TypeParameters

2 years agoUse already available glib_ns instead of root_symbol.scope.lookup ("GLib")
Rico Tzschichholz [Sat, 8 Apr 2023 13:50:53 +0000 (15:50 +0200)] 
Use already available glib_ns instead of root_symbol.scope.lookup ("GLib")

2 years agovala: Check type-argument count of interface prerequisites
Rico Tzschichholz [Sat, 8 Apr 2023 08:55:39 +0000 (10:55 +0200)] 
vala: Check type-argument count of interface prerequisites

Additionally add test case for type-argument count of class base-types

2 years agogio-2.0: Add missing type-argument in ListStore.find_with_equal_func_full()
Rico Tzschichholz [Fri, 7 Apr 2023 14:49:10 +0000 (16:49 +0200)] 
gio-2.0: Add missing type-argument in ListStore.find_with_equal_func_full()

2 years agogio-2.0: Add new symbols from 2.76
Rico Tzschichholz [Thu, 6 Apr 2023 16:22:38 +0000 (18:22 +0200)] 
gio-2.0: Add new symbols from 2.76

2 years agogirparser: Apply "instance_idx" metadata for delegates
Rico Tzschichholz [Thu, 6 Apr 2023 16:22:38 +0000 (18:22 +0200)] 
girparser: Apply "instance_idx" metadata for delegates

2 years agoglib-2.0: Fix a few binding errors
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
glib-2.0: Fix a few binding errors

2 years agogtk+-3.0: Fix a few binding issues
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
gtk+-3.0: Fix a few binding issues

2 years agogtk4: Fix a few binding errors
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
gtk4: Fix a few binding errors

2 years agolibvaladoc: Make better use of properties
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
libvaladoc: Make better use of properties

2 years agovaladoc: Check correct value for null when looking for return comment
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
valadoc: Check correct value for null when looking for return comment

2 years agoglib-2.0: Add new symbols from 2.76
Rico Tzschichholz [Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)] 
glib-2.0: Add new symbols from 2.76

2 years agocodegen: Stabilize CCode.cname for backing method of lamdba expression
Rico Tzschichholz [Thu, 6 Apr 2023 13:14:52 +0000 (15:14 +0200)] 
codegen: Stabilize CCode.cname for backing method of lamdba expression

Move lambda_id generation to CCodeAttribute and use _vala_lambda%d_ pattern

2 years agog-i: Fix compiling with mingw clang
Biswapriyo Nath [Tue, 4 Apr 2023 18:45:21 +0000 (00:15 +0530)] 
g-i: Fix compiling with mingw clang

This adds the return type with GetFullPathNameA declaration.
Otherwise the following error is shown with clang 16

grealpath.h:29:19: error: type specifier missing, defaults to 'int';
ISO C99 and later do not support implicit int [-Wimplicit-int]

2 years agoSync NEWS from 0.56
Rico Tzschichholz [Tue, 4 Apr 2023 11:24:17 +0000 (13:24 +0200)] 
Sync NEWS from 0.56

2 years agovapi: Drop webkit2gtk-5.0 bindings
Rico Tzschichholz [Sat, 1 Apr 2023 11:28:39 +0000 (13:28 +0200)] 
vapi: Drop webkit2gtk-5.0 bindings

2 years agowebkit2gtk-6.0: Update to 2.40.0
Rico Tzschichholz [Sat, 1 Apr 2023 11:25:58 +0000 (13:25 +0200)] 
webkit2gtk-6.0: Update to 2.40.0

2 years agowebkit2gtk-4.1: Update to 2.40.0
Rico Tzschichholz [Sat, 1 Apr 2023 11:25:58 +0000 (13:25 +0200)] 
webkit2gtk-4.1: Update to 2.40.0

2 years agowebkit2gtk-4.0: Update to 2.40.0
Rico Tzschichholz [Sat, 1 Apr 2023 11:25:58 +0000 (13:25 +0200)] 
webkit2gtk-4.0: Update to 2.40.0

2 years agovala: Improve initialization of namespace fields with compound literal
Rico Tzschichholz [Mon, 27 Mar 2023 19:43:25 +0000 (21:43 +0200)] 
vala: Improve initialization of namespace fields with compound literal

Regression of 9c35019ef300082243ef7c71c22088c52d3db38e

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1424

2 years agoSync NEWS from 0.56
Rico Tzschichholz [Sat, 25 Mar 2023 16:31:51 +0000 (17:31 +0100)] 
Sync NEWS from 0.56

2 years agocodegen: Minor refactoring of TypeRegisterFunction and its subclasses
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)] 
codegen: Minor refactoring of TypeRegisterFunction and its subclasses

2 years agocodegen: Use G_TYPE_FLAG_NONE when targetting glib >= 2.74
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)] 
codegen: Use G_TYPE_FLAG_NONE when targetting glib >= 2.74

2 years agotests: Extend "struct-typed properties" tests to increase coverage
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)] 
tests: Extend "struct-typed properties" tests to increase coverage

2 years agotests: Add "signal with struct parameter" test to increase coverage
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)] 
tests: Add "signal with struct parameter" test to increase coverage

2 years agovala: Owned property accessors are not allowed for non-null simple types
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)] 
vala: Owned property accessors are not allowed for non-null simple types

Additionally drop invalid g_value_take_* references for enums

2 years agogtk+-3.0: Fix ToolPalette.icon_size get-accessor type
Rico Tzschichholz [Tue, 21 Mar 2023 10:14:49 +0000 (11:14 +0100)] 
gtk+-3.0: Fix ToolPalette.icon_size get-accessor type

2 years agovala: Allow assignment of namespace fields with inline allocated arrays
Rico Tzschichholz [Mon, 20 Mar 2023 14:18:00 +0000 (15:18 +0100)] 
vala: Allow assignment of namespace fields with inline allocated arrays

Fixes https://gitlab.gnome.org/GNOME/vala/issues/945

2 years agotests: Fix -Werror=array-bounds failure
Rico Tzschichholz [Mon, 20 Mar 2023 15:19:36 +0000 (16:19 +0100)] 
tests: Fix -Werror=array-bounds failure

2 years agovala: Set proper value-type of unary ref/out expression in initializers
Rico Tzschichholz [Thu, 16 Mar 2023 20:50:41 +0000 (21:50 +0100)] 
vala: Set proper value-type of unary ref/out expression in initializers

So the expected pointer-type for these expressions is available in AST.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1421

2 years agocodegen: Add declaration for register call of dynamic DBus interfaces
Rico Tzschichholz [Sat, 18 Mar 2023 11:40:55 +0000 (12:40 +0100)] 
codegen: Add declaration for register call of dynamic DBus interfaces

The call was added without the required extern declaration

Found by -Werror=implicit-function-declaration

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1422

2 years agosdl2: Improve Keyboard.get_state() and drop custom implementation
Rico Tzschichholz [Sat, 18 Mar 2023 11:40:55 +0000 (12:40 +0100)] 
sdl2: Improve Keyboard.get_state() and drop custom implementation

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1420

2 years agotests: Drop superfluous GLIB_2_56 preprocessing
Rico Tzschichholz [Sat, 18 Mar 2023 11:40:55 +0000 (12:40 +0100)] 
tests: Drop superfluous GLIB_2_56 preprocessing

2 years agogtk4: Add sealed to all the final types
Corentin Noël [Thu, 16 Mar 2023 11:17:47 +0000 (12:17 +0100)] 
gtk4: Add sealed to all the final types

Allows to know in advance if a type can be subclassed or not

Required until https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4575 is merged
or the right heuristic is implemented on Vala side.

2 years agocodegen: Use g_object_class_override_property to implement generic interface properties
Rico Tzschichholz [Mon, 13 Mar 2023 08:13:34 +0000 (09:13 +0100)] 
codegen: Use g_object_class_override_property to implement generic interface properties

This caused the criticals like:

    GLib-GObject-CRITICAL **: Read/writable property 'data' on class 'Foo' has type
    'gchararray' which is not exactly equal to the type 'gpointer' of the property on
    the interface 'IFoo'

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1419

2 years agocodegen: Add cast to accessor calls for generic property implementations
Rico Tzschichholz [Mon, 13 Mar 2023 08:13:34 +0000 (09:13 +0100)] 
codegen: Add cast to accessor calls for generic property implementations

Found by -Werror=int-conversion

2 years agocodegen: Consistently handle GLib.Error as boxed type
Rico Tzschichholz [Thu, 9 Mar 2023 08:34:36 +0000 (09:34 +0100)] 
codegen: Consistently handle GLib.Error as boxed type

Use G_TYPE_ERROR and GBoxed API for all error domains.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1418

2 years agovala: Correctly handle pre/post-increment expression as index of element access
Rico Tzschichholz [Wed, 8 Mar 2023 19:16:51 +0000 (20:16 +0100)] 
vala: Correctly handle pre/post-increment expression as index of element access

Regression of cb1828cfc5273aca752de9b39a77e0cd53305e61

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1417

2 years agogtk4: Update to 4.10.1~40b154bf
Rico Tzschichholz [Wed, 8 Mar 2023 11:14:28 +0000 (12:14 +0100)] 
gtk4: Update to 4.10.1~40b154bf

2 years agoRequire and target GLib >= 2.56
Rico Tzschichholz [Tue, 28 Feb 2023 11:29:16 +0000 (12:29 +0100)] 
Require and target GLib >= 2.56

The next stable release of vala will happen over 5 years after the
release of GLib 2.56.0.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1415

2 years agowebkitgtk-6.0: Update to 2.39.90
Rico Tzschichholz [Mon, 27 Feb 2023 13:27:52 +0000 (14:27 +0100)] 
webkitgtk-6.0: Update to 2.39.90

2 years agovala: Replace '.' with ':' in SourceReference.to_string()
Lorenz Wildberg [Tue, 27 Sep 2022 18:05:59 +0000 (20:05 +0200)] 
vala: Replace '.' with ':' in SourceReference.to_string()

This makes it possible to click on the file path and let the location
being opened in the editor.

2 years agotests: Prepend PKG_CONFIG_PATH to include possible existing value
Lorenz Wildberg [Tue, 21 Feb 2023 09:05:03 +0000 (10:05 +0100)] 
tests: Prepend PKG_CONFIG_PATH to include possible existing value

2 years agogtk4: Follow upstream change of CssProvider.load_from_data() to match gtk+-3.0
Rico Tzschichholz [Tue, 21 Feb 2023 07:12:23 +0000 (08:12 +0100)] 
gtk4: Follow upstream change of CssProvider.load_from_data() to match gtk+-3.0

Regression of 521d3b4eef09b767bcb2fa56c441fbb8752c9a2d

See https://gitlab.gnome.org/GNOME/gtk/issues/5543

2 years agogtkmodule: Improve error messages
Niels De Graef [Sat, 18 Feb 2023 20:32:52 +0000 (21:32 +0100)] 
gtkmodule: Improve error messages

Be a bit more specific about some of the errors that valac can
encounter when parsing a UI file.

(for my use case specifically, it helped me to figure out I had a
<property> tag without a name attribute in one of my UI files)

2 years agowebkitgtk-6.0: Update to 2.39.7
Rico Tzschichholz [Sun, 12 Feb 2023 17:22:23 +0000 (18:22 +0100)] 
webkitgtk-6.0: Update to 2.39.7

2 years agoSync NEWS from 0.56
Rico Tzschichholz [Sat, 11 Feb 2023 22:28:34 +0000 (23:28 +0100)] 
Sync NEWS from 0.56

2 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 11 Feb 2023 17:19:26 +0000 (18:19 +0100)] 
vapi: Update GIR-based bindings

2 years agogstreamer: Update from 1.23.0+ git main
Rico Tzschichholz [Sat, 11 Feb 2023 17:18:14 +0000 (18:18 +0100)] 
gstreamer: Update from 1.23.0+ git main

2 years agogtk4: Update to 4.9.4~9991d683
Rico Tzschichholz [Wed, 8 Feb 2023 14:41:58 +0000 (15:41 +0100)] 
gtk4: Update to 4.9.4~9991d683

2 years agolibgvc: Fix `cheader_filename` of the `Gvc` namespace
Ole André Vadla Ravnås [Tue, 1 Nov 2022 19:32:23 +0000 (20:32 +0100)] 
libgvc: Fix `cheader_filename` of the `Gvc` namespace

The .pc only adds `${includedir}/graphviz` to the include path.

2 years agovapi: Update gnome-desktop-3.0 and gnome-desktop-4
Fina Wilke [Thu, 19 Jan 2023 17:08:27 +0000 (18:08 +0100)] 
vapi: Update gnome-desktop-3.0 and gnome-desktop-4

2 years agovala: Better handling of [NoReturn] call inside finally clause
Rico Tzschichholz [Mon, 6 Feb 2023 17:52:11 +0000 (18:52 +0100)] 
vala: Better handling of [NoReturn] call inside finally clause

This caused the following criticals:

  vala_flow_analyzer_jump_target_construct_finally_clause: assertion 'last_block != NULL' failed
  vala_flow_analyzer_jump_target_get_is_exit_target: assertion 'self != NULL' failed
  vala_flow_analyzer_jump_target_get_is_error_target: assertion 'self != NULL' failed
  vala_flow_analyzer_jump_target_get_is_finally_clause: assertion 'self != NULL' failed

2 years agocodegen: Cast vfunc of property accessors by using cast_method_pointer()
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)] 
codegen: Cast vfunc of property accessors by using cast_method_pointer()

Found by -Wincompatible-function-pointer-types

See https://gitlab.gnome.org/GNOME/vala/issues/1408

2 years agocodegen: Cast return value of generic type accessor functions
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)] 
codegen: Cast return value of generic type accessor functions

Found by -Wincompatible-function-pointer-types

See https://gitlab.gnome.org/GNOME/vala/issues/1408

2 years agocodegen: Perform required cast while assigning and passing function pointers
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)] 
codegen: Perform required cast while assigning and passing function pointers

Found by -Wincompatible-function-pointer-types

See https://gitlab.gnome.org/GNOME/vala/issues/1408

2 years agotests: Add more Werror=... flags for clang
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)] 
tests: Add more Werror=... flags for clang

2 years agovala: Allow more general usage of PropertyAccessor.get_method()
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)] 
vala: Allow more general usage of PropertyAccessor.get_method()

2 years agovala: Inherit more important attributes for PropertyAccessor method
Rico Tzschichholz [Sun, 5 Feb 2023 18:33:15 +0000 (19:33 +0100)] 
vala: Inherit more important attributes for PropertyAccessor method

2 years agocodegen: Perform required casts for generic types of return-values and in/out-parameters
Rico Tzschichholz [Tue, 31 Jan 2023 14:43:57 +0000 (15:43 +0100)] 
codegen: Perform required casts for generic types of return-values and in/out-parameters

Found by -Werror=int-conversion

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1407

2 years agovala: Add support for Hexadecimal floating point literals
wszqkzqk [Fri, 9 Dec 2022 12:07:59 +0000 (20:07 +0800)] 
vala: Add support for Hexadecimal floating point literals

https://gcc.gnu.org/onlinedocs/gcc/Hex-Floats.html#Hex-Floats

2 years agovala: Improve missing exponent check for real literals
Rico Tzschichholz [Mon, 30 Jan 2023 13:56:07 +0000 (14:56 +0100)] 
vala: Improve missing exponent check for real literals