]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Fri, 4 Jan 2019 18:52:01 +0000 (19:52 +0100)]
WIP tests: Run with valgrind and optimizations
Rico Tzschichholz [Fri, 4 Jan 2019 18:18:11 +0000 (19:18 +0100)]
codegen: Cast instance parameter for property access in object-initializer
This will silence those incompatible-pointer-types warnings
Jiří Janoušek [Thu, 3 Jan 2019 13:43:26 +0000 (14:43 +0100)]
gio-2.0: Fix File.replace_contents_bytes_async()
Closes https://gitlab.gnome.org/GNOME/vala/merge_requests/37
Rico Tzschichholz [Wed, 2 Jan 2019 17:41:37 +0000 (18:41 +0100)]
Drop leftover deprecated syntax support of += and -= for dynamic signals
See https://gitlab.gnome.org/GNOME/vala/issues/676
Rico Tzschichholz [Wed, 2 Jan 2019 13:25:47 +0000 (14:25 +0100)]
vala: Drop unused Enum.remove_all_values()
Rico Tzschichholz [Wed, 2 Jan 2019 12:32:04 +0000 (13:32 +0100)]
libvaladoc: Skip empty Version.replacement attribute to avoid critical
Rico Tzschichholz [Wed, 2 Jan 2019 12:08:56 +0000 (13:08 +0100)]
gobject-2.0: Use correct array-length-type for returned arrays
Rico Tzschichholz [Wed, 2 Jan 2019 08:33:26 +0000 (09:33 +0100)]
glib-2.0: Use correct array-length-type for returned arrays
As usual length is returned by an implicit out-parameter where the
provided target variable must have a matching data type.
Discovered by -fstack-protector-all
See https://gitlab.gnome.org/GNOME/gitg/issues/171
Rico Tzschichholz [Tue, 1 Jan 2019 20:15:17 +0000 (21:15 +0100)]
codegen: Always use ccode attribute for ref/unref/free function names
Rico Tzschichholz [Mon, 31 Dec 2018 13:48:08 +0000 (14:48 +0100)]
vala: Report invalid instance member access to property
See https://gitlab.gnome.org/GNOME/vala/issues/605
Rico Tzschichholz [Sun, 30 Dec 2018 17:19:44 +0000 (18:19 +0100)]
codegen: Add default_value for CType to initialize variables if needed
Fixes https://gitlab.gnome.org/GNOME/vala/issues/724
Rico Tzschichholz [Fri, 21 Dec 2018 07:28:31 +0000 (08:28 +0100)]
build: Don't leak libvalaccode symbols to libvaladoc
Rico Tzschichholz [Sun, 23 Dec 2018 22:08:31 +0000 (23:08 +0100)]
codegen: Use temp-vars for ellipsis out-arguments to fix memory management
Fixes https://gitlab.gnome.org/GNOME/vala/issues/722
Rico Tzschichholz [Wed, 26 Dec 2018 19:34:39 +0000 (20:34 +0100)]
codegen: Use temp-var for MethodCall with out/ref arguments
Checking arguments of a MethodCall expression is required for varidic
methods where checking parameters isn't sufficient. Doing this makes
looking for out/ref parameters superfluous.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/722
Rico Tzschichholz [Sat, 1 Dec 2018 14:27:08 +0000 (15:27 +0100)]
vala: Allow explicit interface methods to be virtual
Rico Tzschichholz [Fri, 30 Nov 2018 20:26:15 +0000 (21:26 +0100)]
codegen: Use properly checked implicit interface implementations
Collect implicit interface implementations in AST and avoid doing the same
checks twice.
This caused double vfunc assignments if an implementation is provided while
a method with the same name is available in prerequisite class.
See https://bugzilla.gnome.org/show_bug.cgi?id=536863
and https://bugzilla.gnome.org/show_bug.cgi?id=652098
Fixes https://gitlab.gnome.org/GNOME/vala/issues/548
Rico Tzschichholz [Thu, 29 Nov 2018 17:44:28 +0000 (18:44 +0100)]
vala: Search in all interfaces for an implementation match and don't bail early
The first imcompatible method match doesn't mean there is no match for another
interface. This might mean an implementation is missing which will be covered
by the semantic check of the parent class.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/548
Rico Tzschichholz [Wed, 19 Dec 2018 07:21:21 +0000 (08:21 +0100)]
vala: No need to look further if an implementations was found
Rico Tzschichholz [Thu, 29 Nov 2018 16:59:01 +0000 (17:59 +0100)]
vala: Don't just guess and check for a matching base_interface_method too
This fixes class with multiple interfaces which require implementations of
methods with conflicting naming while the explicit interface-type reference
is not present yet.
Extend the present test-case for runtime checking. This will still silently
connect matching base-class methods as before as introduced in
e1a3ff9470763e7c6ff5a887036390bd418f4e46
Fixes https://gitlab.gnome.org/GNOME/vala/issues/548
Rico Tzschichholz [Tue, 18 Dec 2018 20:19:35 +0000 (21:19 +0100)]
vala: Add Method.compatible_no_error()
Rico Tzschichholz [Sat, 1 Dec 2018 13:13:31 +0000 (14:13 +0100)]
vala: Allow get_actual_type() to be used for expected failures
If the passed node_reference is null there won't be any error reporting.
The resovled DataType will be an InvalidType on errors as usual.
Rico Tzschichholz [Wed, 5 Dec 2018 15:01:13 +0000 (16:01 +0100)]
vala: Add GenericType.get_actual_type()
Rico Tzschichholz [Tue, 18 Dec 2018 10:07:57 +0000 (11:07 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 18 Dec 2018 11:36:11 +0000 (12:36 +0100)]
gtk+-4.0: Update to 3.94.0+
a99bd2a4
Rico Tzschichholz [Tue, 18 Dec 2018 10:06:52 +0000 (11:06 +0100)]
gtk+-3.0: Update to 3.24.2+
eb821cb8
Rico Tzschichholz [Tue, 18 Dec 2018 10:06:25 +0000 (11:06 +0100)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Tue, 18 Dec 2018 10:05:04 +0000 (11:05 +0100)]
webkitgtk-4.0: Update to 2.23.1
Rico Tzschichholz [Tue, 18 Dec 2018 10:02:14 +0000 (11:02 +0100)]
poppler-glib: Update to 0.71
Rico Tzschichholz [Sun, 16 Dec 2018 19:01:19 +0000 (20:01 +0100)]
vala: Array with fixed length don't require explicit instantiation
Fixes https://gitlab.gnome.org/GNOME/vala/issues/720
Rico Tzschichholz [Sun, 16 Dec 2018 19:14:53 +0000 (20:14 +0100)]
tests: Warnings and criticals should be fatal on compile time too
Rico Tzschichholz [Sun, 16 Dec 2018 19:13:37 +0000 (20:13 +0100)]
testrunner: Warnings and criticals should be fatal on compile time too
Rico Tzschichholz [Fri, 14 Dec 2018 13:37:37 +0000 (14:37 +0100)]
Release 0.43.2
Rico Tzschichholz [Tue, 11 Dec 2018 14:16:09 +0000 (15:16 +0100)]
codegen: GType classes require including "glib-object.h"
Move the include at a better position to cover more cases.
Rico Tzschichholz [Tue, 11 Dec 2018 13:08:20 +0000 (14:08 +0100)]
gobject-introspection-1.0: Pick up version attribute fixes
Rico Tzschichholz [Tue, 11 Dec 2018 08:51:51 +0000 (09:51 +0100)]
vapi: Regenerate GIR-based bindings to fix non-standard async methods
See https://gitlab.gnome.org/GNOME/vala/issues/709
Rico Tzschichholz [Mon, 10 Dec 2018 15:07:46 +0000 (16:07 +0100)]
codegen: Handle non-default AsyncResult parameter position
Unfortunately gdbus-codegen puts the AsyncResult parameter after possible
out-parameters therefore there is an "async_result_pos" attribute required
to handle this correctly.
Vala supposely follows the common practice to put the AsyncResult before
out-parameters by default.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/709
Rico Tzschichholz [Sat, 8 Dec 2018 09:41:50 +0000 (10:41 +0100)]
codegen: Always emit constants with initializer-list
generate_constant_declaration() handles both definition and declaration.
This is important when using --use-header where the actual definition
would never be written and we ended up with an "extern const ..." in the
header only.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/81
Rico Tzschichholz [Fri, 7 Dec 2018 08:22:20 +0000 (09:22 +0100)]
tests: Add "emit order" tests
Rico Tzschichholz [Thu, 6 Dec 2018 21:41:43 +0000 (22:41 +0100)]
codegen: Emit delegate/enum typedefs to type-declaration section
This fixes compilation of circular dependency of delegates with enums,
structs, classes and interfaces.
Resolve interface prerequisites after writing forward declarations to
fix entagled delegate dependencies in them.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/318
Rico Tzschichholz [Wed, 28 Nov 2018 16:48:55 +0000 (17:48 +0100)]
tests: Add "subtype cycle" tests to increase coverage
Florian Brosch [Wed, 10 Sep 2014 11:07:11 +0000 (13:07 +0200)]
vala: Break possible endless loop in SymbolResolver.get_type_for_struct()
Required to deal with invalid code containing base struct cycles.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/444
Rico Tzschichholz [Thu, 6 Dec 2018 14:47:35 +0000 (15:47 +0100)]
codegen: Interfaces require including "glib-object.h"
Rico Tzschichholz [Thu, 6 Dec 2018 09:20:34 +0000 (10:20 +0100)]
Release 0.43.1
Rico Tzschichholz [Wed, 5 Dec 2018 07:10:58 +0000 (08:10 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 5 Dec 2018 07:08:55 +0000 (08:08 +0100)]
gtk+-4.0: Update to 3.94.0+
8de1ba2c
Rico Tzschichholz [Wed, 5 Dec 2018 07:08:29 +0000 (08:08 +0100)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Wed, 5 Dec 2018 06:57:36 +0000 (07:57 +0100)]
girparser: Skip possible docs in transparent union
See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/75
Corentin Noël [Tue, 4 Dec 2018 16:01:06 +0000 (17:01 +0100)]
vala: Trigger understandable errors with GLib target version
Rico Tzschichholz [Mon, 3 Dec 2018 08:05:25 +0000 (09:05 +0100)]
girparser: Skip "source-position" elements
See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/75
Vivek Raj [Sat, 1 Dec 2018 16:10:57 +0000 (17:10 +0100)]
vala: Use clearer error message for automatic properties in interfaces
Fixes https://gitlab.gnome.org/GNOME/vala/issues/656
Rico Tzschichholz [Fri, 30 Nov 2018 15:43:42 +0000 (16:43 +0100)]
codegen: Emit initializer for enum-value into wanted declaration space
Fixes https://gitlab.gnome.org/GNOME/vala/issues/167
Rico Tzschichholz [Fri, 30 Nov 2018 17:43:05 +0000 (18:43 +0100)]
vala: Allow null-type as intializer for static struct fields
See
1a4a14d5550bb23414c0dc66e8951f4b03bd4137
Rico Tzschichholz [Thu, 29 Nov 2018 12:46:21 +0000 (13:46 +0100)]
vala: Report dedicated error for static field/property initializer in struct
This fixes criticals and doesn't rely on codegen error reporting.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/446
Rico Tzschichholz [Thu, 29 Nov 2018 10:09:51 +0000 (11:09 +0100)]
vala: Admit that structs are emtpy even with a static property
See https://gitlab.gnome.org/GNOME/vala/issues/446
Timm Bäder [Thu, 29 Oct 2015 21:09:57 +0000 (22:09 +0100)]
codegen: Mark needle parameter of internal array-contains methods as const
This will avoid some -Wdiscarded-qualifiers warnings.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/504
Rico Tzschichholz [Wed, 28 Nov 2018 12:53:29 +0000 (13:53 +0100)]
vala: Don't emit member access of assignments on static properties
Fixes https://gitlab.gnome.org/GNOME/vala/issues/573
Rico Tzschichholz [Wed, 28 Nov 2018 11:57:58 +0000 (12:57 +0100)]
build: Fix typo in --enable-debug check
Rico Tzschichholz [Tue, 27 Nov 2018 22:53:56 +0000 (23:53 +0100)]
codegen: Add support for delegate parameters in signals
Fixes https://gitlab.gnome.org/GNOME/vala/issues/205
Rico Tzschichholz [Tue, 27 Nov 2018 15:11:29 +0000 (16:11 +0100)]
vala: Make check_arguments() more verbose and don't bail on first error
Fixes https://gitlab.gnome.org/GNOME/vala/issues/438
Rico Tzschichholz [Tue, 27 Nov 2018 13:24:03 +0000 (14:24 +0100)]
vala: Type check for errors require an error expression
Fixes https://gitlab.gnome.org/GNOME/vala/issues/362
Rico Tzschichholz [Tue, 27 Nov 2018 13:18:36 +0000 (14:18 +0100)]
tests: Simplify "errors/errors" test a bit
Rico Tzschichholz [Tue, 23 Oct 2018 21:12:06 +0000 (23:12 +0200)]
vala: Add missing re-check guards for Do/For/WhileStatement and SwitchLabel
Rico Tzschichholz [Tue, 27 Nov 2018 10:08:15 +0000 (11:08 +0100)]
tests: Add and improve "foreach iterator" tests to increase coverage
Rico Tzschichholz [Tue, 27 Nov 2018 09:50:12 +0000 (10:50 +0100)]
tests: Add invalid "switch" tests to increase coverage
Rico Tzschichholz [Sun, 25 Nov 2018 17:27:32 +0000 (18:27 +0100)]
codegen: Actually create method cast for base interface method as needed
Keep the fallback to base method for now.
This will silence some incompatible pointer type warnings.
Jiří Janoušek [Sun, 25 Nov 2018 14:00:34 +0000 (15:00 +0100)]
valadoc: Add --fatal-warnings command line option
To be able to treat warnings as fatal.
Rico Tzschichholz [Sun, 25 Nov 2018 15:26:22 +0000 (16:26 +0100)]
glib-2.0: Cast strcmp to GCompareFunc
This will silence some incompatible pointer type warnings.
Rico Tzschichholz [Sun, 25 Nov 2018 15:01:29 +0000 (16:01 +0100)]
build: Use dedicated PACKAGE_VALADOC_* defines
Rico Tzschichholz [Sun, 25 Nov 2018 12:55:05 +0000 (13:55 +0100)]
libvaladoc: Drop cname parameter from Api.* constructors
Rico Tzschichholz [Sun, 25 Nov 2018 12:50:42 +0000 (13:50 +0100)]
libvaladoc: Clean up Api.Field constructor
Rico Tzschichholz [Sun, 25 Nov 2018 12:46:13 +0000 (13:46 +0100)]
libvaladoc: Clean up Api.Signal constructor
Rico Tzschichholz [Sun, 25 Nov 2018 12:17:54 +0000 (13:17 +0100)]
libvaladoc: Clean up Api.TypeSymbol constructor
Rico Tzschichholz [Sat, 17 Nov 2018 20:50:28 +0000 (21:50 +0100)]
libvaladoc: Clean up Api.ErrorDomain/ErrorCode constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:54:46 +0000 (15:54 +0100)]
libvaladoc: Clean up Api.Method constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:47:24 +0000 (15:47 +0100)]
libvaladoc: Clean up Api.Struct constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:30:25 +0000 (15:30 +0100)]
libvaladoc: Clean up Api.Interface constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:18:53 +0000 (15:18 +0100)]
libvaladoc: Clean up Api.Class constructor
Rico Tzschichholz [Tue, 12 Jun 2018 12:45:47 +0000 (14:45 +0200)]
libvaladoc: Drop unused to_string() methods
Rico Tzschichholz [Tue, 12 Jun 2018 14:07:12 +0000 (16:07 +0200)]
valadoc: Drop some get_ccode_*() wrappers
Rico Tzschichholz [Tue, 12 Jun 2018 13:41:41 +0000 (15:41 +0200)]
libvaladoc: Clean up Api.Property/PropertyAccessor constructor
Rico Tzschichholz [Tue, 12 Jun 2018 13:41:41 +0000 (15:41 +0200)]
libvaladoc: Clean up Api.TypeReference constructor
Rico Tzschichholz [Fri, 16 Nov 2018 08:05:59 +0000 (09:05 +0100)]
libvaladoc: Drop PropertyAccessorType
Rico Tzschichholz [Sun, 16 Sep 2018 15:49:02 +0000 (17:49 +0200)]
libvaladoc: Drop PropertyBindingType
Rico Tzschichholz [Mon, 17 Sep 2018 10:23:52 +0000 (12:23 +0200)]
libvaladoc: Drop AttributeArgument
Rico Tzschichholz [Sun, 16 Sep 2018 14:38:11 +0000 (16:38 +0200)]
libvaladoc: Drop MethodBindingType
Rico Tzschichholz [Sun, 18 Nov 2018 13:35:05 +0000 (14:35 +0100)]
libvaladoc: Drop Api.Member
Rico Tzschichholz [Sat, 17 Nov 2018 09:11:40 +0000 (10:11 +0100)]
libvaladoc: Drop Api.Browsable
Rico Tzschichholz [Sun, 16 Sep 2018 15:06:57 +0000 (17:06 +0200)]
libvaladoc: Replace SymbolAccessibility with Vala.SymbolAccessibility
Rico Tzschichholz [Tue, 12 Jun 2018 10:46:48 +0000 (12:46 +0200)]
libvaladoc: Replace FormalParameterType with Vala.ParameterDirection
Rico Tzschichholz [Sat, 24 Nov 2018 21:43:21 +0000 (22:43 +0100)]
tests: Add default defines test for VALA_0_XX and GLIB_2_XX
Rico Tzschichholz [Sat, 24 Nov 2018 12:43:21 +0000 (13:43 +0100)]
vala: Move setting of default defines for VALA_0_XX and GLIB_2_XX to Context
This avoids duplicated code and reduces the setup burden for library users.
Also start to warn about redefinitions, especially for our default defines.
Rico Tzschichholz [Thu, 22 Nov 2018 13:58:34 +0000 (14:58 +0100)]
codegen: Don't use temp variable for stack allocated simple type assignment
Rico Tzschichholz [Thu, 22 Nov 2018 11:40:23 +0000 (12:40 +0100)]
vala: Don't replace assignments for local variables with non-null simple-types
Rico Tzschichholz [Thu, 22 Nov 2018 08:21:27 +0000 (09:21 +0100)]
codegen: Don't emit unused temp variable for element access assignments
Regression of
2bcda488725cf28b3c3c358f2c348632bb7ba232
Rico Tzschichholz [Thu, 22 Nov 2018 09:36:47 +0000 (10:36 +0100)]
tests: Extend assignment and array element access tests
Rico Tzschichholz [Thu, 22 Nov 2018 12:05:04 +0000 (13:05 +0100)]
vala: Minor clean up assignment to binary expression transformation
Rico Tzschichholz [Thu, 22 Nov 2018 11:36:21 +0000 (12:36 +0100)]
codegen: Replace if-else-tree with switch
Rico Tzschichholz [Thu, 22 Nov 2018 13:14:28 +0000 (14:14 +0100)]
build: Add --enable-debug configure option
Rico Tzschichholz [Wed, 21 Nov 2018 13:46:37 +0000 (14:46 +0100)]
codegen: Don't emit type_id for enum in non GOBJECT profile
Rico Tzschichholz [Mon, 19 Nov 2018 12:13:24 +0000 (13:13 +0100)]
codegen: Don't explicitly add glib headers, using symbols will do that
See https://gitlab.gnome.org/GNOME/vala/issues/623