summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: Add more method tests to increase coverageHEADstagingmainRico Tzschichholz2023-05-173-0/+27
|
* tests: Add missing instance fields to GIR test filesRico Tzschichholz2023-04-168-0/+24
|
* vala: Don't make GenericType nullable by defaultRico Tzschichholz2023-04-149-5/+195
| | | | | | Allow equality between nullable and non-nullable generic-types for now Fixes https://gitlab.gnome.org/GNOME/vala/issues/1191
* codegen: Fix usage of lambda-expression from delegate initializerRico Tzschichholz2023-04-133-0/+1289
| | | | | | | Unset delegate-type if a lambda-expression handler was found to use the correct code paths. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1428
* codegen: Return CCodeInvalidExpression instead of nullRico Tzschichholz2023-04-132-0/+12
| | | | | | | | | This fixes the following criticals: vala_ccode_cast_expression_construct: assertion 'expr != NULL' failed vala_ccode_function_call_add_argument: assertion 'expr != NULL' failed Remove dead code, this is already handled in get_dup_func_expression()
* vala: Check type-argument count of interface prerequisitesRico Tzschichholz2023-04-085-0/+44
| | | | Additionally add test case for type-argument count of class base-types
* codegen: Stabilize CCode.cname for backing method of lamdba expressionRico Tzschichholz2023-04-0696-1539/+1539
| | | | Move lambda_id generation to CCodeAttribute and use _vala_lambda%d_ pattern
* vala: Improve initialization of namespace fields with compound literalRico Tzschichholz2023-03-275-4/+179
| | | | | | Regression of 9c35019ef300082243ef7c71c22088c52d3db38e Fixes https://gitlab.gnome.org/GNOME/vala/issues/1424
* codegen: Use G_TYPE_FLAG_NONE when targetting glib >= 2.74Rico Tzschichholz2023-03-211-0/+1
|
* tests: Extend "struct-typed properties" tests to increase coverageRico Tzschichholz2023-03-215-12/+946
|
* tests: Add "signal with struct parameter" test to increase coverageRico Tzschichholz2023-03-213-0/+451
|
* vala: Owned property accessors are not allowed for non-null simple typesRico Tzschichholz2023-03-212-0/+13
| | | | Additionally drop invalid g_value_take_* references for enums
* vala: Allow assignment of namespace fields with inline allocated arraysRico Tzschichholz2023-03-203-0/+60
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/945
* tests: Fix -Werror=array-bounds failureRico Tzschichholz2023-03-202-2/+2
|
* vala: Set proper value-type of unary ref/out expression in initializersRico Tzschichholz2023-03-195-0/+238
| | | | | | So the expected pointer-type for these expressions is available in AST. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1421
* tests: Drop superfluous GLIB_2_56 preprocessingRico Tzschichholz2023-03-181-3/+0
|
* codegen: Use g_object_class_override_property to implement generic interface ↵Rico Tzschichholz2023-03-133-0/+546
| | | | | | | | | | | | properties This caused the criticals like: GLib-GObject-CRITICAL **: Read/writable property 'data' on class 'Foo' has type 'gchararray' which is not exactly equal to the type 'gpointer' of the property on the interface 'IFoo' Fixes https://gitlab.gnome.org/GNOME/vala/issues/1419
* codegen: Add cast to accessor calls for generic property implementationsRico Tzschichholz2023-03-133-4/+200
| | | | Found by -Werror=int-conversion
* codegen: Consistently handle GLib.Error as boxed typeRico Tzschichholz2023-03-095-33/+824
| | | | | | Use G_TYPE_ERROR and GBoxed API for all error domains. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1418
* vala: Correctly handle pre/post-increment expression as index of element accessRico Tzschichholz2023-03-084-9/+65
| | | | | | Regression of cb1828cfc5273aca752de9b39a77e0cd53305e61 Fixes https://gitlab.gnome.org/GNOME/vala/issues/1417
* Require and target GLib >= 2.56Rico Tzschichholz2023-02-289-243/+299
| | | | | | | The next stable release of vala will happen over 5 years after the release of GLib 2.56.0. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1415
* vala: Better handling of [NoReturn] call inside finally clauseRico Tzschichholz2023-02-063-0/+74
| | | | | | | | | This caused the following criticals: vala_flow_analyzer_jump_target_construct_finally_clause: assertion 'last_block != NULL' failed vala_flow_analyzer_jump_target_get_is_exit_target: assertion 'self != NULL' failed vala_flow_analyzer_jump_target_get_is_error_target: assertion 'self != NULL' failed vala_flow_analyzer_jump_target_get_is_finally_clause: assertion 'self != NULL' failed
* codegen: Cast vfunc of property accessors by using cast_method_pointer()Rico Tzschichholz2023-02-0512-62/+62
| | | | | | Found by -Wincompatible-function-pointer-types See https://gitlab.gnome.org/GNOME/vala/issues/1408
* codegen: Cast return value of generic type accessor functionsRico Tzschichholz2023-02-052-6/+6
| | | | | | Found by -Wincompatible-function-pointer-types See https://gitlab.gnome.org/GNOME/vala/issues/1408
* codegen: Perform required cast while assigning and passing function pointersRico Tzschichholz2023-02-053-12/+12
| | | | | | Found by -Wincompatible-function-pointer-types See https://gitlab.gnome.org/GNOME/vala/issues/1408
* codegen: Perform required casts for generic types of return-values and ↵Rico Tzschichholz2023-01-317-0/+486
| | | | | | | | in/out-parameters Found by -Werror=int-conversion Fixes https://gitlab.gnome.org/GNOME/vala/issues/1407
* vala: Add support for Hexadecimal floating point literalswszqkzqk2023-01-307-0/+126
| | | | https://gcc.gnu.org/onlinedocs/gcc/Hex-Floats.html#Hex-Floats
* vala: Improve missing exponent check for real literalsRico Tzschichholz2023-01-302-0/+10
|
* vala: Improve compatibility type checks of array elements in assignmentsRico Tzschichholz2023-01-308-0/+1010
|
* glib-2.0: Improve string.replace()wszqkzqk2023-01-301-62/+42
| | | | | | Use string.split() and string.joinv() which is way faster than GLib.Regex() Fixes https://gitlab.gnome.org/GNOME/vala/issues/1402
* tests: Extend string.replace() test to increase coverageRico Tzschichholz2023-01-182-0/+20
|
* codegen: Add foreach support for stringsFrederik Zipp2023-01-112-0/+44
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/108
* tests: Update c-expectedwszqkzqk2023-01-11623-623/+623
|
* parser: Support one-line declaration of multiple fields in classes/structswszqkzqk2023-01-053-0/+359
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/6
* tests: Add "one-line declaration of local variables" test to increase coverageRico Tzschichholz2023-01-053-0/+33
|
* codegen: Correctly handle fixed-length array initialization of fields in classesRico Tzschichholz2023-01-047-2/+453
|
* parser: Properly handle chained equality expressionswszqkzqk2022-12-224-0/+292
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1385
* tests: Add "string relation" tests to increase coverageRico Tzschichholz2022-12-223-0/+49
|
* tests: Add "type check comparison" test to increase coverageRico Tzschichholz2022-12-223-0/+317
|
* vala: Add support for binary/octal integer literal星外之神2022-12-0814-0/+180
|
* vala: Improve integer literal checksRico Tzschichholz2022-12-086-0/+28
|
* vala: Fix assignment operators for element accessSimon Werbeck2022-11-143-0/+176
| | | | | | | This transforms an assignment to element access other than `=' to a binary expression i.e. `a[b] += 1' will become `a.set(a.get(b) + 1)' Fixes https://gitlab.gnome.org/GNOME/vala/issues/135
* vala: Add support for verbatim template string星外之神2022-10-3013-30/+418
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1373
* vala: Report error in real literal if exponent has no digits星外之神2022-10-264-0/+18
|
* codegen: Add glib.h include for TRUE/FALSE literalRico Tzschichholz2022-10-024-1/+30
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1364
* tests: Add "entry point exists" test to increase coverageRico Tzschichholz2022-09-262-0/+10
|
* tests: Split up gir parser tests into dedicated filesRico Tzschichholz2022-09-1281-639/+845
|
* vala: Make try-statement parsing more resilientRico Tzschichholz2022-08-152-0/+17
| | | | | | Regression of f5934184d050d1a19f394fdab6f2ee66ff30965f Fixes https://gitlab.gnome.org/GNOME/vala/issues/1304
* vala: Enforce required type-arguments on parameter/return types of callablesRico Tzschichholz2022-08-095-0/+41
| | | | | | This stricter check applies to delegate types in source files only. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1342
* Bump version suffix to 0.580.57.0Rico Tzschichholz2022-08-011-0/+2
|