summaryrefslogtreecommitdiff
path: root/tests/objects
Commit message (Collapse)AuthorAgeFilesLines
* codegen: Fix usage of lambda-expression from delegate initializerRico Tzschichholz2023-04-132-0/+1288
| | | | | | | 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: Stabilize CCode.cname for backing method of lamdba expressionRico Tzschichholz2023-04-0625-480/+480
| | | | Move lambda_id generation to CCodeAttribute and use _vala_lambda%d_ pattern
* tests: Extend "struct-typed properties" tests to increase coverageRico Tzschichholz2023-03-214-12/+945
|
* tests: Add "signal with struct parameter" test to increase coverageRico Tzschichholz2023-03-212-0/+450
|
* vala: Owned property accessors are not allowed for non-null simple typesRico Tzschichholz2023-03-211-0/+12
| | | | Additionally drop invalid g_value_take_* references for enums
* tests: Drop superfluous GLIB_2_56 preprocessingRico Tzschichholz2023-03-181-3/+0
|
* codegen: Add cast to accessor calls for generic property implementationsRico Tzschichholz2023-03-132-439/+0
| | | | Found by -Werror=int-conversion
* codegen: Consistently handle GLib.Error as boxed typeRico Tzschichholz2023-03-094-33/+823
| | | | | | Use G_TYPE_ERROR and GBoxed API for all error domains. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1418
* Require and target GLib >= 2.56Rico Tzschichholz2023-02-281-0/+14
| | | | | | | 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
* codegen: Cast vfunc of property accessors by using cast_method_pointer()Rico Tzschichholz2023-02-0511-58/+58
| | | | | | 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-051-3/+3
| | | | | | Found by -Wincompatible-function-pointer-types See https://gitlab.gnome.org/GNOME/vala/issues/1408
* tests: Update c-expectedwszqkzqk2023-01-11148-148/+148
|
* codegen: Correctly handle fixed-length array initialization of fields in classesRico Tzschichholz2023-01-042-2/+2
|
* codegen: Correctly set array-length for NoAccessorMethods propertiesRico Tzschichholz2022-05-102-0/+378
| | | | | | 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-044-0/+669
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1300
* vala: Don't allow nullable enum value as real GObject propertyRico Tzschichholz2022-03-292-0/+259
| | | | | | 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-082-0/+655
| | | | | | Making assumptions for member access using the current class is not correct. Introduced by 0aace7bd6d3ec72e77f4eabbb7d5fffd3b2e86a8
* codegen: Emit GType definition for error domainsRico Tzschichholz2022-02-241-0/+25
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/699
* codegen: Emit G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC() for structsRico Tzschichholz2022-02-245-0/+5
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1293
* codegen: Emit G_DEFINE_AUTOPTR_CLEANUP_FUNC() for interfaces with base classRico Tzschichholz2022-02-2421-0/+25
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1292
* vala: Only add catch clause if an inner error is possibleRico Tzschichholz2022-02-114-313/+10
| | | | See d9f702289b4b39683d0c9361e1ea02fd51ecae22
* vala: Catch and throw possible inner error of lock statementsRico Tzschichholz2022-02-104-10/+313
| | | | | | See 40c1dbfbfedb6c4a6b88df045eb1c2e7bdd38d93 Fixes https://gitlab.gnome.org/GNOME/vala/issues/83
* codegen: Stop generating wrappers for dynamic property accessRico Tzschichholz2022-02-062-47/+79
|
* vala: Move dynamic property errors to semantic analyzer passRico Tzschichholz2022-02-063-0/+318
|
* vala: Add support to infer return type of dynamic signalsLorenz Wildberg2022-01-255-0/+194
|
* Support "emit" for explicit signal emissionLorenz Wildberg2022-01-044-0/+449
| | | | | If "foo" is a signal then "foo.emit (...);" is allowed now additionally to "foo (...);". This is required to emit dynamic signals.
* codegen: Use __once instead of __volatile in generated codeVal Och2022-01-03130-1274/+1274
| | | | | 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 onlyRico Tzschichholz2022-01-0344-87/+87
|
* parser: Improve partial classes supportRico Tzschichholz2021-12-213-60/+534
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/370
* vala: Non nullable enum types are simple typesRico Tzschichholz2021-12-162-36/+12
| | | | Fixes a regression of 5b6345a6386b05aaf3f11cb3572940413eb878a8
* codegen: Initialize type parameter properties for generics earlierRico Tzschichholz2021-12-145-5/+5
| | | | | | | If g_object_new() is used then additionally initialize type parameter properties with it. Fixes https://gitlab.gnome.org/GNOME/vala/issues/67
* codegen: Drop inconsistent space for ObjectType parametersRico Tzschichholz2021-11-271-10/+10
|
* vala: Fix signals with generic returnRico Tzschichholz2021-11-262-0/+460
| | | | In addition to 36999b5ffd63cc56a8648791b02bf07e7da88077
* tests: Add runtime checks to signals tests and increase coverageRico Tzschichholz2021-11-252-90/+217
|
* codegen: Add missing check while overriding virtual async interface methodsRico Tzschichholz2021-11-202-1/+230
| | | | | | | | This fixes a couple of criticals and possibly faulty C code. In addition to fc246aa7f8cbc6cb176724246a0187e19fe91198 See https://gitlab.gnome.org/GNOME/vala/issues/852
* codegen: Check required length of enum type name for GType supportRico Tzschichholz2021-11-172-0/+14
| | | | Add corresponding tests for types which have support for GType
* codegen: Stop generating wrappers for dynamic signal connectionsRico Tzschichholz2021-11-011-62/+10
|
* vala: Using SignalHandler.disconnect() is required for dynamic signalsRico Tzschichholz2021-11-011-0/+15
|
* tests: Extend "dynamic" signal test to increase coverageRico Tzschichholz2021-11-012-50/+267
|
* tests: Add missing tests/objects/class-partial.c-expectedRico Tzschichholz2021-10-301-0/+602
|
* Add support for partial classesSimon Werbeck2021-10-305-0/+110
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/370
* vala: Improve error message for invalid handler of dynamic signalLorenz Wildberg2021-10-301-0/+8
|
* tests: Extend "access virtual signal of interface" test to increase coverageRico Tzschichholz2021-10-182-0/+111
|
* codegen: Add missing cast to access base-class members in class/static ctorRico Tzschichholz2021-08-312-0/+36
| | | | | | Regression of 9cbd53b8d79aa4c394ddf49e766f2c15fc476906 Fixes https://gitlab.gnome.org/GNOME/vala/issues/1221
* tests: Add expected generated C sourcesRico Tzschichholz2021-07-16141-0/+67268
|
* codegen: Fix variadic constructors for compact classes and structsRico Tzschichholz2021-06-232-0/+35
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1195
* codegen: Implementing GLib.Source.prepare/check is optional since 2.36Rico Tzschichholz2021-06-081-0/+7
|
* codegen: Fix support for public fields on GLib.Source subclassesOle André Vadla Ravnås2021-05-221-0/+22
|
* tests: Refactor "fields" test to increase coverageRico Tzschichholz2021-05-031-72/+227
|
* codegen: Add missing "_return" label and "_inner_error*_" declaration in dtorsRico Tzschichholz2021-04-241-0/+8
|