Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | vala: Don't make GenericType nullable by default | Rico Tzschichholz | 2023-04-14 | 2 | -0/+105 |
| | | | | | | Allow equality between nullable and non-nullable generic-types for now Fixes https://gitlab.gnome.org/GNOME/vala/issues/1191 | ||||
* | codegen: Stabilize CCode.cname for backing method of lamdba expression | Rico Tzschichholz | 2023-04-06 | 1 | -12/+12 |
| | | | | Move lambda_id generation to CCodeAttribute and use _vala_lambda%d_ pattern | ||||
* | codegen: Use g_object_class_override_property to implement generic interface ↵ | Rico Tzschichholz | 2023-03-13 | 2 | -0/+545 |
| | | | | | | | | | | | | 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 | 2 | -0/+635 |
| | | | | Found by -Werror=int-conversion | ||||
* | codegen: Cast return value of generic type accessor functions | Rico Tzschichholz | 2023-02-05 | 1 | -3/+3 |
| | | | | | | 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 | 6 | -0/+483 |
| | | | | | | | | in/out-parameters Found by -Werror=int-conversion Fixes https://gitlab.gnome.org/GNOME/vala/issues/1407 | ||||
* | tests: Update c-expected | wszqkzqk | 2023-01-11 | 21 | -21/+21 |
| | |||||
* | vala: Enforce required type-arguments on parameter/return types of callables | Rico Tzschichholz | 2022-08-09 | 4 | -0/+37 |
| | | | | | | This stricter check applies to delegate types in source files only. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1342 | ||||
* | codegen: Detect usage of static type-parameter in runtime context | Rico Tzschichholz | 2022-05-31 | 1 | -0/+14 |
| | | | | | | | 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: Emit G_DEFINE_AUTOPTR_CLEANUP_FUNC() for interfaces with base class | Rico Tzschichholz | 2022-02-24 | 1 | -0/+1 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1292 | ||||
* | vala: Improve check of generic type references in static contexts | Rico Tzschichholz | 2022-01-30 | 4 | -0/+38 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1284 | ||||
* | tests: Generic type inference for static methods only in compact classes | Rico Tzschichholz | 2022-01-30 | 2 | -273/+13 |
| | |||||
* | codegen: Use __once instead of __volatile in generated code | Val Och | 2022-01-03 | 15 | -84/+84 |
| | | | | | This better reflects purpose of relevant variables, especially given that they aren't volatile anymore on GLib 2.68+. | ||||
* | codegen: Initialize "result" variable on declaration for abstract methods only | Rico Tzschichholz | 2022-01-03 | 6 | -8/+8 |
| | |||||
* | codegen: Initialize type parameter properties for generics earlier | Rico Tzschichholz | 2021-12-14 | 8 | -7/+321 |
| | | | | | | | If g_object_new() is used then additionally initialize type parameter properties with it. Fixes https://gitlab.gnome.org/GNOME/vala/issues/67 | ||||
* | tests: Add "type-parameter property clash" test to increase coverage | Rico Tzschichholz | 2021-12-14 | 2 | -0/+441 |
| | | | | This needs to be handled gracefully. So throwing an error is no option. | ||||
* | tests: Rename colliding test cases to avoid conflicts | Rico Tzschichholz | 2021-11-26 | 2 | -0/+339 |
| | |||||
* | tests: Add missing generics/null-type.c-expected | Rico Tzschichholz | 2021-09-29 | 1 | -0/+53 |
| | |||||
* | vala: Accept NullType as generic type argument | Rico Tzschichholz | 2021-09-27 | 1 | -0/+10 |
| | |||||
* | codegen: Add type declaration for implicit temporary local variable | Rico Tzschichholz | 2021-09-18 | 1 | -0/+2 |
| | |||||
* | tests: Add expected generated C sources | Rico Tzschichholz | 2021-07-16 | 18 | -0/+5965 |
| | |||||
* | codegen: Don't add errornous cast for unknown type_symbol | Rico Tzschichholz | 2021-05-07 | 1 | -2/+12 |
| | | | | | | | | This causes invalid C code for reference transfer of GenericType. Regression of 7ae2f115a702439bd94bf09867b38019f39d010f Fixes https://gitlab.gnome.org/GNOME/vala/issues/1180 | ||||
* | tests: Add "generic array" test to increase coverage | Rico Tzschichholz | 2021-04-28 | 1 | -0/+35 |
| | |||||
* | tests: Add "generics reference transfer" test to increase coverage | Rico Tzschichholz | 2021-04-19 | 1 | -0/+24 |
| | |||||
* | codegen: Drop inner casts before converting between generics and integers | Rico Tzschichholz | 2021-03-10 | 1 | -0/+18 |
| | | | | Found by -Wpointer-to-int-cast | ||||
* | vala: Add missing null-check in DataType.get_type_signature() | Rico Tzschichholz | 2021-03-07 | 1 | -0/+10 |
| | | | | | | | | | If an instance struct field can not be resolved to a valid type-signature then bail. This fixes criticals like: g_string_insert_len: assertion 'len == 0 || val != NULL' failed | ||||
* | vala: Generics value holding struct pointer requires casting on access | Rico Tzschichholz | 2021-02-19 | 1 | -0/+22 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/347 | ||||
* | vala: Check type-arguments in base-types/prerequisites of class/interface | Rico Tzschichholz | 2021-02-13 | 2 | -0/+20 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/404 | ||||
* | codegen: Strip all nested occurances of CCodeCastExpression | Rico Tzschichholz | 2021-02-07 | 1 | -0/+14 |
| | | | | | | Triggered by 63551acaf0d83fac8b50904c2759c1098fbfaa71 See https://gitlab.gnome.org/GNOME/vala/issues/1134 | ||||
* | codegen: Correctly retrieve symbol_reference of nested cast expressions | Rico Tzschichholz | 2021-02-07 | 1 | -0/+9 |
| | | | | | | Regression of 63551acaf0d83fac8b50904c2759c1098fbfaa71 Fixes https://gitlab.gnome.org/GNOME/vala/issues/1134 | ||||
* | codegen: Don't use inferred type for temp-value to access generic property | Rico Tzschichholz | 2020-10-18 | 1 | -0/+12 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1088 | ||||
* | vala: Handle parameter initializer without value-type | Rico Tzschichholz | 2020-07-11 | 1 | -0/+8 |
| | | | | | | | | This caused criticals like: vala_data_type_compatible: assertion 'self != NULL' failed See https://gitlab.gnome.org/GNOME/vala/issues/1029 | ||||
* | codegen: Properly compare string if binary-expression contains string-literal | Rico Tzschichholz | 2020-07-11 | 1 | -0/+10 |
| | | | | Found by -Werror=address | ||||
* | vala: Transform cast from integer-type to boxed-type | Rico Tzschichholz | 2020-05-10 | 1 | -0/+9 |
| | | | | | | Don't generate faulty c-code with results in segmentation faults. Fixes https://gitlab.gnome.org/GNOME/vala/issues/992 | ||||
* | vala: Transform cast from floating-type to boxed-type | Rico Tzschichholz | 2020-05-10 | 1 | -0/+9 |
| | | | | | | Don't generate invalid c-code leading to "cannot convert to a pointer type" Fixes https://gitlab.gnome.org/GNOME/vala/issues/991 | ||||
* | test: Fix "GenericAccessors" test | Rico Tzschichholz | 2020-03-07 | 1 | -1/+1 |
| | |||||
* | tests: Extend "GenericAccessors" test to increase coverage | Rico Tzschichholz | 2020-03-07 | 1 | -0/+4 |
| | |||||
* | vala: Keep formal_target_type when transforming method-call/object-creation | Rico Tzschichholz | 2019-11-19 | 1 | -0/+20 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/835 | ||||
* | vala: Improve handling of "void" as generic type | Rico Tzschichholz | 2019-11-18 | 1 | -0/+35 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/878 | ||||
* | vala: Add GenericType.dup/destroy fields | Rico Tzschichholz | 2019-11-04 | 1 | -0/+88 |
| | | | | | | | This provides direct access to the according values of generic-types and type-parameters. Fixes https://gitlab.gnome.org/GNOME/vala/issues/190 | ||||
* | codegen: Make type-parameter properties readable | Rico Tzschichholz | 2019-11-04 | 1 | -0/+29 |
| | | | | | | Those are immutable while being construct-only properties. See https://gitlab.gnome.org/GNOME/vala/issues/190 | ||||
* | vala: Improve error message for arrays as type arguments | Florian Brosch | 2019-10-29 | 1 | -0/+8 |
| | |||||
* | codegen: Resolve generics in sizeof-expression of parameter initializer | Rico Tzschichholz | 2019-03-22 | 1 | -0/+28 |
| | |||||
* | tests: Add regression test for generic-type interference of static function | Rico Tzschichholz | 2019-03-06 | 1 | -0/+9 |
| | |||||
* | tests: Add "constructor chain up" generics test to increase coverage | Rico Tzschichholz | 2019-02-23 | 1 | -0/+12 |
| | |||||
* | tests: Add "GenericAccessors" tests to increase coverage | Rico Tzschichholz | 2018-09-21 | 2 | -0/+27 |
| | |||||
* | codegen: Free generic elements of glib collections | Rico Tzschichholz | 2018-03-21 | 3 | -0/+67 |
It needs to be possible to use parameters or fields/properties which hold dup/free functions for a generic type in scope. This required to make the destroy_func being a parameter with the benefit of being able to use g_*_free_all directly and adding a _g_node_free_all wrapper with a compatible signature. https://bugzilla.gnome.org/show_bug.cgi?id=694765 |