]>
git.ipfire.org Git - thirdparty/vala.git/log
Timm Bäder [Wed, 9 Nov 2016 08:45:49 +0000 (09:45 +0100)]
WIP
Timm Bäder [Tue, 8 Nov 2016 19:31:56 +0000 (20:31 +0100)]
checkpoint
Timm Bäder [Tue, 8 Nov 2016 09:59:17 +0000 (10:59 +0100)]
tests: Add another nullability test
Timm Bäder [Tue, 8 Nov 2016 09:46:42 +0000 (10:46 +0100)]
astprinter: Fix assignment printing
Timm Bäder [Tue, 8 Nov 2016 08:38:41 +0000 (09:38 +0100)]
astprinter: Remove unused function
Timm Bäder [Tue, 8 Nov 2016 07:44:56 +0000 (08:44 +0100)]
astprinter: Print nullability state of binary expression
Timm Bäder [Tue, 8 Nov 2016 07:44:26 +0000 (08:44 +0100)]
Add more nullability tests
Timm Bäder [Tue, 8 Nov 2016 07:01:46 +0000 (08:01 +0100)]
compiler: Print ast after checking
Checking also alters the AST...
Timm Bäder [Tue, 8 Nov 2016 06:59:42 +0000 (07:59 +0100)]
basicblock: Add names for entry() and exit() blocks
Timm Bäder [Tue, 8 Nov 2016 06:58:57 +0000 (07:58 +0100)]
astprinter: Improve assignment output
Timm Bäder [Tue, 8 Nov 2016 06:24:44 +0000 (07:24 +0100)]
flowanalyzer: Add helper to query visible version of variable
Timm Bäder [Mon, 7 Nov 2016 18:29:30 +0000 (19:29 +0100)]
expression: Add get_null_state vfunc
Timm Bäder [Sat, 5 Nov 2016 21:02:41 +0000 (22:02 +0100)]
astprinter: Don't print null initializers
Timm Bäder [Sat, 5 Nov 2016 20:51:53 +0000 (21:51 +0100)]
astprinter: Print binary expressions
Timm Bäder [Sat, 5 Nov 2016 20:50:43 +0000 (21:50 +0100)]
glib-2.0: unichar.to_string doesn't return null
Timm Bäder [Sat, 5 Nov 2016 20:48:58 +0000 (21:48 +0100)]
binaryexpression: Fix is_non_null for COALESCE expressions
Timm Bäder [Sat, 5 Nov 2016 20:05:56 +0000 (21:05 +0100)]
nullabilitychecker: Warn on invalid assignments
Assignments from nullable to non-nullable are wrong unless the right
side is guaranteed to not be null at this point.
Timm Bäder [Sat, 5 Nov 2016 20:04:19 +0000 (21:04 +0100)]
symbolresolver: Don't assume all locals are nullable
Timm Bäder [Sat, 5 Nov 2016 19:32:36 +0000 (20:32 +0100)]
add AstPrinter
Timm Bäder [Sat, 5 Nov 2016 17:57:22 +0000 (18:57 +0100)]
add some nullability tests
Timm Bäder [Sat, 5 Nov 2016 17:33:41 +0000 (18:33 +0100)]
Add nullability checker
Timm Bäder [Sat, 5 Nov 2016 17:31:55 +0000 (18:31 +0100)]
basicblock: Save per-block null/non-null symbols
Timm Bäder [Sat, 5 Nov 2016 17:29:25 +0000 (18:29 +0100)]
basicblock: Add per-block name
For debugging.
Timm Bäder [Sat, 5 Nov 2016 15:31:33 +0000 (16:31 +0100)]
memberaccess: Don't check for nullability
wheter an access is nullable or not depends on the flow graph, so leave
this to the FlowAnalyzer.
Timm Bäder [Sat, 5 Nov 2016 13:02:16 +0000 (14:02 +0100)]
method: Print encountered type if return types mismatch
If a class overrides a method of a base type, print both the encountered
return type and the return type expected by the base class.
https://bugzilla.gnome.org/show_bug.cgi?id=769501
Timm Bäder [Tue, 1 Nov 2016 13:39:37 +0000 (14:39 +0100)]
generitype: Stop lying about nullability in to_qualified_string
Timm Bäder [Tue, 1 Nov 2016 09:48:57 +0000 (10:48 +0100)]
Method: Keep track of return statements with nullable values
If the return type of a method is marked nullable, check that at least
one of the return statements also may return null.
Timm Bäder [Tue, 1 Nov 2016 09:35:47 +0000 (10:35 +0100)]
subroutine: Set parent_node of body block
Rico Tzschichholz [Sun, 30 Oct 2016 09:30:20 +0000 (10:30 +0100)]
webkit2gtk-4.0: Update to 2.15.1
Rico Tzschichholz [Sun, 30 Oct 2016 07:11:24 +0000 (08:11 +0100)]
gdk-3.0: Update to 3.22.2+
0ad5d51d
Rico Tzschichholz [Thu, 27 Oct 2016 15:25:50 +0000 (17:25 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Thu, 13 Oct 2016 20:25:56 +0000 (22:25 +0200)]
build: Conditionally adjust VALAFLAGS in case of proper bootsrapped builds
This adds --hide-internal to VALAFLAGS to allow symbols to be marked
'internal' in Vala source files and not appear in the dynamic symbol table
of libvala.
The build system checks for minimum valac version to fullfill required
support of needed VALAFLAGS.
https://bugzilla.gnome.org/show_bug.cgi?id=771920
Evan Nemerson [Thu, 7 Oct 2010 08:07:30 +0000 (01:07 -0700)]
codegen: Only emit notify signals if the value actually changed
https://bugzilla.gnome.org/show_bug.cgi?id=631267
Rico Tzschichholz [Mon, 24 Oct 2016 06:52:20 +0000 (08:52 +0200)]
gdk-3.0: Update to 3.22.1+
a1115c05
Luca Bruno [Sat, 30 Jul 2011 14:41:34 +0000 (16:41 +0200)]
Add explicit copy method for arrays
https://bugzilla.gnome.org/show_bug.cgi?id=650663
Matthias Berndt [Fri, 7 Oct 2016 21:42:29 +0000 (23:42 +0200)]
vapi: Add missing type parameters for delegates
https://bugzilla.gnome.org/show_bug.cgi?id=772204
Rico Tzschichholz [Wed, 19 Oct 2016 16:35:13 +0000 (18:35 +0200)]
gdk-pixbuf-2.0: Use metadata instead of custom defintions for Pixbuf
Rico Tzschichholz [Wed, 19 Oct 2016 07:16:37 +0000 (09:16 +0200)]
glib-2.0: Some nullable arguments in GLib.Test.*
https://bugzilla.gnome.org/show_bug.cgi?id=772964
Rico Tzschichholz [Tue, 18 Oct 2016 21:24:34 +0000 (23:24 +0200)]
glib-2.0: Add "g_utf8_make_valid" binding
Rico Tzschichholz [Tue, 18 Oct 2016 21:19:54 +0000 (23:19 +0200)]
gio-unix-2.0: Add "g_unix_mounts_for" binding
Rico Tzschichholz [Tue, 18 Oct 2016 21:15:40 +0000 (23:15 +0200)]
gio-unix-2.0: Fix "g_unix_mount_at" binding
Rico Tzschichholz [Tue, 18 Oct 2016 20:54:26 +0000 (22:54 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 31 Jan 2016 21:25:16 +0000 (22:25 +0100)]
girparser: Avoid fatal handling of nameless unions
Philip Withnall [Tue, 18 Oct 2016 18:00:07 +0000 (11:00 -0700)]
ccode: Add missing newline after gnuc deprecations attribute
In generated C code, code wrapped by
G_GNUC_[BEGIN|END]_IGNORE_DEPRECATIONS was missing a newline after the
BEGIN attribute, which was causing compilation failures. Fix that by
adding the missing newline.
https://bugzilla.gnome.org/show_bug.cgi?id=773129
Rico Tzschichholz [Thu, 13 Oct 2016 07:39:47 +0000 (09:39 +0200)]
codegen: Support deprecating properties and their accessors
Use G_PARAM_DEPRECATED for properties and in addition their accessor
methods will be marked as deprecated.
Guard internal accessors calls with G_GNUC_BEGIN/END_IGNORED_DEPRECATIONS
to silence unavoidable warnings.
Based on patch by Simon Werbeck <simon.werbeck@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=732449
Rico Tzschichholz [Mon, 17 Oct 2016 11:59:48 +0000 (13:59 +0200)]
valaparser: Allow casts of pointer expressions without enclosing parens
Based on patch by Geert Jordaens <geert.jordaens@telenet.be>
https://bugzilla.gnome.org/show_bug.cgi?id=590641
Rico Tzschichholz [Thu, 6 Oct 2016 12:18:46 +0000 (14:18 +0200)]
Regenerate GIR-based bindings
Rico Tzschichholz [Thu, 6 Oct 2016 11:50:10 +0000 (13:50 +0200)]
girparser: Use type_id information from gir if not already overridden
Rico Tzschichholz [Sat, 15 Oct 2016 19:05:10 +0000 (21:05 +0200)]
Regenerate for GIR-based bindings including array-related metadata fixes
https://bugzilla.gnome.org/show_bug.cgi?id=772902
Rico Tzschichholz [Fri, 14 Oct 2016 07:22:27 +0000 (09:22 +0200)]
girparser: More complete parsing of field information
Especially to retrieve available array-length information.
https://bugzilla.gnome.org/show_bug.cgi?id=772902
Sam Thursfield [Wed, 30 Nov 2011 16:26:00 +0000 (17:26 +0100)]
Warn about mismatched parameter direction before mismatched type
https://bugzilla.gnome.org/show_bug.cgi?id=664049
Simon Werbeck [Wed, 5 Oct 2016 17:01:58 +0000 (19:01 +0200)]
Support [HasEmitter] for vala sources
https://bugzilla.gnome.org/show_bug.cgi?id=681356
Simon Werbeck [Wed, 5 Oct 2016 17:01:44 +0000 (19:01 +0200)]
codegen: Use g_signal_emit where possible
https://bugzilla.gnome.org/show_bug.cgi?id=641828
Rico Tzschichholz [Wed, 12 Oct 2016 16:18:32 +0000 (18:18 +0200)]
vapi: Update GIR-based bindings
Alistair Thomas [Tue, 11 Oct 2016 17:28:35 +0000 (18:28 +0100)]
genie: Add empty file check to read_token ()
Vala.SourceFile uses GLib.MappedFile.get_contents () to read a source
file. This can return null if the file is empty.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=633083
Rico Tzschichholz [Tue, 11 Oct 2016 13:21:41 +0000 (15:21 +0200)]
codegen: Trigger deprecation warning for NoArrayLength from a better place
Rico Tzschichholz [Mon, 10 Oct 2016 18:22:10 +0000 (20:22 +0200)]
Make use of Callable to replace some if-else-trees
Luca Bruno [Mon, 10 Jan 2011 09:31:19 +0000 (10:31 +0100)]
vala: Add common Callable interface for Method, Delegate and Signal.
https://bugzilla.gnome.org/show_bug.cgi?id=639124
Rico Tzschichholz [Mon, 10 Oct 2016 08:05:04 +0000 (10:05 +0200)]
Ignore --thread commandline option and drop all gthread-2.0 references
With vala 0.32 there was no further support for glib < 2.32.
Rico Tzschichholz [Sat, 8 Oct 2016 22:05:15 +0000 (00:05 +0200)]
clutter-gst-3.0: Fix constructor which wasn't detected as such
Rico Tzschichholz [Sat, 8 Oct 2016 21:45:11 +0000 (23:45 +0200)]
polkit-gobject-1: Fix constructors which weren't detected as such
Rico Tzschichholz [Sat, 8 Oct 2016 21:37:38 +0000 (23:37 +0200)]
polkit-gobject-1: Fix constructors which weren't detected as such
Rico Tzschichholz [Sat, 8 Oct 2016 21:32:59 +0000 (23:32 +0200)]
gio-2.0: Fix constructor which wasn't detected as such
Rico Tzschichholz [Sat, 8 Oct 2016 21:32:33 +0000 (23:32 +0200)]
clutter-gst-3.0: Fix constructors which weren't detected as such
Rico Tzschichholz [Sat, 8 Oct 2016 21:28:17 +0000 (23:28 +0200)]
clutter-1.0: Fix constructors which weren't detected as such
Jordan Yelloz [Fri, 8 Jul 2016 18:41:35 +0000 (11:41 -0700)]
codegen: Include gio/gio.h for "use_string_marshalling"
Using [DBus (use_string_marshalling = true)] requires G_DBUS_ERROR symbols
and therefore needs gio/gio.h while e.g. defining enum in dedicated file.
https://bugzilla.gnome.org/show_bug.cgi?id=768588
Rico Tzschichholz [Sat, 8 Oct 2016 20:13:01 +0000 (22:13 +0200)]
Deny access to protected constructors
Based on patch by Timm Bäder <mail@baedert.org>
https://bugzilla.gnome.org/show_bug.cgi?id=760031
Daniel Pfeifer [Thu, 22 May 2014 18:07:21 +0000 (20:07 +0200)]
libarchive: Add ReadDisk
https://bugzilla.gnome.org/show_bug.cgi?id=668654
Rico Tzschichholz [Sat, 8 Oct 2016 17:01:47 +0000 (19:01 +0200)]
gdk-3.0: Use only metadata for EventKey, Screen, Window, update Rectangle
Rico Tzschichholz [Sat, 8 Oct 2016 14:33:31 +0000 (16:33 +0200)]
Add missing generic-type arguments of delegates
https://bugzilla.gnome.org/show_bug.cgi?id=772204
Rico Tzschichholz [Sat, 8 Oct 2016 14:30:58 +0000 (16:30 +0200)]
tests: Don't rely on external delegate defintions
Simon Werbeck [Sat, 1 Oct 2016 22:20:59 +0000 (00:20 +0200)]
vala: Check accessibility of default arguments
https://bugzilla.gnome.org/show_bug.cgi?id=648030
Jürg Billeter [Thu, 6 Oct 2016 09:07:59 +0000 (11:07 +0200)]
Do not report internal error for invalid code with nested generics
Reported-by: Matthias Berndt <matthias_berndt@gmx.de>
Matthias Berndt [Fri, 30 Sep 2016 08:36:14 +0000 (10:36 +0200)]
vala: Check type arguments in DataType.equals
https://bugzilla.gnome.org/show_bug.cgi?id=641418
Simon Werbeck [Thu, 25 Feb 2016 23:28:11 +0000 (00:28 +0100)]
codegen: Fix array length of array returned by lambda
This ensures that the right default values are used for missing ccode
attributes.
https://bugzilla.gnome.org/show_bug.cgi?id=761360
Simon Werbeck [Thu, 22 Sep 2016 19:22:25 +0000 (21:22 +0200)]
codegen: Fix emission of constant array length
https://bugzilla.gnome.org/show_bug.cgi?id=756376
Rico Tzschichholz [Mon, 3 Oct 2016 10:39:03 +0000 (12:39 +0200)]
gio-2.0 Update SettingsBackend related bindings
Rico Tzschichholz [Mon, 3 Oct 2016 08:48:22 +0000 (10:48 +0200)]
gio-2.0: Use only metadata for IOStream, InputStream, OutputStream
Rico Tzschichholz [Sun, 18 Sep 2016 11:27:35 +0000 (13:27 +0200)]
glib-2.0: Add UCS-4 and UTF-16 related bindings
https://bugzilla.gnome.org/show_bug.cgi?id=740818
Rico Tzschichholz [Mon, 3 Oct 2016 08:14:51 +0000 (10:14 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 2 Oct 2016 15:28:37 +0000 (17:28 +0200)]
tests: Add async generator example to cover an edge case
https://bugzilla.gnome.org/show_bug.cgi?id=763345
Rico Tzschichholz [Sat, 1 Oct 2016 15:51:56 +0000 (17:51 +0200)]
clutter-gst-2.0: Skip VideoTexture.get_audio_streams/get_subtitle_tracks
Upstream didn't implement the Player interface correctly, so the types are
not matching up.
Rico Tzschichholz [Sat, 1 Oct 2016 15:49:58 +0000 (17:49 +0200)]
clutter-gst-3.0: Fix Playback.audio_streams/subtitle_tracks property-type
Rico Tzschichholz [Sat, 1 Oct 2016 11:58:03 +0000 (13:58 +0200)]
rest-0.7: Fix some ownership problems
Rico Tzschichholz [Thu, 29 Sep 2016 11:43:46 +0000 (13:43 +0200)]
Add CCode finish_vfunc_name to used attrs
Matthias Berndt [Mon, 8 Aug 2016 17:41:33 +0000 (19:41 +0200)]
Fix type checking when using generics in combination with subtyping
https://bugzilla.gnome.org/show_bug.cgi?id=615830
George Barrett [Mon, 26 Sep 2016 19:00:24 +0000 (05:00 +1000)]
gsl.vapi: Fix attribute typos
At the moment, the are a few CCode attributes containing typos in the
bindings for the GNU Scientific Library. This patch rectifies the ones
that valac explicitly complains about.
https://bugzilla.gnome.org/show_bug.cgi?id=772004
Jürg Billeter [Mon, 26 Sep 2016 17:07:17 +0000 (19:07 +0200)]
Fix type parameter check for overriding generic methods
https://bugzilla.gnome.org/show_bug.cgi?id=771964
Reported-by: Sebastian Reichel <sre@ring0.de>
Rico Tzschichholz [Sun, 25 Sep 2016 19:29:30 +0000 (21:29 +0200)]
tests: Additional test-cases taken from transform-branch
Rico Tzschichholz [Sun, 25 Sep 2016 06:43:53 +0000 (08:43 +0200)]
Bump version suffix
Rico Tzschichholz [Sat, 24 Sep 2016 11:19:42 +0000 (13:19 +0200)]
gio-2.0: Use metadata instead of custom defintions for Initable
Rico Tzschichholz [Sat, 24 Sep 2016 09:01:13 +0000 (11:01 +0200)]
gio-2.0: Use metadata instead of custom definitions for DBusMessage
Rico Tzschichholz [Sat, 24 Sep 2016 08:03:14 +0000 (10:03 +0200)]
gio-2.0: Fix async constructors of DBusConnection, DBusObjectManagerClient and DBusProxy
Rico Tzschichholz [Sat, 24 Sep 2016 11:02:48 +0000 (13:02 +0200)]
tests: Add async constructor test
https://bugzilla.gnome.org/show_bug.cgi?id=659886
Rico Tzschichholz [Fri, 16 Sep 2016 18:54:27 +0000 (20:54 +0200)]
gio-2.0: Keep GLib.Socket API compatible with gio < 2.48
https://bugzilla.gnome.org/show_bug.cgi?id=769222
Rico Tzschichholz [Sun, 18 Sep 2016 16:56:05 +0000 (18:56 +0200)]
gio-2.0: Fix binding of Resolver.lookup_service*()
Jens Georg [Thu, 22 Sep 2016 18:01:19 +0000 (20:01 +0200)]
glib-2.0: Fix binding of Markup.collect_attributes
Array parameters don't have an associcated length parameter but are
null-terminated.
https://bugzilla.gnome.org/show_bug.cgi?id=771790
Rico Tzschichholz [Sun, 18 Sep 2016 15:09:54 +0000 (17:09 +0200)]
glib-2.0: Update Unicode symbols
Rico Tzschichholz [Mon, 19 Sep 2016 16:31:05 +0000 (18:31 +0200)]
webkit2gtk: URI*.get_http_headers returns unowned Soup.MessageHeaders
Those are actually annotated "transfer none" in the webkit's source.
https://bugzilla.gnome.org/show_bug.cgi?id=741175
Rico Tzschichholz [Mon, 19 Sep 2016 07:41:34 +0000 (09:41 +0200)]
Add support for the \v escape charactor
https://bugzilla.gnome.org/show_bug.cgi?id=664689