]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Sat, 17 Nov 2018 14:02:01 +0000 (15:02 +0100)]
vala: Compact classes don't allow private/class fields and to lock fields
This conveniently moves 2 error reports from codegen to semantic check too.
Rico Tzschichholz [Sat, 17 Nov 2018 12:51:14 +0000 (13:51 +0100)]
vala: Remove superfluous return_if_fail()
Rico Tzschichholz [Sat, 17 Nov 2018 16:22:36 +0000 (17:22 +0100)]
tests: Add "static fields" to compact class to increase coverage
Rico Tzschichholz [Sat, 17 Nov 2018 15:10:04 +0000 (16:10 +0100)]
tests: Add bug specific "lock test"
https://bugzilla.gnome.org/show_bug.cgi?id=629593
Rico Tzschichholz [Sat, 17 Nov 2018 12:34:07 +0000 (13:34 +0100)]
genieparser: Use dedicated Class.add_constructor/destructor() methods
Corentin Noël [Fri, 16 Nov 2018 13:55:00 +0000 (14:55 +0100)]
tests: Add more GLib.Array tests
Corentin Noël [Fri, 16 Nov 2018 07:19:55 +0000 (08:19 +0100)]
codegen: Add destroy function for GLib.Array
Fixes https://gitlab.gnome.org/GNOME/vala/issues/572
Corentin Noël [Fri, 16 Nov 2018 13:55:00 +0000 (14:55 +0100)]
glib-2.0: Avoid double-free in GLib.Array if clear_func is set
Rico Tzschichholz [Fri, 16 Nov 2018 13:26:50 +0000 (14:26 +0100)]
glib-2.0: Add missing Array.set_clear_func() binding
Rico Tzschichholz [Thu, 15 Nov 2018 21:44:46 +0000 (22:44 +0100)]
libvaladoc: Use Scanner.get_identifier_or_keyword() instead of outdated copy
Rico Tzschichholz [Thu, 15 Nov 2018 09:23:55 +0000 (10:23 +0100)]
tests: Add enum/errordomain tests for GIR parser to increase coverage
Rico Tzschichholz [Wed, 14 Nov 2018 21:17:43 +0000 (22:17 +0100)]
doc: Include dependencies for internal-api-docs to get reference linking
Rico Tzschichholz [Wed, 14 Nov 2018 21:12:54 +0000 (22:12 +0100)]
valadoc/html: Skip package dependency if target directory already exists
Simply assume we already generated the documentation for this dependency
in a previous invocation running with --deps.
Rico Tzschichholz [Wed, 14 Nov 2018 18:55:43 +0000 (19:55 +0100)]
libvaladoc: Add type_id to Api.Enum/Interface
Rico Tzschichholz [Tue, 12 Jun 2018 13:15:16 +0000 (15:15 +0200)]
libvaladoc: Link against private libvalaccodegen
Rico Tzschichholz [Wed, 14 Nov 2018 14:44:43 +0000 (15:44 +0100)]
libvaladoc: Actually assign type_id of Api.Structs
Rico Tzschichholz [Wed, 14 Nov 2018 17:44:53 +0000 (18:44 +0100)]
libvaladoc/html: Sort symbols and members where possible
Rico Tzschichholz [Wed, 14 Nov 2018 13:49:22 +0000 (14:49 +0100)]
libvaladoc: Match property signature with vala's codewriter
Rico Tzschichholz [Fri, 9 Nov 2018 14:21:16 +0000 (15:21 +0100)]
codegen: Transfer ownership of compact class to DestroysInstance method
Otherwise it is impossible to call an instance method of a compact class
which is a destructor.
See https://gitlab.gnome.org/GNOME/vala/issues/645
Corentin Noël [Tue, 13 Nov 2018 05:57:36 +0000 (06:57 +0100)]
gio-2.0: Add missing File.new_build_filename()
Rico Tzschichholz [Mon, 16 Jul 2018 19:08:22 +0000 (21:08 +0200)]
glib-2.0: Replace ctype ccode-attributes with type
Rico Tzschichholz [Mon, 16 Jul 2018 17:25:55 +0000 (19:25 +0200)]
gio-2.0: Replace finish_function ccode-attributes with finish_name
Rico Tzschichholz [Thu, 8 Nov 2018 18:36:54 +0000 (19:36 +0100)]
vapi: Some random fixes on old bindings
Rico Tzschichholz [Thu, 8 Nov 2018 11:48:20 +0000 (12:48 +0100)]
vala: Copy CCode instance_pos argument from virtual/abstract base methods
https://bugzilla.gnome.org/show_bug.cgi?id=540483
Rico Tzschichholz [Thu, 8 Nov 2018 11:45:24 +0000 (12:45 +0100)]
vala: Add CodeNode.copy_attribute_*() helper methods
Provides an easy way to copy a specific attribute argument from another
code node if the source has it set.
Rico Tzschichholz [Mon, 12 Nov 2018 09:27:45 +0000 (10:27 +0100)]
tests: Avoid use of g_ptr_array_find() which requires glib >= 2.54
Rico Tzschichholz [Thu, 8 Nov 2018 11:10:07 +0000 (12:10 +0100)]
tests: Add GenericArray (GPtrArray) tests
Rico Tzschichholz [Wed, 7 Nov 2018 22:00:18 +0000 (23:00 +0100)]
codegen: Fix method pointer cast if instance isn't at first position
By unconditionally putting the instance at first position the CCode
instance_pos attribute was not accounted for.
Rico Tzschichholz [Wed, 7 Nov 2018 16:23:58 +0000 (17:23 +0100)]
Release 0.42.3
Rico Tzschichholz [Wed, 7 Nov 2018 14:21:27 +0000 (15:21 +0100)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Wed, 7 Nov 2018 11:15:25 +0000 (12:15 +0100)]
gio-2.0: Result of DBusMessage.get_header() is unowned
Rico Tzschichholz [Wed, 7 Nov 2018 09:11:01 +0000 (10:11 +0100)]
gtk+-4.0: Update to 3.94.0+
b4b30b49
Alistair Thomas [Tue, 6 Nov 2018 10:51:39 +0000 (10:51 +0000)]
glib-2.0: Add array length to string.skip
Fixes https://gitlab.gnome.org/GNOME/vala/issues/695
Rico Tzschichholz [Tue, 6 Nov 2018 13:08:03 +0000 (14:08 +0100)]
vala: Don't check for GLib.Variant casting in POSIX profile
Rico Tzschichholz [Mon, 5 Nov 2018 07:28:08 +0000 (08:28 +0100)]
codegen: Add prototype for *_new() of abstact compact classes
Found with -Werror=missing-prototypes
Rico Tzschichholz [Sun, 4 Nov 2018 21:49:04 +0000 (22:49 +0100)]
codegen: Don't emit *_free() of derived compact classes
Found with -Werror=missing-prototypes
Rico Tzschichholz [Sun, 4 Nov 2018 19:22:22 +0000 (20:22 +0100)]
codegen: Add prototype for *_register_type() function
Found with -Werror=missing-prototypes
Alistair Thomas [Sat, 3 Nov 2018 13:28:52 +0000 (14:28 +0100)]
codegen: Add replacement for G_(BEGIN|END)_DECLS in non GOBJECT profile
Fixes https://gitlab.gnome.org/GNOME/vala/issues/622
Rico Tzschichholz [Sat, 3 Nov 2018 13:26:47 +0000 (14:26 +0100)]
libvaladoc: Add "unlock" to keywords in Highligher
Rico Tzschichholz [Sat, 3 Nov 2018 13:11:51 +0000 (14:11 +0100)]
vala: Fix TokenType.HASH.to_string()
Rico Tzschichholz [Thu, 1 Nov 2018 23:03:45 +0000 (00:03 +0100)]
codegen: Initialize internal temp-variables used as reference parameter
When casting Variant to multi-dimensional arrays the length fields are
used as out-parameters and needs to be initialized. They are not guaranteed
to be all set in _variant_get*() in this case.
Fixes tests with -Werror=maybe-uninitialized
Rico Tzschichholz [Sun, 8 Oct 2017 11:14:32 +0000 (13:14 +0200)]
glib-2.0: Add binding for g_test_add()
Fixes https://gitlab.gnome.org/GNOME/vala/issues/524
Ali Sabil [Thu, 1 Nov 2018 13:06:52 +0000 (14:06 +0100)]
codegen: Fix regex literal compile flags
The GRegex GRegexCompileFlags were declared as GRegexMatchFlags, leading
to a C compiler warning.
Rico Tzschichholz [Tue, 30 Oct 2018 08:00:01 +0000 (09:00 +0100)]
glib-2.0: Computing length once is enough in string.to_utf8()/splice()
Rico Tzschichholz [Tue, 30 Oct 2018 08:54:56 +0000 (09:54 +0100)]
tests: Add more string method tests
Rico Tzschichholz [Mon, 29 Oct 2018 16:17:36 +0000 (17:17 +0100)]
tests: Make "/errors/errors" test fatal
Rico Tzschichholz [Mon, 29 Oct 2018 15:39:29 +0000 (16:39 +0100)]
doc: Fix build of internal-api-docs
Rico Tzschichholz [Sun, 28 Oct 2018 08:12:38 +0000 (09:12 +0100)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Wed, 24 Oct 2018 12:05:09 +0000 (14:05 +0200)]
vala: Implement check() for StatementList
Rico Tzschichholz [Tue, 11 Oct 2016 09:05:23 +0000 (11:05 +0200)]
codegen: Improve ccode for fixed-length array parameters
https://gitlab.gnome.org/GNOME/vala/issues/163
Rico Tzschichholz [Mon, 13 Aug 2018 14:48:46 +0000 (16:48 +0200)]
gobject-2.0,gtk+-*.0: Fix some GLib.Value out/ref parameters
This is required due to GLib.Value being bound as struct.
Rico Tzschichholz [Tue, 23 Oct 2018 13:57:29 +0000 (15:57 +0200)]
vala: DataType for GLib.Error should be should resolved as ErrorType
Rico Tzschichholz [Tue, 23 Oct 2018 11:40:54 +0000 (13:40 +0200)]
vala: Fix several AST construction/parenting issues
Rico Tzschichholz [Sat, 27 Oct 2018 13:21:30 +0000 (15:21 +0200)]
testrunner: Reset $run_prefix before generating next test script
Rico Tzschichholz [Sat, 27 Oct 2018 10:43:19 +0000 (12:43 +0200)]
tests: Add some "using directive" tests to increase coverage
Rico Tzschichholz [Fri, 26 Oct 2018 11:41:01 +0000 (13:41 +0200)]
tests: Add "captured unassigned local variable" test
Rico Tzschichholz [Fri, 26 Oct 2018 07:12:21 +0000 (09:12 +0200)]
tests: Add "assigned local variables" tests
Rico Tzschichholz [Thu, 25 Oct 2018 11:26:46 +0000 (13:26 +0200)]
tests: Add implicit conversion tests for GLib.Variant
Luca Bruno [Tue, 3 Jan 2012 12:03:53 +0000 (13:03 +0100)]
vala: Fix and add more to_string() methods to expressions
Rico Tzschichholz [Wed, 24 Oct 2018 12:51:17 +0000 (14:51 +0200)]
vala: Implement get_*_variables() for ConditionalExpression
Luca Bruno [Thu, 29 Dec 2011 11:39:15 +0000 (12:39 +0100)]
vala: Add missing replace_expression() implementations
Rico Tzschichholz [Tue, 23 Oct 2018 13:05:30 +0000 (15:05 +0200)]
vala: Add some missing type copying
Rico Tzschichholz [Tue, 23 Oct 2018 11:46:34 +0000 (13:46 +0200)]
vala: Add source_reference to local variable of catch-clause
Luca Bruno [Fri, 5 Aug 2011 15:22:18 +0000 (17:22 +0200)]
vala: Always analyze nodes after they are inserted into the AST
Rico Tzschichholz [Sun, 21 Oct 2018 11:19:01 +0000 (13:19 +0200)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Fri, 19 Oct 2018 15:21:39 +0000 (17:21 +0200)]
girwriter: Fix ctype of out/ref and array parameters
Rico Tzschichholz [Fri, 19 Oct 2018 13:58:11 +0000 (15:58 +0200)]
tests: Add "method override with compatible delegate parameter" test
Rico Tzschichholz [Tue, 16 Oct 2018 19:19:45 +0000 (21:19 +0200)]
test: Add some invalid "non-null" tests
Rico Tzschichholz [Tue, 9 Oct 2018 06:28:33 +0000 (08:28 +0200)]
ccode: Fix typo and actually check "end_decls"
Note both begin_decls and end_decls must be either not null or null.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/672
Rico Tzschichholz [Mon, 8 Oct 2018 19:03:50 +0000 (21:03 +0200)]
codegen: Initialize internal temp-variables used as reference parameter
Variables for delegate-targets and array-lengths passed as reference in
method calls should be initialized to fix "make check" with -O3.
Rico Tzschichholz [Sun, 7 Oct 2018 17:36:24 +0000 (19:36 +0200)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Thu, 4 Oct 2018 12:28:31 +0000 (14:28 +0200)]
codegen: Make unreachable error an internal error
This is meant to be caught in ElementAccess.check()
Rico Tzschichholz [Thu, 4 Oct 2018 12:02:18 +0000 (14:02 +0200)]
codegen: Replace invalid array-length assert with internal error
While the test-suite triggers this assert with an invalid test an explicit
crash is not wanted.
Rico Tzschichholz [Mon, 24 Sep 2018 13:29:15 +0000 (15:29 +0200)]
tests: Extent "girwriter" test to increase coverage
Rico Tzschichholz [Wed, 26 Sep 2018 07:48:11 +0000 (09:48 +0200)]
build: Unconditionally add conditional VALAFLAGS to make bootstrap
This avoids another configure pass after an initial build with an older
valac <= 0.39.5.8.
See https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/44
Rico Tzschichholz [Mon, 24 Sep 2018 07:04:44 +0000 (09:04 +0200)]
Release 0.42.2
Rico Tzschichholz [Sun, 23 Sep 2018 10:30:17 +0000 (12:30 +0200)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Sun, 23 Sep 2018 08:48:58 +0000 (10:48 +0200)]
gtk+-4.0: Update to 3.94.0+
d90e2733
Rico Tzschichholz [Thu, 20 Sep 2018 13:43:06 +0000 (15:43 +0200)]
vapi: Update GIDL-based bindings to fix unsupported type-arguments
Rico Tzschichholz [Sun, 23 Sep 2018 07:42:19 +0000 (09:42 +0200)]
tests: Don't use deprecated syntax to connect signals
Rico Tzschichholz [Sat, 22 Sep 2018 16:30:17 +0000 (18:30 +0200)]
tests: Add some invalid "signal" tests to increase coverage
Rico Tzschichholz [Sat, 22 Sep 2018 12:44:09 +0000 (14:44 +0200)]
tests: Add some "yield" test to increase coverage
Rico Tzschichholz [Sat, 22 Sep 2018 08:42:55 +0000 (10:42 +0200)]
tests: Add invalid "object creation" tests to increase coverage
Rico Tzschichholz [Sat, 22 Sep 2018 06:31:51 +0000 (08:31 +0200)]
tests: Update field "owned to unowned" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 20:53:18 +0000 (22:53 +0200)]
tests: Add invalid variable declaration tests to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 16:12:49 +0000 (18:12 +0200)]
tests: Add invalid "property for Object() chainup" tests to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 15:47:06 +0000 (17:47 +0200)]
tests: Add invalid "construct without GObject" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 15:34:00 +0000 (17:34 +0200)]
tests: Add invalid "method to delegate" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 14:22:56 +0000 (16:22 +0200)]
tests: Add invalid "duplicating instance" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 13:59:56 +0000 (15:59 +0200)]
tests: Add "missing class prerequisite for interface" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 13:48:12 +0000 (15:48 +0200)]
tests: Add "GenericAccessors" tests to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 13:14:05 +0000 (15:14 +0200)]
tests: Add invalid "array concatenation" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 13:03:42 +0000 (15:03 +0200)]
tests: Add "unsupported use of length field" test to increase coverage
Rico Tzschichholz [Sat, 22 Sep 2018 12:49:33 +0000 (14:49 +0200)]
codewriter: Prepend "yield" if is_yield_expression is set on MethodCall/ObjectCreationExpression
Alistair Thomas [Thu, 20 Sep 2018 18:54:18 +0000 (19:54 +0100)]
glib-2.0: Add feature_test_macro details for Time struct's methods
Alistair Thomas [Mon, 2 Jul 2018 23:29:23 +0000 (00:29 +0100)]
glib-2.0: Set DateTime.now () to use local time zone as the default
Rico Tzschichholz [Thu, 19 Apr 2018 21:58:31 +0000 (23:58 +0200)]
valadoc: Fix some string escaping which gettext complains about
Rico Tzschichholz [Wed, 8 Aug 2018 14:36:38 +0000 (16:36 +0200)]
vala: Check if ArrayType supports its given element-type in analyzer pass
Rico Tzschichholz [Thu, 20 Sep 2018 10:56:38 +0000 (12:56 +0200)]
codegen: Fix typo in is_pure_ccode_expression()
Note that this method is not used anymore and should likely be dropped.
Introduced with
e086fada22eb7221cdbe34d7d4ac41445a50130a
Fixes https://gitlab.gnome.org/GNOME/vala/issues/673
Rico Tzschichholz [Thu, 20 Sep 2018 08:57:43 +0000 (10:57 +0200)]
g-i: Fix use after free in scanner
Fixes https://gitlab.gnome.org/GNOME/vala/issues/674