]>
git.ipfire.org Git - thirdparty/vala.git/log
Daniel Espinosa [Mon, 3 Jan 2022 02:47:39 +0000 (20:47 -0600)]
Symbol: remove static access to CodeContext
Daniel Espinosa [Mon, 3 Jan 2022 01:54:01 +0000 (19:54 -0600)]
SwitchSection: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:49:12 +0000 (19:49 -0600)]
SwitchLabel: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:34:04 +0000 (19:34 -0600)]
ReturnStatement: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:29:11 +0000 (19:29 -0600)]
Property: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:27:02 +0000 (19:27 -0600)]
PropertyAccessor: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:19:10 +0000 (19:19 -0600)]
Parameter: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:16:17 +0000 (19:16 -0600)]
ObjectCreationExpression: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 01:12:25 +0000 (19:12 -0600)]
Method: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 00:59:01 +0000 (18:59 -0600)]
MethodCall: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 00:55:13 +0000 (18:55 -0600)]
MemberAccess: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 00:51:19 +0000 (18:51 -0600)]
LockStatement: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 00:48:58 +0000 (18:48 -0600)]
LocalVariable: avoid static access to Report
Daniel Espinosa [Mon, 3 Jan 2022 00:41:32 +0000 (18:41 -0600)]
CreationMethod: avoid static report access
Daniel Espinosa [Sun, 2 Jan 2022 23:49:41 +0000 (17:49 -0600)]
Constructor: 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
Daniel Espinosa [Sun, 2 Jan 2022 23:37:29 +0000 (17:37 -0600)]
CatchClause: 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
Daniel Espinosa [Sun, 2 Jan 2022 23:11:37 +0000 (17:11 -0600)]
Assigment: use context if 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
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
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
Daniel Espinosa [Sun, 2 Jan 2022 04:05:17 +0000 (22:05 -0600)]
CodeNode: add CodeContext property
Daniel Espinosa [Fri, 31 Dec 2021 03:02:41 +0000 (21:02 -0600)]
ArrayCreationExpression: don't use static Report
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
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
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
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
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.
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
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
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
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
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
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
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
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.
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
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
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+.
Rico Tzschichholz [Mon, 3 Jan 2022 12:59:36 +0000 (13:59 +0100)]
codegen: Initialize "result" variable on declaration for abstract methods only
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
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
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
Rico Tzschichholz [Mon, 27 Dec 2021 06:44:31 +0000 (07:44 +0100)]
vala: Show source location when reporting deprecations
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 .
Rico Tzschichholz [Wed, 22 Dec 2021 08:16:52 +0000 (09:16 +0100)]
Make more use of native GLib.Regex syntax
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
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
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
Rico Tzschichholz [Fri, 17 Dec 2021 10:43:33 +0000 (11:43 +0100)]
Properly use [Flags] feature for ModifierFlags and CCodeModifiers
See
2afaae5e0755b2d8619808d2d148761b92c355b5
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
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
Rico Tzschichholz [Thu, 16 Dec 2021 08:32:25 +0000 (09:32 +0100)]
Sync NEWS from 0.54
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.
Rico Tzschichholz [Wed, 15 Dec 2021 15:27:56 +0000 (16:27 +0100)]
vapi: Update GIR-based bindings
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.
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
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.
Rico Tzschichholz [Mon, 13 Dec 2021 18:35:47 +0000 (19:35 +0100)]
codegen: Use a dedicated EmitContext for _variant_get*() functions
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
Rico Tzschichholz [Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)]
vala: 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 creation methods
Rico Tzschichholz [Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)]
tests: Add more "chain up" tests to increase coverage
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.
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
Rico Tzschichholz [Sat, 11 Dec 2021 09:34:03 +0000 (10:34 +0100)]
tests: Add missing tests/structs/struct-static-field-initializer.c-expected
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
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
Lorenz Wildberg [Mon, 29 Nov 2021 21:31:28 +0000 (21:31 +0000)]
tests/girwriter: Use the actual expected output of our girwriter
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
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.
Rico Tzschichholz [Sat, 6 Nov 2021 17:55:38 +0000 (18:55 +0100)]
vala: Check accessibility of initializer for constant and enum value
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
Rico Tzschichholz [Mon, 29 Nov 2021 20:01:32 +0000 (21:01 +0100)]
Sync NEWS from 0.54
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
Rico Tzschichholz [Mon, 29 Nov 2021 09:36:54 +0000 (10:36 +0100)]
vapi: Update GIR-based bindings
Lorenz Wildberg [Sat, 27 Nov 2021 21:10:40 +0000 (21:10 +0000)]
tests: Rename colliding test case to avoid conflict
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
Rico Tzschichholz [Sun, 28 Nov 2021 11:45:25 +0000 (12:45 +0100)]
gnome-desktop-3.0: Some parameter fixes
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
Rico Tzschichholz [Sat, 27 Nov 2021 18:26:35 +0000 (19:26 +0100)]
codegen: Drop inconsistent space for ObjectType parameters
Rico Tzschichholz [Fri, 26 Nov 2021 22:03:37 +0000 (23:03 +0100)]
tests: Rename colliding test cases to avoid conflicts
Rico Tzschichholz [Fri, 26 Nov 2021 19:16:19 +0000 (20:16 +0100)]
webkit2gtk-*.0: Update to 2.35.1
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
Rico Tzschichholz [Fri, 26 Nov 2021 14:34:40 +0000 (15:34 +0100)]
vala: Fix signals with generic return
In addition to
36999b5ffd63cc56a8648791b02bf07e7da88077
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
Rico Tzschichholz [Thu, 25 Nov 2021 19:22:00 +0000 (20:22 +0100)]
tests: Add runtime checks to signals tests and increase coverage
Rico Tzschichholz [Wed, 24 Nov 2021 22:12:54 +0000 (23:12 +0100)]
tests/girwriter: Increase coverage
Rico Tzschichholz [Wed, 24 Nov 2021 20:26:03 +0000 (21:26 +0100)]
tests: Add [Profile] method test to increase coverage
Rico Tzschichholz [Wed, 24 Nov 2021 20:26:03 +0000 (21:26 +0100)]
vala: Add [Profile] as known attribute for methods
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
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
Rico Tzschichholz [Tue, 23 Nov 2021 11:49:16 +0000 (12:49 +0100)]
gstreamer-base-1.0: Some parameter fixes
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
Rico Tzschichholz [Sat, 20 Nov 2021 17:26:25 +0000 (18:26 +0100)]
tests: Remove wrongly committed files
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
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
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
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