]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
6 years agovala: Check inferred variable_type of LocalVariables
Rico Tzschichholz [Fri, 25 Jan 2019 19:10:48 +0000 (20:10 +0100)] 
vala: Check inferred variable_type of LocalVariables

6 years agocodegen: Properly handle and catch inner-error of finally-block
Rico Tzschichholz [Wed, 23 Jan 2019 21:39:42 +0000 (22:39 +0100)] 
codegen: Properly handle and catch inner-error of finally-block

If all inner-errors are caught there is no jump-out of the current finally-
block therefore the control-flow analyzer is happy. To make this work the
surrounding inner-error must not be used or changed here.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/742

6 years agocodegen: Replace some unfortunate asserts with internal error reports
Rico Tzschichholz [Wed, 23 Jan 2019 20:36:12 +0000 (21:36 +0100)] 
codegen: Replace some unfortunate asserts with internal error reports

6 years agoRelease 0.42.5 0.42.5
Rico Tzschichholz [Tue, 22 Jan 2019 09:41:43 +0000 (10:41 +0100)] 
Release 0.42.5

6 years agocodegen: Add default_value for CType to initialize variables if needed
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

6 years agolibvaladoc/girimporter: Skip "source-position" elements
Rico Tzschichholz [Mon, 21 Jan 2019 14:29:41 +0000 (15:29 +0100)] 
libvaladoc/girimporter: Skip "source-position" elements

See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/75

6 years agojavascriptcoregtk-4.0: Fix GLib.Callback parameters which can't hold target
Rico Tzschichholz [Mon, 14 Jan 2019 20:05:50 +0000 (21:05 +0100)] 
javascriptcoregtk-4.0: Fix GLib.Callback parameters which can't hold target

6 years agocodegen: Don't apply address-of operator on literals when casting to array
Rico Tzschichholz [Sun, 20 Jan 2019 18:23:43 +0000 (19:23 +0100)] 
codegen: Don't apply address-of operator on literals when casting to array

Regression of 5f316333d6a803e4240b5cccc95a6abd2294137b

https://bugzilla.gnome.org/show_bug.cgi?id=777194

6 years agolibvaladoc: Build backing Vala.SourceFile for GIRs processed by importer
Corentin Noël [Sat, 19 Jan 2019 14:05:48 +0000 (15:05 +0100)] 
libvaladoc: Build backing Vala.SourceFile for GIRs processed by importer

This fixes criticals when reporting errors and warnings

Fixes https://gitlab.gnome.org/GNOME/vala/issues/738

6 years agogirparser: Async methods don't allow out-parameters before in-parameters
Rico Tzschichholz [Sun, 21 Oct 2018 08:34:28 +0000 (10:34 +0200)] 
girparser: Async methods don't allow out-parameters before in-parameters

In vala out-parameters are always handled in the *_finish implementation
and therefore are asynchronous. Report a warning for GIR sources where
convert them to pointer-types to create usuable signatures for bindings.

See https://gitlab.gnome.org/GNOME/vala/issues/636

6 years agoclutter-1.0: Fix BindingPool.override_action()
Rico Tzschichholz [Wed, 16 Jan 2019 20:12:23 +0000 (21:12 +0100)] 
clutter-1.0: Fix BindingPool.override_action()

6 years agogtk+-4.0: Update to 3.94.0+9b15c690
Rico Tzschichholz [Wed, 16 Jan 2019 20:10:46 +0000 (21:10 +0100)] 
gtk+-4.0: Update to 3.94.0+9b15c690

6 years agogdk-3.0,gtk+-3.0: Update to 3.24.3+9c8f1478
Rico Tzschichholz [Wed, 16 Jan 2019 20:09:56 +0000 (21:09 +0100)] 
gdk-3.0,gtk+-3.0: Update to 3.24.3+9c8f1478

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Wed, 16 Jan 2019 20:08:59 +0000 (21:08 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agovaladoc: Specify that the "--driver" option is deprecated
Corentin Noël [Fri, 18 Jan 2019 11:46:52 +0000 (12:46 +0100)] 
valadoc: Specify that the "--driver" option is deprecated

Fixes https://gitlab.gnome.org/GNOME/vala/issues/736

6 years agocompiler: Report deprecated command-line option "--thread"
Rico Tzschichholz [Fri, 18 Jan 2019 13:19:54 +0000 (14:19 +0100)] 
compiler: Report deprecated command-line option "--thread"

6 years agolibsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter
Rico Tzschichholz [Sun, 13 Jan 2019 12:36:56 +0000 (13:36 +0100)] 
libsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter

See https://gitlab.gnome.org/GNOME/vala/issues/731

6 years agocodegen: Emit struct declaration typedef before resolving its fields
Rico Tzschichholz [Thu, 10 Jan 2019 19:02:39 +0000 (20:02 +0100)] 
codegen: Emit struct declaration typedef before resolving its fields

This a regression when compiling a circular dependency of delegates with
structs.

Regression of 7adb3a45bb8d663c0cfca55af26b7e6f7292b14a

See https://gitlab.gnome.org/GNOME/vala/issues/318

6 years agocodegen: Use a parameter-map for creation of delegate declaration
Rico Tzschichholz [Thu, 10 Jan 2019 08:21:54 +0000 (09:21 +0100)] 
codegen: Use a parameter-map for creation of delegate declaration

This is required to take instance_pos into account and will allow the error
parameter to be put before the target (aka instance) in delegates.

See https://gitlab.gnome.org/GNOME/vala/issues/728

6 years agogobject-2.0: Minor syncing from GIR
Rico Tzschichholz [Sun, 6 Jan 2019 08:47:07 +0000 (09:47 +0100)] 
gobject-2.0: Minor syncing from GIR

6 years agogdbus: Cast instance and result of g_async_initable_new_finish() call
Rico Tzschichholz [Sat, 5 Jan 2019 23:49:14 +0000 (00:49 +0100)] 
gdbus: Cast instance and result of g_async_initable_new_finish() call

This will silence those incompatible-pointer-types warnings

6 years agosqlite3: Correct return C type of Statement.column_text & Value.to_text
Jiří Janoušek [Sat, 5 Jan 2019 16:46:42 +0000 (17:46 +0100)] 
sqlite3: Correct return C type of Statement.column_text & Value.to_text

6 years agogdbus: Properly set annotations field of GDBus*Info struct to NULL
Rico Tzschichholz [Sat, 5 Jan 2019 20:41:20 +0000 (21:41 +0100)] 
gdbus: Properly set annotations field of GDBus*Info struct to NULL

Found by -Werror=missing-field-initializers

6 years agotests: Extend "DBus errors" tests to increase coverage
Rico Tzschichholz [Sat, 5 Jan 2019 21:01:06 +0000 (22:01 +0100)] 
tests: Extend "DBus errors" tests to increase coverage

6 years agodocs: Add a basic CONTRIBUTING.md file that links to the relevant Wiki page
Alistair Thomas [Sat, 5 Jan 2019 20:41:00 +0000 (20:41 +0000)] 
docs: Add a basic CONTRIBUTING.md file that links to the relevant Wiki page

6 years agogtk+-4.0: Update to 3.94.0+4404afc9
Rico Tzschichholz [Sat, 5 Jan 2019 18:36:08 +0000 (19:36 +0100)] 
gtk+-4.0: Update to 3.94.0+4404afc9

6 years agogtk+-3.0: Update to 3.24.2+a8e07254
Rico Tzschichholz [Sat, 5 Jan 2019 18:35:40 +0000 (19:35 +0100)] 
gtk+-3.0: Update to 3.24.2+a8e07254

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Sat, 5 Jan 2019 18:33:49 +0000 (19:33 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agocodegen: Don't check boolean values for (in)equality in GTask API
Rico Tzschichholz [Sat, 5 Jan 2019 17:11:30 +0000 (18:11 +0100)] 
codegen: Don't check boolean values for (in)equality in GTask API

This resolves any value but 0 to true as it is suppose to be.

  /* invalid */
  if (condition == TRUE)
    do_foo ();

  /* valid */
  if (another_condition)
    do_bar ();

See https://gitlab.gnome.org/GNOME/glib/issues/1636

6 years agotests: Fix try_parse() tests to not compare to already free'd memory
Rico Tzschichholz [Fri, 4 Jan 2019 19:02:18 +0000 (20:02 +0100)] 
tests: Fix try_parse() tests to not compare to already free'd memory

Found with valgrind

6 years agocodegen: Cast instance parameter for property access in object-initializer
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

6 years agogio-2.0: Fix File.replace_contents_bytes_async()
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

6 years agogobject-2.0: Use correct array-length-type for returned arrays
Rico Tzschichholz [Wed, 2 Jan 2019 12:08:56 +0000 (13:08 +0100)] 
gobject-2.0: Use correct array-length-type for returned arrays

6 years agoglib-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

6 years agovala: Report invalid instance member access to property
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

6 years agobuild: Don't leak libvalaccode symbols to libvaladoc
Rico Tzschichholz [Fri, 21 Dec 2018 07:28:31 +0000 (08:28 +0100)] 
build: Don't leak libvalaccode symbols to libvaladoc

6 years agocodegen: Use temp-vars for ellipsis out-arguments to fix memory management
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

6 years agocodegen: Use temp-var for MethodCall with out/ref arguments
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

6 years agoRelease 0.42.4 0.42.4
Rico Tzschichholz [Thu, 6 Dec 2018 10:24:36 +0000 (11:24 +0100)] 
Release 0.42.4

6 years agogtk+-4.0: Update to 3.94.0+a99bd2a4
Rico Tzschichholz [Tue, 18 Dec 2018 11:36:11 +0000 (12:36 +0100)] 
gtk+-4.0: Update to 3.94.0+a99bd2a4

6 years agogtk+-3.0: Update to 3.24.2+eb821cb8
Rico Tzschichholz [Tue, 18 Dec 2018 10:06:52 +0000 (11:06 +0100)] 
gtk+-3.0: Update to 3.24.2+eb821cb8

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Tue, 18 Dec 2018 10:06:25 +0000 (11:06 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agopoppler-glib: Update to 0.71
Rico Tzschichholz [Tue, 18 Dec 2018 10:02:14 +0000 (11:02 +0100)] 
poppler-glib: Update to 0.71

6 years agogobject-introspection-1.0: Pick up version attribute fixes
Rico Tzschichholz [Tue, 11 Dec 2018 13:08:20 +0000 (14:08 +0100)] 
gobject-introspection-1.0: Pick up version attribute fixes

6 years agovapi: Regenerate GIR-based bindings to fix non-standard async methods
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

6 years agocodegen: Handle non-default AsyncResult parameter position
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

6 years agocodegen: Always emit constants with initializer-list
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

6 years agotests: Add "emit order" tests
Rico Tzschichholz [Fri, 7 Dec 2018 08:22:20 +0000 (09:22 +0100)] 
tests: Add "emit order" tests

6 years agocodegen: Emit delegate/enum typedefs to type-declaration section
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

6 years agotests: Add "subtype cycle" tests to increase coverage
Rico Tzschichholz [Wed, 28 Nov 2018 16:48:55 +0000 (17:48 +0100)] 
tests: Add "subtype cycle" tests to increase coverage

6 years agovala: Break possible endless loop in SymbolResolver.get_type_for_struct()
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

6 years agoglib-2.0: Add GLib.pointer aka gpointer binding
Rico Tzschichholz [Wed, 21 Nov 2018 19:20:59 +0000 (20:20 +0100)] 
glib-2.0: Add GLib.pointer aka gpointer binding

6 years agotestrunner: Pass buildsystem's CC through to valac
Rico Tzschichholz [Mon, 19 Nov 2018 17:05:24 +0000 (18:05 +0100)] 
testrunner: Pass buildsystem's CC through to valac

6 years agogtk+-4.0: Update to 3.94.0+8de1ba2c
Rico Tzschichholz [Wed, 5 Dec 2018 07:08:55 +0000 (08:08 +0100)] 
gtk+-4.0: Update to 3.94.0+8de1ba2c

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Wed, 5 Dec 2018 07:08:29 +0000 (08:08 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agogirparser: Skip possible docs in transparent union
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

6 years agogirparser: Skip "source-position" elements
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

6 years agovala: Use clearer error message for automatic properties in interfaces
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

6 years agocodegen: Emit initializer for enum-value into wanted declaration space
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

6 years agocodegen: Mark needle parameter of internal array-contains methods as const
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

6 years agovala: Don't emit member access of assignments on static properties
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

6 years agovala: Make check_arguments() more verbose and don't bail on first error
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

6 years agovala: Type check for errors require an error expression
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

6 years agotests: Simplify "errors/errors" test a bit
Rico Tzschichholz [Tue, 27 Nov 2018 13:18:36 +0000 (14:18 +0100)] 
tests: Simplify "errors/errors" test a bit

6 years agovala: Add missing re-check guards for Do/For/WhileStatement and SwitchLabel
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

6 years agotests: Add and improve "foreach iterator" tests to increase coverage
Rico Tzschichholz [Tue, 27 Nov 2018 10:08:15 +0000 (11:08 +0100)] 
tests: Add and improve "foreach iterator" tests to increase coverage

6 years agotests: Add invalid "switch" 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

6 years agocodegen: Actually create method cast for base interface method as needed
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.

6 years agoglib-2.0: Cast strcmp to GCompareFunc
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.

6 years agotests: Add default defines test for VALA_0_XX and GLIB_2_XX
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

6 years agocodegen: Don't emit unused temp variable for element access assignments
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

6 years agotests: Extend assignment and array element access tests
Rico Tzschichholz [Thu, 22 Nov 2018 09:36:47 +0000 (10:36 +0100)] 
tests: Extend assignment and array element access tests

6 years agocodegen: Don't emit type_id for enum in non GOBJECT profile
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

6 years agotests: Add some minimal test cases to catch insufficient headers
Rico Tzschichholz [Wed, 21 Nov 2018 16:00:19 +0000 (17:00 +0100)] 
tests: Add some minimal test cases to catch insufficient headers

6 years agocodegen: Make sure to include declarations for delegate typed parameters
Rico Tzschichholz [Tue, 20 Nov 2018 15:38:31 +0000 (16:38 +0100)] 
codegen: Make sure to include declarations for delegate typed parameters

So call generate_type_declaration() with all parameter types.

6 years agogtk+-4.0: Update to 3.94.0+40ae5c13
Rico Tzschichholz [Tue, 20 Nov 2018 12:04:41 +0000 (13:04 +0100)] 
gtk+-4.0: Update to 3.94.0+40ae5c13

6 years agogdk-x11-3.0,gtk+-3.0: Update to 3.24.1+356f1f59
Rico Tzschichholz [Tue, 20 Nov 2018 12:03:31 +0000 (13:03 +0100)] 
gdk-x11-3.0,gtk+-3.0: Update to 3.24.1+356f1f59

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Tue, 20 Nov 2018 12:00:55 +0000 (13:00 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agoparser: Use comment which was already retrieved in parse_declaration()
Rico Tzschichholz [Tue, 20 Nov 2018 11:31:52 +0000 (12:31 +0100)] 
parser: Use comment which was already retrieved in parse_declaration()

This caused to loose comment of first element of enums and error domains.

Regression of 540aa1492c342f482be6838b97f54437f3b776e4

6 years agodocs: Update build instructions and move them to README.md
Alistair Thomas [Mon, 19 Nov 2018 23:01:53 +0000 (23:01 +0000)] 
docs: Update build instructions and move them to README.md

Updates the links for building Vala and how to bootstrap the build

6 years agodocs: Use Markdown for README and move to README.md
Alistair Thomas [Mon, 19 Nov 2018 22:36:09 +0000 (22:36 +0000)] 
docs: Use Markdown for README and move to README.md

6 years agogobject-2.0: Attribute all symbols with cheader_filename = "glib-object.h"
Rico Tzschichholz [Mon, 19 Nov 2018 21:24:34 +0000 (22:24 +0100)] 
gobject-2.0: Attribute all symbols with cheader_filename = "glib-object.h"

This is essential to pick up the correct header inclusion while the GLib
namespace of glib-2.0 and gobject-2.0 is merged internally.

6 years agoccode: Add void to delegate typedef declarations without parameters
Rico Tzschichholz [Mon, 19 Nov 2018 17:22:20 +0000 (18:22 +0100)] 
ccode: Add void to delegate typedef declarations without parameters

Found with -Werror=strict-prototypes

6 years agovaladoc: Adjust stylesheet to unbreak Epiphany
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

6 years agovaladoc: Fix a few errors and warnings in stylesheet
Rico Tzschichholz [Mon, 19 Nov 2018 10:58:20 +0000 (11:58 +0100)] 
valadoc: Fix a few errors and warnings in stylesheet

6 years agogirwriter: Write glib-type attributes for Enums/Structs with type_id
Rico Tzschichholz [Sun, 18 Nov 2018 19:37:38 +0000 (20:37 +0100)] 
girwriter: Write glib-type attributes for Enums/Structs with type_id

6 years agocodegen: Fix canonical string for quark of error domains
Rico Tzschichholz [Sun, 18 Nov 2018 17:50:29 +0000 (18:50 +0100)] 
codegen: Fix canonical string for quark of error domains

6 years agovala: Compact classes don't allow private/class fields and to lock fields
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.

6 years agovala: Remove superfluous return_if_fail()
Rico Tzschichholz [Sat, 17 Nov 2018 12:51:14 +0000 (13:51 +0100)] 
vala: Remove superfluous return_if_fail()

6 years agotests: Add "static fields" to compact class to increase coverage
Rico Tzschichholz [Sat, 17 Nov 2018 16:22:36 +0000 (17:22 +0100)] 
tests: Add "static fields" to compact class to increase coverage

6 years agotests: Add bug specific "lock test"
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

6 years agogenieparser: Use dedicated Class.add_constructor/destructor() methods
Rico Tzschichholz [Sat, 17 Nov 2018 12:34:07 +0000 (13:34 +0100)] 
genieparser: Use dedicated Class.add_constructor/destructor() methods

6 years agotests: Add more GLib.Array tests
Corentin Noël [Fri, 16 Nov 2018 13:55:00 +0000 (14:55 +0100)] 
tests: Add more GLib.Array tests

6 years agocodegen: Add destroy function for GLib.Array
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

6 years agoglib-2.0: Avoid double-free in GLib.Array if clear_func is set
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

6 years agoglib-2.0: Add missing Array.set_clear_func() binding
Rico Tzschichholz [Fri, 16 Nov 2018 13:26:50 +0000 (14:26 +0100)] 
glib-2.0: Add missing Array.set_clear_func() binding

6 years agolibvaladoc: Use Scanner.get_identifier_or_keyword() instead of outdated copy
Rico Tzschichholz [Thu, 15 Nov 2018 21:44:46 +0000 (22:44 +0100)] 
libvaladoc: Use Scanner.get_identifier_or_keyword() instead of outdated copy

6 years agotests: Add enum/errordomain tests for GIR parser to increase coverage
Rico Tzschichholz [Thu, 15 Nov 2018 09:23:55 +0000 (10:23 +0100)] 
tests: Add enum/errordomain tests for GIR parser to increase coverage

6 years agodoc: Include dependencies for internal-api-docs to get reference linking
Rico Tzschichholz [Wed, 14 Nov 2018 21:17:43 +0000 (22:17 +0100)] 
doc: Include dependencies for internal-api-docs to get reference linking

6 years agovaladoc/html: Skip package dependency if target directory already exists
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.