]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)]
vala: Inherit lambda parameter attributes from delegate
... by setting base_parameter accordingly
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)]
vala: Improve copy of required attributes from delegate to lamdba method
Rico Tzschichholz [Sat, 14 Mar 2020 14:15:51 +0000 (15:15 +0100)]
vala: Accept enum-values as length for inline allocated arrays
Fixes https://gitlab.gnome.org/GNOME/vala/issues/935
Rico Tzschichholz [Fri, 13 Mar 2020 18:30:32 +0000 (19:30 +0100)]
valadoc: Create and register current Vala.CodeContext properly
Rico Tzschichholz [Fri, 13 Mar 2020 18:09:07 +0000 (19:09 +0100)]
vala: Use error() instead of Report.error() inside of CodeContext.get()
This is a bad thing while Report.error() actually uses CodeContext.get()
Regression of
e436f2833dc332e3fd728fe6f6b2cd7f224dcf33
Rico Tzschichholz [Thu, 12 Mar 2020 19:41:57 +0000 (20:41 +0100)]
vapi: Add cairo-gobject binding
and update reverse depends if appropriate
Corentin Noël [Thu, 12 Mar 2020 13:35:22 +0000 (14:35 +0100)]
cairo: Add missing type_id attributes guarded by GOBJECT define
When Cairo is built with GObject support wrapper, it provides
cairo-gobject.h that defines GType and GBoxed structures and enums.
Rico Tzschichholz [Fri, 13 Mar 2020 08:11:01 +0000 (09:11 +0100)]
codegen: Correctly access captured parameter in precondition of method
Fixes https://gitlab.gnome.org/GNOME/vala/issues/144
Rico Tzschichholz [Thu, 12 Mar 2020 23:01:09 +0000 (00:01 +0100)]
codegen: Emit postconditions before free'ing local variables
It was possible to cause segmentation-faults or use-after-free errors.
Rico Tzschichholz [Thu, 12 Mar 2020 18:19:19 +0000 (19:19 +0100)]
codegen: Reset outdated array _size_ variable after use as ref parameter
Fixes https://gitlab.gnome.org/GNOME/vala/issues/929
Rico Tzschichholz [Thu, 12 Mar 2020 18:19:19 +0000 (19:19 +0100)]
vapigen: Define "GOBJECT" corresponding to set profile of CodeContext
This is required to evaluate pre-processor directives correctly in
sourced bindings.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/933
ZUHONG TAO [Wed, 11 Mar 2020 14:59:17 +0000 (14:59 +0000)]
glib-2.0: Add binding for g_poll()
Fixes https://gitlab.gnome.org/GNOME/vala/issues/924
Rico Tzschichholz [Tue, 10 Mar 2020 15:38:07 +0000 (16:38 +0100)]
tests: Extend "GLib.Value (un-)boxing" test to increase coverage
Rico Tzschichholz [Sun, 8 Mar 2020 17:04:18 +0000 (18:04 +0100)]
poppler-glib: Update to 0.85
Fixes https://gitlab.gnome.org/GNOME/vala/issues/922
Rico Tzschichholz [Sun, 8 Mar 2020 16:54:39 +0000 (17:54 +0100)]
glib-2.0: Add missing "type_id" or "has_type_id" attributes to structs
See https://gitlab.gnome.org/GNOME/vala/issues/921
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)]
vala: Fix search for Parameter.base_parameter
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)]
glib-2.0: Memory profiling ("g_mem_*") is deprecated since 2.46
Rico Tzschichholz [Sat, 7 Mar 2020 09:50:21 +0000 (10:50 +0100)]
tests: Extend "GenericAccessors" test to increase coverage
Rico Tzschichholz [Sat, 7 Mar 2020 09:08:33 +0000 (10:08 +0100)]
codegen: Add destroy of parameter in vfunc of delegate property setter
The vfunc of an owned setter requires a destroy parameter. Support for
this was introduced with
1e90d53dba0eff6ec2babd8292676099308dd4f6
Fixes https://gitlab.gnome.org/GNOME/vala/issues/919
Rico Tzschichholz [Fri, 6 Mar 2020 21:47:54 +0000 (22:47 +0100)]
tests: Split array tests to provide a GLib-independent test
Rico Tzschichholz [Fri, 6 Mar 2020 21:47:54 +0000 (22:47 +0100)]
linux: Don't depend on GLib.Time when using POSIX profile
Rico Tzschichholz [Tue, 3 Mar 2020 13:54:50 +0000 (14:54 +0100)]
manual: Update from wiki.gnome.org
Princeton Ferro [Tue, 18 Feb 2020 09:39:54 +0000 (10:39 +0100)]
vala: Prevent possible stack-overflow in Class.is_subtype_of()
Princeton Ferro [Mon, 3 Feb 2020 08:26:34 +0000 (03:26 -0500)]
girparser: Delay adding of "GLib.Object" prerequisite to interfaces
Rico Tzschichholz [Mon, 2 Mar 2020 22:56:57 +0000 (23:56 +0100)]
girparser: Decrease return_array_length_idx for transformed function
Rico Tzschichholz [Sun, 1 Mar 2020 11:37:52 +0000 (12:37 +0100)]
vala: Report an internal error for unavailable context and bail
If calling CodeContext.get/pop() with an empty stack present then there is
no way to recover so bail.
Princeton Ferro [Sun, 1 Mar 2020 08:54:13 +0000 (09:54 +0100)]
vala: Fix circular reference in EnumValueType
Princeton Ferro [Sun, 1 Mar 2020 08:54:13 +0000 (09:54 +0100)]
vala: Fix circular reference in Property
Princeton Ferro [Sun, 1 Mar 2020 08:54:13 +0000 (09:54 +0100)]
Add missing CodeContext.pop() calls
Release previously pushed CodeContext instances from static list.
Rico Tzschichholz [Sat, 22 Feb 2020 15:00:22 +0000 (16:00 +0100)]
vala: Add local-variables to current scope regardless its error state
This avoids subsequent errors which are not useful to report when the user
actually defined it.
Rico Tzschichholz [Thu, 20 Feb 2020 14:34:35 +0000 (15:34 +0100)]
vala: Skip UsingDirective if error is set
Princeton Ferro [Thu, 20 Feb 2020 14:31:13 +0000 (15:31 +0100)]
vala: Handle unavailable type-symbol in Constant.check_const_type()
This caused criticals like:
vala_typesymbol_is_subtype_of: assertion 'self != NULL' failed
Rico Tzschichholz [Thu, 20 Feb 2020 14:26:46 +0000 (15:26 +0100)]
vala: Don't analyze error-type of errornous catch-clauses
Rico Tzschichholz [Thu, 20 Feb 2020 14:24:36 +0000 (15:24 +0100)]
vala: Properly set CodeNode.error when reporting an error (2)
Rico Tzschichholz [Thu, 20 Feb 2020 14:19:37 +0000 (15:19 +0100)]
vala: Don't check for unhandled error if error is set on body
This is how Method and CreationMethod behave already.
Rico Tzschichholz [Thu, 20 Feb 2020 13:19:10 +0000 (14:19 +0100)]
vala: Bail ThrowStatement.get_error_types() if error is set
This caused criticals when error_expression is not correct.
Rico Tzschichholz [Thu, 20 Feb 2020 13:19:10 +0000 (14:19 +0100)]
vala: Rely on more implementations of Block in SwitchSection
It was possible that statements in switch-sections were not processed
by the semantic-analyzer. Therefore they were not checked for errors
and marked as such.
Rico Tzschichholz [Thu, 20 Feb 2020 13:19:10 +0000 (14:19 +0100)]
vala: Rework ReturnStatement.check to handle "current_return_type == null"
Thanks to Daniel Espinosa Ortiz.
Rico Tzschichholz [Thu, 20 Feb 2020 08:33:19 +0000 (09:33 +0100)]
tests: Add invalid "return" tests to increase coverage
Rico Tzschichholz [Thu, 20 Feb 2020 06:40:33 +0000 (07:40 +0100)]
vapi: Add some fundamental deps files
When using --nostdpkg those are important to have.
See https://gitlab.gnome.org/GNOME/vala/issues/911
Rico Tzschichholz [Wed, 19 Feb 2020 13:56:37 +0000 (14:56 +0100)]
vala: Prevent possible stack-overflow in Class.is_compact/is_immutable
Guard recursive call on base_class in is_compact and is_immutable by
checking for cyclic class declaration.
Princeton Ferro [Wed, 19 Feb 2020 13:43:00 +0000 (14:43 +0100)]
vala: Method representing a LambdaExpression might be null on an error
This caused criticals like:
vala_method_get_closure: assertion 'self != NULL' failed
Rico Tzschichholz [Wed, 19 Feb 2020 06:36:30 +0000 (07:36 +0100)]
vala: Never add "null" in ForeachStatement.get_defined_variables()
See https://gitlab.gnome.org/GNOME/vala/issues/911
Rico Tzschichholz [Tue, 18 Feb 2020 17:35:40 +0000 (18:35 +0100)]
vala: Don't process arguments of MethodCall if error is set
This caused criticals like:
vala_method_get_closure: assertion 'self != NULL' failed
Rico Tzschichholz [Tue, 18 Feb 2020 15:35:21 +0000 (16:35 +0100)]
vala: Set error and return early on invalid index in ElementAccess
This caused criticals like:
vala_code_node_check: assertion 'self != NULL' failed
Rico Tzschichholz [Tue, 18 Feb 2020 15:20:42 +0000 (16:20 +0100)]
vala: Don't process initializer of parameter if error is set
This caused criticals like:
vala_data_type_compatible: assertion 'self != NULL' failed
vala_code_node_to_string: assertion 'self != NULL' failed
Rico Tzschichholz [Tue, 18 Feb 2020 14:03:42 +0000 (15:03 +0100)]
tests: Add "GObject and GType class lifetime" tests to increase coverage
Rico Tzschichholz [Tue, 18 Feb 2020 15:59:52 +0000 (16:59 +0100)]
testrunner: Pass G_DEBUG=fatal-warnings to invalid test
Rico Tzschichholz [Tue, 18 Feb 2020 16:12:19 +0000 (17:12 +0100)]
vala: Handle PointerType and VoidType in Constant.check_const_type()
This caused criticals like:
vala_typesymbol_is_subtype_of: assertion 'self != NULL' failed
Rico Tzschichholz [Mon, 17 Feb 2020 16:43:24 +0000 (17:43 +0100)]
codegen: Don't initialize stack-allocated array with local-constant length
Fixes https://gitlab.gnome.org/GNOME/vala/issues/910
Rico Tzschichholz [Mon, 17 Feb 2020 10:00:46 +0000 (11:00 +0100)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Wed, 12 Feb 2020 16:48:04 +0000 (17:48 +0100)]
vapi: Add harfbuzz-gobject binding
Mark it as experimental while is it subject to change.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/909
Rico Tzschichholz [Sun, 16 Feb 2020 19:34:08 +0000 (20:34 +0100)]
gtk4: Update to 3.98.0+
410dbdf6
Rico Tzschichholz [Sun, 16 Feb 2020 19:15:04 +0000 (20:15 +0100)]
girparser: Report a warning for conflicting class and instance methods
Rico Tzschichholz [Sun, 16 Feb 2020 17:32:56 +0000 (18:32 +0100)]
webkit2gtk-4.0: Update to 2.27.90
Rico Tzschichholz [Sun, 16 Feb 2020 13:47:24 +0000 (14:47 +0100)]
gtk+-*.0,gtk4: Fix iter parameter of TextIter.order()
Fixes https://gitlab.gnome.org/GNOME/vala/issues/908
Rico Tzschichholz [Mon, 10 Feb 2020 09:42:41 +0000 (10:42 +0100)]
vala: Properly set CodeNode.error when reporting an error
Rico Tzschichholz [Sun, 9 Feb 2020 13:44:43 +0000 (14:44 +0100)]
Release 0.46.6
Rico Tzschichholz [Wed, 5 Feb 2020 07:32:53 +0000 (08:32 +0100)]
testrunner: Invalid tests and therefore expected failures must return 1
Rico Tzschichholz [Wed, 5 Feb 2020 07:32:53 +0000 (08:32 +0100)]
vala: Don't ignore errors in Parameter and acknowledge them further
This avoids useless subsequent errors and possible criticals while
operating on broken AST.
Rico Tzschichholz [Tue, 4 Feb 2020 15:58:52 +0000 (16:58 +0100)]
vala: Fix base-access check for compact classes (2)
See
84de99560ee96afa8cb80db3b342d584a72188cd
Rico Tzschichholz [Tue, 4 Feb 2020 09:05:04 +0000 (10:05 +0100)]
Correct a few spelling errors in user visible strings
Rico Tzschichholz [Mon, 3 Feb 2020 10:02:47 +0000 (11:02 +0100)]
gtk4: Update to 3.96.0+
4ab12ab7
Rico Tzschichholz [Sat, 1 Feb 2020 15:37:36 +0000 (16:37 +0100)]
codegen: Explicitly include <glib.h> as needed for null-literal
Rico Tzschichholz [Sat, 1 Feb 2020 15:29:59 +0000 (16:29 +0100)]
codegen: Explicitly include header for length-type of arrays
Rico Tzschichholz [Sat, 1 Feb 2020 13:47:00 +0000 (14:47 +0100)]
vala: Inline allocated arrays require length or initializer
Fixes https://gitlab.gnome.org/GNOME/vala/issues/903
Rico Tzschichholz [Thu, 30 Jan 2020 12:42:43 +0000 (13:42 +0100)]
tests: Add more "parser" tests to increase coverage
Princeton Ferro [Wed, 29 Jan 2020 04:14:42 +0000 (23:14 -0500)]
vala: Improve detection of recursive struct declarations
Introduced with
da2d58c95f39fd142dc845f5df9cdcd55be32476
Fixes https://gitlab.gnome.org/GNOME/vala/issues/902
Rico Tzschichholz [Fri, 24 Jan 2020 21:48:06 +0000 (22:48 +0100)]
codegen: Handle different type-symbols in visit_base_access()
It is required to distinguish between classes, compact classes, structs
and simple-type structs.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/901
Rico Tzschichholz [Fri, 24 Jan 2020 22:29:01 +0000 (23:29 +0100)]
codegen: Skip StructRegisterFunction for boolean/integer/floating types
Fixes https://gitlab.gnome.org/GNOME/vala/issues/901
Rico Tzschichholz [Sat, 25 Jan 2020 17:33:13 +0000 (18:33 +0100)]
vala: Fix base-access check for compact classes
See
84de99560ee96afa8cb80db3b342d584a72188cd
Rico Tzschichholz [Wed, 22 Jan 2020 10:15:04 +0000 (11:15 +0100)]
gtk+-3.0: Update to 3.24.13+
3822ac74
Rico Tzschichholz [Thu, 21 Nov 2019 13:37:54 +0000 (14:37 +0100)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Thu, 21 Nov 2019 13:38:06 +0000 (14:38 +0100)]
gtk4: Update to 3.96.0+
7e2e92a8
Rico Tzschichholz [Mon, 20 Jan 2020 19:03:57 +0000 (20:03 +0100)]
webkit2gtk-4.0: Update to 2.27.4
Rico Tzschichholz [Wed, 27 Nov 2019 12:55:35 +0000 (13:55 +0100)]
webkit2gtk-4.0: Update to 2.27.3
Rico Tzschichholz [Sat, 18 Jan 2020 17:00:28 +0000 (18:00 +0100)]
Regenerate for GIR-based bindings to apply explicit ctype attributes
Rico Tzschichholz [Sat, 18 Jan 2020 16:58:42 +0000 (17:58 +0100)]
girparser: Apply explicitly given ctype metadata attributes on callables
Rico Tzschichholz [Mon, 20 Jan 2020 11:45:03 +0000 (12:45 +0100)]
girparser: Improve source_reference of parameters
Rico Tzschichholz [Tue, 21 Jan 2020 16:56:28 +0000 (17:56 +0100)]
codegen: Cast instance parameter in member-initializer for base-properties
This fixes warnings issued with -Wincompatible-pointer-types
Fixes https://gitlab.gnome.org/GNOME/vala/issues/899
Princeton Ferro [Sat, 18 Jan 2020 19:03:37 +0000 (20:03 +0100)]
vala: Always bail if there are semantic errors
Previously introduced by
1430c461d4a45026331663989113feb195588255
Rico Tzschichholz [Tue, 14 Jan 2020 07:36:26 +0000 (08:36 +0100)]
codegen: Use result value of assignment rather than its computation
An inline assignment of an array-length, like
int j = --i.length;
resulted in a faulty tranformation
i_length1 = i_length1 - 1;
j = i_length1 - 1;
Regression of
80d4bf61e0c3100c839f3fdbcb5218996b6afd5f
Fixes https://gitlab.gnome.org/GNOME/vala/issues/895
Princeton Ferro [Sun, 12 Jan 2020 03:33:05 +0000 (22:33 -0500)]
parser: Extend source_reference of parenthesized expr to cover "( ... )"
Rico Tzschichholz [Tue, 7 Jan 2020 16:20:25 +0000 (17:20 +0100)]
codegen: Don't set implemenation of interface property to its own
A base-class is allowed to provide interface implementations for methods
and properties. If those exist without an explicit implementation in the
sub-class we then we end up finding the interface property itself. Using
that is obviously wrong and causes a cyclic call stack.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/891
Jeremy Philippe [Sat, 21 Dec 2019 19:55:53 +0000 (20:55 +0100)]
genie: Fix parser's inner state when a struct is declared after a class
If the struct is declared after a class and has a default creation
method, the parser will raise a "missing return type in method ..."
error.
The cause of the bug is that the global 'class_name' variable is not
updated when the parser encounters a struct, so the previous value
is used, and if a class has been parsed before, this value will be the
name of the class instead of the struct.
Jeremy Philippe [Sat, 21 Dec 2019 10:54:30 +0000 (11:54 +0100)]
vala: Allow to override base interface properties explicitly
Rico Tzschichholz [Mon, 9 Dec 2019 11:15:44 +0000 (12:15 +0100)]
vala: Check before accessing "name" of parent_symbol which might be null
Rico Tzschichholz [Thu, 5 Dec 2019 17:03:13 +0000 (18:03 +0100)]
glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid
Rico Tzschichholz [Tue, 3 Dec 2019 12:02:13 +0000 (13:02 +0100)]
vala: Don't allow "va_list" as return-type or type of fields
Fixes https://gitlab.gnome.org/GNOME/vala/issues/884
Rico Tzschichholz [Mon, 2 Dec 2019 11:06:41 +0000 (12:06 +0100)]
vala: Improve error message for unsupported inner types and declarations
Rico Tzschichholz [Tue, 26 Nov 2019 13:31:20 +0000 (14:31 +0100)]
test: Add some "method-call" tests to increase coverage
Rico Tzschichholz [Wed, 27 Nov 2019 12:38:47 +0000 (13:38 +0100)]
vala: Don't report further errors if MemberInitializer.check() failed
Rico Tzschichholz [Wed, 27 Nov 2019 10:42:55 +0000 (11:42 +0100)]
vala: Don't ignore inner errors in Block and acknowledge them further
This avoids useless subsequent errors and possible criticals while
operating on broken AST.
Rico Tzschichholz [Tue, 26 Nov 2019 10:06:45 +0000 (11:06 +0100)]
codegen: Fix precondition in creation method of structs
Rico Tzschichholz [Sun, 24 Nov 2019 21:42:18 +0000 (22:42 +0100)]
parser: Implicit "main" method of main-block is public and static
Rico Tzschichholz [Sun, 24 Nov 2019 17:23:58 +0000 (18:23 +0100)]
tests: Add "member-access" tests to increase coverage
Rico Tzschichholz [Sun, 24 Nov 2019 17:23:58 +0000 (18:23 +0100)]
tests: Add "scanner" tests to increase coverage
Rico Tzschichholz [Sun, 24 Nov 2019 17:23:58 +0000 (18:23 +0100)]
tests: Extend "float and integer" tests to increase coverage
Rico Tzschichholz [Thu, 21 Nov 2019 07:37:32 +0000 (08:37 +0100)]
vala: Add a basic parameter check for [Print] methods
and add tests to increase coverage
Introdruced with
ea8cd97480a7a560cfd8ae3f060f63638b7d9de4
Rico Tzschichholz [Tue, 19 Nov 2019 08:34:50 +0000 (09:34 +0100)]
tests: Fix and make fast-vapi test actually fatal