Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | vala: Improve initialization of namespace fields with compound literal | Rico Tzschichholz | 2023-03-27 | 5 | -4/+179 |
| | | | | | | Regression of 9c35019ef300082243ef7c71c22088c52d3db38e Fixes https://gitlab.gnome.org/GNOME/vala/issues/1424 | ||||
* | codegen: Use G_TYPE_FLAG_NONE when targetting glib >= 2.74 | Rico Tzschichholz | 2023-03-21 | 1 | -0/+1 |
| | |||||
* | tests: Extend "struct-typed properties" tests to increase coverage | Rico Tzschichholz | 2023-03-21 | 5 | -12/+946 |
| | |||||
* | tests: Add "signal with struct parameter" test to increase coverage | Rico Tzschichholz | 2023-03-21 | 3 | -0/+451 |
| | |||||
* | vala: Owned property accessors are not allowed for non-null simple types | Rico Tzschichholz | 2023-03-21 | 2 | -0/+13 |
| | | | | Additionally drop invalid g_value_take_* references for enums | ||||
* | vala: Allow assignment of namespace fields with inline allocated arrays | Rico Tzschichholz | 2023-03-20 | 3 | -0/+60 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/945 | ||||
* | tests: Fix -Werror=array-bounds failure | Rico Tzschichholz | 2023-03-20 | 2 | -2/+2 |
| | |||||
* | vala: Set proper value-type of unary ref/out expression in initializers | Rico Tzschichholz | 2023-03-19 | 5 | -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 preprocessing | Rico Tzschichholz | 2023-03-18 | 1 | -3/+0 |
| | |||||
* | codegen: Use g_object_class_override_property to implement generic interface ↵ | Rico Tzschichholz | 2023-03-13 | 3 | -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 implementations | Rico Tzschichholz | 2023-03-13 | 3 | -4/+200 |
| | | | | Found by -Werror=int-conversion | ||||
* | codegen: Consistently handle GLib.Error as boxed type | Rico Tzschichholz | 2023-03-09 | 5 | -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 access | Rico Tzschichholz | 2023-03-08 | 4 | -9/+65 |
| | | | | | | Regression of cb1828cfc5273aca752de9b39a77e0cd53305e61 Fixes https://gitlab.gnome.org/GNOME/vala/issues/1417 | ||||
* | Require and target GLib >= 2.56 | Rico Tzschichholz | 2023-02-28 | 9 | -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 clause | Rico Tzschichholz | 2023-02-06 | 3 | -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 Tzschichholz | 2023-02-05 | 12 | -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 functions | Rico Tzschichholz | 2023-02-05 | 2 | -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 pointers | Rico Tzschichholz | 2023-02-05 | 3 | -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 Tzschichholz | 2023-01-31 | 7 | -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 literals | wszqkzqk | 2023-01-30 | 7 | -0/+126 |
| | | | | https://gcc.gnu.org/onlinedocs/gcc/Hex-Floats.html#Hex-Floats | ||||
* | vala: Improve missing exponent check for real literals | Rico Tzschichholz | 2023-01-30 | 2 | -0/+10 |
| | |||||
* | vala: Improve compatibility type checks of array elements in assignments | Rico Tzschichholz | 2023-01-30 | 8 | -0/+1010 |
| | |||||
* | glib-2.0: Improve string.replace() | wszqkzqk | 2023-01-30 | 1 | -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 coverage | Rico Tzschichholz | 2023-01-18 | 2 | -0/+20 |
| | |||||
* | codegen: Add foreach support for strings | Frederik Zipp | 2023-01-11 | 2 | -0/+44 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/108 | ||||
* | tests: Update c-expected | wszqkzqk | 2023-01-11 | 623 | -623/+623 |
| | |||||
* | parser: Support one-line declaration of multiple fields in classes/structs | wszqkzqk | 2023-01-05 | 3 | -0/+359 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/6 | ||||
* | tests: Add "one-line declaration of local variables" test to increase coverage | Rico Tzschichholz | 2023-01-05 | 3 | -0/+33 |
| | |||||
* | codegen: Correctly handle fixed-length array initialization of fields in classes | Rico Tzschichholz | 2023-01-04 | 7 | -2/+453 |
| | |||||
* | parser: Properly handle chained equality expressions | wszqkzqk | 2022-12-22 | 4 | -0/+292 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1385 | ||||
* | tests: Add "string relation" tests to increase coverage | Rico Tzschichholz | 2022-12-22 | 3 | -0/+49 |
| | |||||
* | tests: Add "type check comparison" test to increase coverage | Rico Tzschichholz | 2022-12-22 | 3 | -0/+317 |
| | |||||
* | vala: Add support for binary/octal integer literal | 星外之神 | 2022-12-08 | 14 | -0/+180 |
| | |||||
* | vala: Improve integer literal checks | Rico Tzschichholz | 2022-12-08 | 6 | -0/+28 |
| | |||||
* | vala: Fix assignment operators for element access | Simon Werbeck | 2022-11-14 | 3 | -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-30 | 13 | -30/+418 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1373 | ||||
* | vala: Report error in real literal if exponent has no digits | 星外之神 | 2022-10-26 | 4 | -0/+18 |
| | |||||
* | codegen: Add glib.h include for TRUE/FALSE literal | Rico Tzschichholz | 2022-10-02 | 4 | -1/+30 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1364 | ||||
* | tests: Add "entry point exists" test to increase coverage | Rico Tzschichholz | 2022-09-26 | 2 | -0/+10 |
| | |||||
* | tests: Split up gir parser tests into dedicated files | Rico Tzschichholz | 2022-09-12 | 81 | -639/+845 |
| | |||||
* | vala: Make try-statement parsing more resilient | Rico Tzschichholz | 2022-08-15 | 2 | -0/+17 |
| | | | | | | Regression of f5934184d050d1a19f394fdab6f2ee66ff30965f Fixes https://gitlab.gnome.org/GNOME/vala/issues/1304 | ||||
* | vala: Enforce required type-arguments on parameter/return types of callables | Rico Tzschichholz | 2022-08-09 | 5 | -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.0 | Rico Tzschichholz | 2022-08-01 | 1 | -0/+2 |
| | |||||
* | vala: Don't unconditionally expect ObjectType of Class | Rico Tzschichholz | 2022-07-30 | 2 | -0/+14 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1341 | ||||
* | codegen: Check cname of fields and methods against reserved identfiers | Rico Tzschichholz | 2022-06-14 | 3 | -0/+17 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1329 | ||||
* | codegen: Detect usage of static type-parameter in runtime context | Rico Tzschichholz | 2022-05-31 | 2 | -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 properties | Rico Tzschichholz | 2022-05-10 | 3 | -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 initializer | Rico Tzschichholz | 2022-04-04 | 7 | -0/+694 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1300 | ||||
* | vala: Don't allow nullable enum value as real GObject property | Rico Tzschichholz | 2022-03-29 | 3 | -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 members | Rico Tzschichholz | 2022-03-08 | 3 | -0/+656 |
| | | | | | | Making assumptions for member access using the current class is not correct. Introduced by 0aace7bd6d3ec72e77f4eabbb7d5fffd3b2e86a8 |