summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* vala: Don't unconditionally expect ObjectType of ClassRico Tzschichholz2022-07-302-0/+14
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1341
* codegen: Check cname of fields and methods against reserved identfiersRico Tzschichholz2022-06-143-0/+17
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1329
* codegen: Detect usage of static type-parameter in runtime contextRico Tzschichholz2022-05-312-0/+15
| | | | | | | Compact classes doesn't carry runtime information of its type-parameters. In case this information is required we need report an error. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1326
* codegen: Correctly set array-length for NoAccessorMethods propertiesRico Tzschichholz2022-05-103-0/+379
| | | | | | If value is a null-terminated array then calculate and set its length. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1316
* vala: Improve accessibility check inside member initializerRico Tzschichholz2022-04-047-0/+694
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1300
* vala: Don't allow nullable enum value as real GObject propertyRico Tzschichholz2022-03-293-0/+260
| | | | | | It is basically a boxed integer value. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1074
* codegen: Drop confusing warning when accessing interface membersRico Tzschichholz2022-03-083-0/+656
| | | | | | Making assumptions for member access using the current class is not correct. Introduced by 0aace7bd6d3ec72e77f4eabbb7d5fffd3b2e86a8