]>
git.ipfire.org Git - thirdparty/vala.git/log
Michael James Gratton [Thu, 21 Jun 2018 06:50:00 +0000 (16:50 +1000)]
valadoc: Adjust stylesheet to unbreak Epiphany
Fixes https://gitlab.gnome.org/GNOME/vala/issues/644
Rico Tzschichholz [Mon, 19 Nov 2018 10:58:20 +0000 (11:58 +0100)]
valadoc: Fix a few errors and warnings in stylesheet
Rico Tzschichholz [Sun, 18 Nov 2018 15:28:14 +0000 (16:28 +0100)]
codegen: Add ccode getters for GType functions of Classes and Interfaces
and use them where possible.
Rico Tzschichholz [Sun, 18 Nov 2018 19:37:38 +0000 (20:37 +0100)]
girwriter: Write glib-type attributes for Enums/Structs with type_id
Rico Tzschichholz [Sun, 18 Nov 2018 17:50:29 +0000 (18:50 +0100)]
codegen: Fix canonical string for quark of error domains
Rico Tzschichholz [Sat, 17 Nov 2018 21:21:20 +0000 (22:21 +0100)]
vala: Fix bootstrap with valac >= 0.16.1
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:49:03 +0000 (13:49 +0100)]
vala: Clean up constructor/destructor API of Class/Struct
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 [Fri, 16 Nov 2018 08:28:48 +0000 (09:28 +0100)]
valadoc: Use new to_string() methods of enumerations in InitializerBuilder
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 17:11:29 +0000 (18:11 +0100)]
vala: Use new to_string() methods of enumerations in CodeWriter
Rico Tzschichholz [Thu, 15 Nov 2018 16:37:29 +0000 (17:37 +0100)]
vala: Add AssignmentOperator.to_string()
Rico Tzschichholz [Wed, 14 Nov 2018 13:35:52 +0000 (14:35 +0100)]
vala: Add SymbolAccessibility.to_string()
Rico Tzschichholz [Thu, 15 Nov 2018 16:26:19 +0000 (17:26 +0100)]
vala: Add UnaryOperator.to_string()
Rico Tzschichholz [Thu, 15 Nov 2018 09:57:06 +0000 (10:57 +0100)]
vala: Add BinaryOperator.to_string()
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 [Wed, 14 Nov 2018 14:44:43 +0000 (15:44 +0100)]
libvaladoc: Actually assign type_id of Api.Structs
Rico Tzschichholz [Tue, 12 Jun 2018 13:15:16 +0000 (15:15 +0200)]
libvaladoc: Link against private libvalaccodegen
Rico Tzschichholz [Tue, 12 Jun 2018 13:40:01 +0000 (15:40 +0200)]
codegen: Fix get_ccode_name() for properties
Handle them the same way as signals and hold the canonical representation
as ccode name.
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, 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 [Mon, 16 Jul 2018 19:10:03 +0000 (21:10 +0200)]
codegen: Deprecate "ctype" ccode-attribute
This is an alias for "type"
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:30:31 +0000 (19:30 +0200)]
codegen: Deprecate "finish_function" ccode-attribute
This is an alias for "finish_name"
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 [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 [Thu, 8 Nov 2018 07:04:41 +0000 (08:04 +0100)]
Sync NEWS from 0.42
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