]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
3 years agoSymbol: remove static access to CodeContext 1270-remove-static-codecontext-access
Daniel Espinosa [Mon, 3 Jan 2022 02:47:39 +0000 (20:47 -0600)] 
Symbol: remove static access to CodeContext

3 years agoSwitchSection: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:54:01 +0000 (19:54 -0600)] 
SwitchSection: avoid static access to Report

3 years agoSwitchLabel: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:49:12 +0000 (19:49 -0600)] 
SwitchLabel: avoid static access to Report

3 years agoReturnStatement: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:34:04 +0000 (19:34 -0600)] 
ReturnStatement: avoid static access to Report

3 years agoProperty: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:29:11 +0000 (19:29 -0600)] 
Property: avoid static access to Report

3 years agoPropertyAccessor: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:27:02 +0000 (19:27 -0600)] 
PropertyAccessor: avoid static access to Report

3 years agoParameter: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:19:10 +0000 (19:19 -0600)] 
Parameter: avoid static access to Report

3 years agoObjectCreationExpression: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:16:17 +0000 (19:16 -0600)] 
ObjectCreationExpression: avoid static access to Report

3 years agoMethod: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:12:25 +0000 (19:12 -0600)] 
Method: avoid static access to Report

3 years agoMethodCall: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 00:59:01 +0000 (18:59 -0600)] 
MethodCall: avoid static access to Report

3 years agoMemberAccess: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 00:55:13 +0000 (18:55 -0600)] 
MemberAccess: avoid static access to Report

3 years agoLockStatement: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 00:51:19 +0000 (18:51 -0600)] 
LockStatement: avoid static access to Report

3 years agoLocalVariable: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 00:48:58 +0000 (18:48 -0600)] 
LocalVariable: avoid static access to Report

3 years agoCreationMethod: avoid static report access
Daniel Espinosa [Mon, 3 Jan 2022 00:41:32 +0000 (18:41 -0600)] 
CreationMethod: avoid static report access

3 years agoConstructor: use context when available to avoid report static access
Daniel Espinosa [Sun, 2 Jan 2022 23:49:41 +0000 (17:49 -0600)] 
Constructor: use context when available to avoid report static access

3 years agoConstant: use context when available to avoid report static access
Daniel Espinosa [Sun, 2 Jan 2022 23:44:52 +0000 (17:44 -0600)] 
Constant: use context when available to avoid report static access

3 years agoCatchClause: use context when available to avoid report static access
Daniel Espinosa [Sun, 2 Jan 2022 23:37:29 +0000 (17:37 -0600)] 
CatchClause: use context when available to avoid report static access

3 years agoBinaryExpression: use context when available to avoid report static access
Daniel Espinosa [Sun, 2 Jan 2022 23:31:06 +0000 (17:31 -0600)] 
BinaryExpression: use context when available to avoid report static access

3 years agoAssigment: use context if available to avoid Report static access
Daniel Espinosa [Sun, 2 Jan 2022 23:11:37 +0000 (17:11 -0600)] 
Assigment: use context if available to avoid Report static access

3 years agoObjectTypeSymbol: use context when available to avoid report static access
Daniel Espinosa [Sun, 2 Jan 2022 22:58:45 +0000 (16:58 -0600)] 
ObjectTypeSymbol: use context when available to avoid report static access

3 years agoReport: replace static methods when context is available
Daniel Espinosa [Fri, 31 Dec 2021 16:29:58 +0000 (10:29 -0600)] 
Report: replace static methods when context is available

Report has instance methods in order to log error and
warnings, so in order to avoid static ones when
instance CodeContext is available, this work replace
static with instance methods

3 years agoNamespace: set current context at construction time
Daniel Espinosa [Fri, 31 Dec 2021 20:53:55 +0000 (14:53 -0600)] 
Namespace: set current context at construction time

With this change any namespace will have access to
current context, to allow access from its childs

Related to issue #1270

3 years agoCodeNode: add CodeContext property
Daniel Espinosa [Sun, 2 Jan 2022 04:05:17 +0000 (22:05 -0600)] 
CodeNode: add CodeContext property

3 years agoArrayCreationExpression: don't use static Report
Daniel Espinosa [Fri, 31 Dec 2021 03:02:41 +0000 (21:02 -0600)] 
ArrayCreationExpression: don't use static Report

3 years agoVersionAttribute: use context's report methods
Daniel Espinosa [Wed, 29 Dec 2021 14:57:27 +0000 (08:57 -0600)] 
VersionAttribute: use context's report methods

Avoids use static Report's methods

3 years agoSourceFile: use context's report methods
Daniel Espinosa [Wed, 29 Dec 2021 14:51:47 +0000 (08:51 -0600)] 
SourceFile: use context's report methods

Avoids use Report's static methods

3 years agoAddressOfExpression: use instance context's report methods
Daniel Espinosa [Wed, 29 Dec 2021 14:50:03 +0000 (08:50 -0600)] 
AddressOfExpression: use instance context's report methods

Avoids using static Report methods

3 years agoCodeWriter: use instance context's report methods
Daniel Espinosa [Wed, 29 Dec 2021 14:45:56 +0000 (08:45 -0600)] 
CodeWriter: use instance context's report methods

Avoids use static Report methods

3 years agoMarkupReader: use instance context's report log methods
Daniel Espinosa [Wed, 29 Dec 2021 14:42:43 +0000 (08:42 -0600)] 
MarkupReader: use instance context's report log methods

Avoids to use static Report methods.

3 years agoSymbolResolver: use instance context's report log methods
Daniel Espinosa [Wed, 29 Dec 2021 06:26:44 +0000 (00:26 -0600)] 
SymbolResolver: use instance context's report log methods

Avoids to access Report static methods

3 years agoFlowAnalyzer: use instance context's report log method
Daniel Espinosa [Wed, 29 Dec 2021 06:24:01 +0000 (00:24 -0600)] 
FlowAnalyzer: use instance context's report log method

Avoid to access static Report methods

3 years agoScanner: use instance context's report log methods
Daniel Espinosa [Wed, 29 Dec 2021 06:19:12 +0000 (00:19 -0600)] 
Scanner: use instance context's report log methods

Avoids to access Report instance methods

3 years agoGirParser: use instance context's report log methods
Daniel Espinosa [Wed, 29 Dec 2021 06:16:33 +0000 (00:16 -0600)] 
GirParser: use instance context's report log methods

Avoid to access static Report methods

3 years agoGenie.Scanner: use instance context's report log methods
Daniel Espinosa [Wed, 29 Dec 2021 06:09:18 +0000 (00:09 -0600)] 
Genie.Scanner: use instance context's report log methods

Avoids to use static Report methods

3 years agoGenie.Parser: use context's report instance log methods
Daniel Espinosa [Wed, 29 Dec 2021 06:05:28 +0000 (00:05 -0600)] 
Genie.Parser: use context's report instance log methods

Avoid to use static methods to access context's report
instance

3 years agoParser: use instance Report log methods
Daniel Espinosa [Wed, 29 Dec 2021 06:00:55 +0000 (00:00 -0600)] 
Parser: use instance Report log methods

Avoid static access to instance code context

3 years agoReport: add log instance methods
Daniel Espinosa [Wed, 29 Dec 2021 05:50:15 +0000 (23:50 -0600)] 
Report: add log instance methods

CodeContext now use Report log instance methods instead
of static methods.

3 years agotests: Add XFAIL tests if undefined behavior sanitizer is enabled
Rico Tzschichholz [Mon, 3 Jan 2022 15:51:31 +0000 (16:51 +0100)] 
tests: Add XFAIL tests if undefined behavior sanitizer is enabled

In addition to d3bfaa4ae34c0e6c7a7a9d124e6c3a276c545391

3 years agotests: Skip constants/member-access-enum.vala for ASAN
Rico Tzschichholz [Mon, 3 Jan 2022 15:51:31 +0000 (16:51 +0100)] 
tests: Skip constants/member-access-enum.vala for ASAN

In addition to 50414570d1b54a6106a9a64274bb84977d817616

3 years agocodegen: Use __once instead of __volatile in generated code
Val Och [Fri, 31 Dec 2021 17:25:49 +0000 (20:25 +0300)] 
codegen: Use __once instead of __volatile in generated code

This better reflects purpose of relevant variables, especially
given that they aren't volatile anymore on GLib 2.68+.

3 years agocodegen: Initialize "result" variable on declaration for abstract methods only
Rico Tzschichholz [Mon, 3 Jan 2022 12:59:36 +0000 (13:59 +0100)] 
codegen: Initialize "result" variable on declaration for abstract methods only

3 years agocodegen: Cast given default-value of struct with possible member initializer
Rico Tzschichholz [Mon, 3 Jan 2022 12:59:36 +0000 (13:59 +0100)] 
codegen: Cast given default-value of struct with possible member initializer

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

3 years agocodegen: Allow boxing of non-external SimpleType structs
Rico Tzschichholz [Mon, 3 Jan 2022 08:07:00 +0000 (09:07 +0100)] 
codegen: Allow boxing of non-external SimpleType structs

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

3 years agogio-2.0: Add custom MemoryOutputStream.with_*data() wrappers
Rico Tzschichholz [Tue, 28 Dec 2021 12:18:46 +0000 (13:18 +0100)] 
gio-2.0: Add custom MemoryOutputStream.with_*data() wrappers

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

3 years agovala: Show source location when reporting deprecations
Rico Tzschichholz [Mon, 27 Dec 2021 06:44:31 +0000 (07:44 +0100)] 
vala: Show source location when reporting deprecations

3 years agoRevert "Make more use of native GLib.Regex syntax"
Rico Tzschichholz [Mon, 27 Dec 2021 06:41:09 +0000 (07:41 +0100)] 
Revert "Make more use of native GLib.Regex syntax"

This reverts commit b2ef0ed8d2c37a813f9ad8b35c7a7e4a1d639e1c.

3 years agoMake more use of native GLib.Regex syntax
Rico Tzschichholz [Wed, 22 Dec 2021 08:16:52 +0000 (09:16 +0100)] 
Make more use of native GLib.Regex syntax

3 years agoparser: Improve partial classes support
Rico Tzschichholz [Sat, 18 Dec 2021 21:25:54 +0000 (22:25 +0100)] 
parser: Improve partial classes support

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

3 years agovala: Correctly replace "in" expression in pre-/postconditions of method
Rico Tzschichholz [Mon, 20 Dec 2021 19:40:30 +0000 (20:40 +0100)] 
vala: Correctly replace "in" expression in pre-/postconditions of method

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

3 years agovala: Silently accept unsafe assignment of "0" literal to enum type
Rico Tzschichholz [Fri, 17 Dec 2021 10:43:33 +0000 (11:43 +0100)] 
vala: Silently accept unsafe assignment of "0" literal to enum type

In addition to 9f1de7ae875b59939ca6200e08dddd69106fb486

3 years agoProperly use [Flags] feature for ModifierFlags and CCodeModifiers
Rico Tzschichholz [Fri, 17 Dec 2021 10:43:33 +0000 (11:43 +0100)] 
Properly use [Flags] feature for ModifierFlags and CCodeModifiers

See 2afaae5e0755b2d8619808d2d148761b92c355b5

3 years agovala: Non nullable enum types are simple types
Rico Tzschichholz [Thu, 16 Dec 2021 14:31:47 +0000 (15:31 +0100)] 
vala: Non nullable enum types are simple types

Fixes a regression of 5b6345a6386b05aaf3f11cb3572940413eb878a8

3 years agovala: Allow unsafe assignment of integer to enum while reporting a notice
Rico Tzschichholz [Thu, 16 Dec 2021 14:31:47 +0000 (15:31 +0100)] 
vala: Allow unsafe assignment of integer to enum while reporting a notice

3 years agoSync NEWS from 0.54
Rico Tzschichholz [Thu, 16 Dec 2021 08:32:25 +0000 (09:32 +0100)] 
Sync NEWS from 0.54

3 years agogirparser: Avoid possibily creating duplicated attributes
Rico Tzschichholz [Wed, 15 Dec 2021 20:42:53 +0000 (21:42 +0100)] 
girparser: Avoid possibily creating duplicated attributes

Don't append an attribute without checking if there is an existing one.
In case the attribute already exists append the new key/value pairs.

3 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 15 Dec 2021 15:27:56 +0000 (16:27 +0100)] 
vapi: Update GIR-based bindings

3 years agogstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols
Corentin Noël [Wed, 8 Dec 2021 11:30:32 +0000 (12:30 +0100)] 
gstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols

Also add floating reference to all the new creation functions.

3 years agocodegen: Initialize type parameter properties for generics earlier
Rico Tzschichholz [Tue, 14 Dec 2021 08:04:48 +0000 (09:04 +0100)] 
codegen: Initialize type parameter properties for generics earlier

If g_object_new() is used then additionally initialize type parameter
properties with it.

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

3 years agotests: Add "type-parameter property clash" test to increase coverage
Rico Tzschichholz [Tue, 14 Dec 2021 09:38:37 +0000 (10:38 +0100)] 
tests: Add "type-parameter property clash" test to increase coverage

This needs to be handled gracefully. So throwing an error is no option.

3 years agocodegen: Use a dedicated EmitContext for _variant_get*() functions
Rico Tzschichholz [Mon, 13 Dec 2021 18:35:47 +0000 (19:35 +0100)] 
codegen: Use a dedicated EmitContext for _variant_get*() functions

3 years agovala: Report statement parsing error if it is not meant to be an expression
Rico Tzschichholz [Mon, 13 Dec 2021 11:38:01 +0000 (12:38 +0100)] 
vala: Report statement parsing error if it is not meant to be an expression

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

3 years agovala: Drop duplicate check for unsupported flag of struct methods
Rico Tzschichholz [Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)] 
vala: Drop duplicate check for unsupported flag of struct methods

3 years agovala: Drop duplicate check for unsupported flag of creation methods
Rico Tzschichholz [Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)] 
vala: Drop duplicate check for unsupported flag of creation methods

3 years agotests: Add more "chain up" tests to increase coverage
Rico Tzschichholz [Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)] 
tests: Add more "chain up" tests to increase coverage

3 years agovala: Set is_yield_expression in async context when chaining up to async base ctor
Rico Tzschichholz [Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)] 
vala: Set is_yield_expression in async context when chaining up to async base ctor

vala-CRITICAL **: vala_member_access_get_inner: assertion 'self != NULL' failed
vala-CRITICAL **: vala_member_access_get_member_name: assertion 'self != NULL' failed

Avoid these spurious criticals and trigger the currently expected error.

3 years agocodegen: Correctly handle chain up of struct creation methods
Rico Tzschichholz [Sat, 11 Dec 2021 09:34:03 +0000 (10:34 +0100)] 
codegen: Correctly handle chain up of struct creation methods

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

3 years agotests: Add missing tests/structs/struct-static-field-initializer.c-expected
Rico Tzschichholz [Sat, 11 Dec 2021 09:34:03 +0000 (10:34 +0100)] 
tests: Add missing tests/structs/struct-static-field-initializer.c-expected

3 years agovala: NullLiteral is not a valid argument for string concatenation
wxx [Sat, 4 Dec 2021 09:17:47 +0000 (17:17 +0800)] 
vala: NullLiteral is not a valid argument for string concatenation

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

3 years agogtkmodule: Handle nested closure elements and bind them accordingly
Rico Tzschichholz [Mon, 6 Dec 2021 21:23:28 +0000 (22:23 +0100)] 
gtkmodule: Handle nested closure elements and bind them accordingly

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

3 years agotests/girwriter: Use the actual expected output of our girwriter
Lorenz Wildberg [Mon, 29 Nov 2021 21:31:28 +0000 (21:31 +0000)] 
tests/girwriter: Use the actual expected output of our girwriter

3 years agobuild: Update git-version-gen to latest upstream
Rico Tzschichholz [Wed, 1 Dec 2021 16:11:42 +0000 (17:11 +0100)] 
build: Update git-version-gen to latest upstream

From commit 378351df7e63daca234c581f086b542026e07a27 of
https://git.savannah.gnu.org/cgit/autoconf.git/tree/build-aux/git-version-gen

3 years agovapigen.m4: use $PKG_CONFIG_SYSROOT_DIR
Alexander Kanavin [Fri, 23 Oct 2015 13:13:54 +0000 (16:13 +0300)] 
vapigen.m4: use $PKG_CONFIG_SYSROOT_DIR

This is necessary in cross-compiling environments, where directories
returned by pkg-config should be prefixed with sysroot location.

3 years agovala: Check accessibility of initializer for constant and enum value
Rico Tzschichholz [Sat, 6 Nov 2021 17:55:38 +0000 (18:55 +0100)] 
vala: Check accessibility of initializer for constant and enum value

3 years agoglib-2.0: Always use the actual C type for CCode.array_length_type
Rico Tzschichholz [Tue, 30 Nov 2021 12:37:29 +0000 (13:37 +0100)] 
glib-2.0: Always use the actual C type for CCode.array_length_type

3 years agoSync NEWS from 0.54
Rico Tzschichholz [Mon, 29 Nov 2021 20:01:32 +0000 (21:01 +0100)] 
Sync NEWS from 0.54

3 years agotests: Add missing methods/parameter-ccode-type.vala
Rico Tzschichholz [Mon, 29 Nov 2021 14:51:49 +0000 (15:51 +0100)] 
tests: Add missing methods/parameter-ccode-type.vala

In addition to 0e097710e37b671b17ed1da330dd83b9e2340602

3 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 29 Nov 2021 09:36:54 +0000 (10:36 +0100)] 
vapi: Update GIR-based bindings

3 years agotests: Rename colliding test case to avoid conflict
Lorenz Wildberg [Sat, 27 Nov 2021 21:10:40 +0000 (21:10 +0000)] 
tests: Rename colliding test case to avoid conflict

3 years agovapi: Add gnome-desktop-4, gnome-bg-4 and gnome-rr-4 bindings
Rico Tzschichholz [Sun, 28 Nov 2021 11:45:25 +0000 (12:45 +0100)] 
vapi: Add gnome-desktop-4, gnome-bg-4 and gnome-rr-4 bindings

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

3 years agognome-desktop-3.0: Some parameter fixes
Rico Tzschichholz [Sun, 28 Nov 2021 11:45:25 +0000 (12:45 +0100)] 
gnome-desktop-3.0: Some parameter fixes

3 years agocodegen: Accept CCode.type attribute on parameters
Rico Tzschichholz [Sat, 27 Nov 2021 18:26:35 +0000 (19:26 +0100)] 
codegen: Accept CCode.type attribute on parameters

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

3 years agocodegen: Drop inconsistent space for ObjectType parameters
Rico Tzschichholz [Sat, 27 Nov 2021 18:26:35 +0000 (19:26 +0100)] 
codegen: Drop inconsistent space for ObjectType parameters

3 years agotests: Rename colliding test cases to avoid conflicts
Rico Tzschichholz [Fri, 26 Nov 2021 22:03:37 +0000 (23:03 +0100)] 
tests: Rename colliding test cases to avoid conflicts

3 years agowebkit2gtk-*.0: Update to 2.35.1
Rico Tzschichholz [Fri, 26 Nov 2021 19:16:19 +0000 (20:16 +0100)] 
webkit2gtk-*.0: Update to 2.35.1

3 years agobuild: Add "test-update" which passed UPDATE_EXPECTED=1 to refresh c-expected
Rico Tzschichholz [Fri, 26 Nov 2021 14:57:47 +0000 (15:57 +0100)] 
build: Add "test-update" which passed UPDATE_EXPECTED=1 to refresh c-expected

3 years agovala: Fix signals with generic return
Rico Tzschichholz [Fri, 26 Nov 2021 14:34:40 +0000 (15:34 +0100)] 
vala: Fix signals with generic return

In addition to 36999b5ffd63cc56a8648791b02bf07e7da88077

3 years agovala: Report error on missing gio-2.0 package for async constructors
Rico Tzschichholz [Thu, 25 Nov 2021 19:22:00 +0000 (20:22 +0100)] 
vala: Report error on missing gio-2.0 package for async constructors

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

3 years agotests: Add runtime checks to signals tests and increase coverage
Rico Tzschichholz [Thu, 25 Nov 2021 19:22:00 +0000 (20:22 +0100)] 
tests: Add runtime checks to signals tests and increase coverage

3 years agotests/girwriter: Increase coverage
Rico Tzschichholz [Wed, 24 Nov 2021 22:12:54 +0000 (23:12 +0100)] 
tests/girwriter: Increase coverage

3 years agotests: Add [Profile] method test to increase coverage
Rico Tzschichholz [Wed, 24 Nov 2021 20:26:03 +0000 (21:26 +0100)] 
tests: Add [Profile] method test to increase coverage

3 years agovala: Add [Profile] as known attribute for methods
Rico Tzschichholz [Wed, 24 Nov 2021 20:26:03 +0000 (21:26 +0100)] 
vala: Add [Profile] as known attribute for methods

3 years agoccode: Fix CCodeUnaryExpression.write() for PREFIX_INCREMENT/PREFIX_DECREMENT
Rico Tzschichholz [Wed, 24 Nov 2021 20:26:03 +0000 (21:26 +0100)] 
ccode: Fix CCodeUnaryExpression.write() for PREFIX_INCREMENT/PREFIX_DECREMENT

Regression of 0f65d306f5a2eca7ea798e5c835cf66b6e327c8e

3 years agogenie: Accept accessibility and async modifiers on "construct" creation methods
Rico Tzschichholz [Tue, 23 Nov 2021 13:19:02 +0000 (14:19 +0100)] 
genie: Accept accessibility and async modifiers on "construct" creation methods

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

3 years agogstreamer-base-1.0: Some parameter fixes
Rico Tzschichholz [Tue, 23 Nov 2021 11:49:16 +0000 (12:49 +0100)] 
gstreamer-base-1.0: Some parameter fixes

3 years agogstreamer: Update from 1.19.3+ git master
Rico Tzschichholz [Tue, 23 Nov 2021 10:06:36 +0000 (11:06 +0100)] 
gstreamer: Update from 1.19.3+ git master

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

3 years agotests: Remove wrongly committed files
Rico Tzschichholz [Sat, 20 Nov 2021 17:26:25 +0000 (18:26 +0100)] 
tests: Remove wrongly committed files

3 years agocodegen: Add missing check while overriding virtual async interface methods
Rico Tzschichholz [Sat, 20 Nov 2021 16:29:22 +0000 (17:29 +0100)] 
codegen: Add missing check while overriding virtual async interface methods

This fixes a couple of criticals and possibly faulty C code.

In addition to fc246aa7f8cbc6cb176724246a0187e19fe91198

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

3 years agocodegen: Check required length of enum type name for GType support
Rico Tzschichholz [Wed, 17 Nov 2021 20:26:39 +0000 (21:26 +0100)] 
codegen: Check required length of enum type name for GType support

Add corresponding tests for types which have support for GType

3 years agovala: Check for unavailable value-type of variable initializer
Rico Tzschichholz [Wed, 17 Nov 2021 17:46:22 +0000 (18:46 +0100)] 
vala: Check for unavailable value-type of variable initializer

Regression of 6690ea0e3c6f0d81d849e13548efc8c0809149cc

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

3 years agocodegen: Add and use CCodeConstantIdentifier for accessing constants
Rico Tzschichholz [Mon, 15 Nov 2021 19:43:19 +0000 (20:43 +0100)] 
codegen: Add and use CCodeConstantIdentifier for accessing constants

If an address to a constant value is required then its identifier needs
to be used instead of referring to a temporary copy.

Fixes a regression of f1a8f2a4c6771124abd61fd0ebfa991c846575fe

Found by -fsanitize=address