]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Thu, 5 Apr 2018 06:22:25 +0000 (08:22 +0200)]
vala: Check for matching ownership of type-arguments
Non-boxed simple types can't be unowned and are therefore ignored.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/696
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:29:45 +0000 (08:29 +0100)]
testrunner: Add -Werror=missing-prototypes
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
Rico Tzschichholz [Sun, 4 Nov 2018 18:26:28 +0000 (19:26 +0100)]
gdk-3.0: Fix type-argument in return-type of Device.get_axes()
Rico Tzschichholz [Sun, 4 Nov 2018 11:40:53 +0000 (12:40 +0100)]
vala: Use is_weak() for type-arguments in DataType.to_qualified_string()
Rico Tzschichholz [Sun, 4 Nov 2018 09:00:01 +0000 (10:00 +0100)]
gdbus: Don't pass null to get_ccode_array_length_type() to fix criticals
Rico Tzschichholz [Sat, 3 Nov 2018 16:29:21 +0000 (17:29 +0100)]
testrunner: Check if compiler flags are supported before using them
Use AX_CHECK_COMPILE_FLAG to collect TEST_CFLAGS in configure.
Rico Tzschichholz [Sat, 3 Nov 2018 13:38:21 +0000 (14:38 +0100)]
vala: Drop "explicit" from ValaSourceFile and use "from_commandline"
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 [Fri, 2 Nov 2018 08:03:40 +0000 (09:03 +0100)]
testrunner: Add -Werror=maybe-uninitialized
Rico Tzschichholz [Fri, 23 Feb 2018 14:31:37 +0000 (15:31 +0100)]
testrunner: Add -Werror=declaration-after-statement
Rico Tzschichholz [Fri, 23 Feb 2018 14:31:37 +0000 (15:31 +0100)]
testrunner: Add -Werror=duplicated-branches/duplicated-cond
George Barrett [Tue, 12 Dec 2017 03:39:33 +0000 (14:39 +1100)]
codegen: Infer index type of foreach on array from ArrayType.length_type
https://gitlab.gnome.org/GNOME/vala/issues/607
Rico Tzschichholz [Wed, 31 Oct 2018 16:12:50 +0000 (17:12 +0100)]
girwriter: Remove hardcoded "int" length type and use ArrayType.length_type
Rico Tzschichholz [Wed, 31 Oct 2018 10:09:21 +0000 (11:09 +0100)]
codegen: Keep respecting CCode array_length_type of Parameter/Method/Delegate
Rico Tzschichholz [Wed, 31 Oct 2018 09:21:52 +0000 (10:21 +0100)]
codegen: Support marshalling ArrayType.length_type in signals
Rico Tzschichholz [Wed, 31 Oct 2018 11:53:29 +0000 (12:53 +0100)]
gdbus: Remove hardcoded "int" length type and use ArrayType.length_type
George Barrett [Tue, 12 Dec 2017 03:37:38 +0000 (14:37 +1100)]
codegen: Remove hardcoded "int" length type and use ArrayType.length_type
https://gitlab.gnome.org/GNOME/vala/issues/607
Rico Tzschichholz [Tue, 30 Oct 2018 22:24:32 +0000 (23:24 +0100)]
vala: Add ArrayType.length_type and ArrayCreationExpression.length_type
https://gitlab.gnome.org/GNOME/vala/issues/607
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 [Wed, 31 Oct 2018 14:27:36 +0000 (15:27 +0100)]
vala: Drop DataType.is_array() and use usual type check as anywhere else
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 [Sat, 27 Oct 2018 13:28:53 +0000 (15:28 +0200)]
testrunner: Compile and run tests separately
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 08:36:22 +0000 (10:36 +0200)]
vala: Let UsingDirective hold reference to UnresolvedSymbol instances only
This should break a cyclic reference of SourceReference and Namespace.
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
Rico Tzschichholz [Wed, 24 Oct 2018 12:51:17 +0000 (14:51 +0200)]
vala: Implement get_*_variables() for ConditionalExpression
Luca Bruno [Thu, 5 Jan 2012 14:56:43 +0000 (15:56 +0100)]
vala: Don't navigate the resolver tree if a node has been checked already
Rico Tzschichholz [Wed, 24 Oct 2018 12:06:49 +0000 (14:06 +0200)]
vala: Make source_reference optional for ObjectCreationExpression
Rico Tzschichholz [Wed, 24 Oct 2018 12:05:09 +0000 (14:05 +0200)]
vala: Implement check() for StatementList
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 13:05:30 +0000 (15:05 +0200)]
vala: Add some missing type copying
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 [Tue, 23 Oct 2018 11:46:34 +0000 (13:46 +0200)]
vala: Add source_reference to local variable of catch-clause
Rico Tzschichholz [Tue, 23 Oct 2018 11:40:54 +0000 (13:40 +0200)]
vala: Fix several AST construction/parenting issues
Luca Bruno [Thu, 29 Dec 2011 11:39:15 +0000 (12:39 +0100)]
vala: Add missing replace_expression() implementations
Luca Bruno [Tue, 4 Feb 2014 00:00:39 +0000 (01:00 +0100)]
Recurse arguments when getting error types for method calls
Luca Bruno [Sun, 7 Aug 2011 10:44:41 +0000 (12:44 +0200)]
Collect error_types on demand to allow transformations
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 [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 [Sun, 21 Oct 2018 11:19:19 +0000 (13:19 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 21 Oct 2018 11:19:01 +0000 (13:19 +0200)]
gstreamer: Update from 1.15+ git master
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 [Tue, 11 Oct 2016 15:27:01 +0000 (17:27 +0200)]
valaparser: Don't allow to declare array parameters with "type array[]"
It is required to have a fixed length like "type array[3]".
Fixes https://gitlab.gnome.org/GNOME/vala/issues/163
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 20:19:24 +0000 (22:19 +0200)]
vala: Move nullable setting of LocalVariable with reference type to check()
... and keep skipping it in non-null mode.
Originally introduced with
80c18a1d1ff357be7f1d0f50f1aa331f206a0a0a
Fixes https://gitlab.gnome.org/GNOME/vala/issues/684
Rico Tzschichholz [Tue, 3 Jul 2018 10:34:07 +0000 (12:34 +0200)]
Add support for SingleInstance attribute for GObject classes
Fixes https://gitlab.gnome.org/GNOME/vala/issues/647
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 [Sun, 27 Aug 2017 14:03:03 +0000 (16:03 +0200)]
build: Allow disabling the build of valadoc
Allow disabling build of valadoc with configure option --disable-valadoc
Fixes https://gitlab.gnome.org/GNOME/vala/issues/596
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 [Sun, 23 Sep 2018 10:30:24 +0000 (12:30 +0200)]
vapi: Update GIR-based bindings
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 [Sat, 22 Sep 2018 20:05:14 +0000 (22:05 +0200)]
Drop deprecated syntax support of # modifier and operator
owned modifier and (owned) cast should be used instead for a long time.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/677
Rico Tzschichholz [Sat, 22 Sep 2018 19:49:24 +0000 (21:49 +0200)]
Drop deprecated syntax support of += and -= for signals
The connect/disconnect methods should be used instead for a long time.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/676
Rico Tzschichholz [Sat, 22 Sep 2018 16:39:36 +0000 (18:39 +0200)]
Move some errors from signal-module to the semantic-analyzer pass
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:40 +0000 (14:44 +0200)]
vala: Enforce "return yield ..." syntax to be expected
"yield return ..." wasn't handled correctly and resulted in broken c-code.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/675
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
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 19:43:17 +0000 (21:43 +0200)]
vala: Return early for invalid initializer of local variable declarations
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
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, 20 Sep 2018 13:43:06 +0000 (15:43 +0200)]
vapi: Update GIDL-based bindings to fix unsupported type-arguments