summaryrefslogtreecommitdiff
path: root/codegen
Commit message (Collapse)AuthorAgeFilesLines
* vala: Improve initialization of namespace fields with compound literalRico Tzschichholz2023-03-271-1/+8
| | | | | | Regression of 9c35019ef300082243ef7c71c22088c52d3db38e Fixes https://gitlab.gnome.org/GNOME/vala/issues/1424
* codegen: Minor refactoring of TypeRegisterFunction and its subclassesRico Tzschichholz2023-03-216-66/+41
|
* codegen: Use G_TYPE_FLAG_NONE when targetting glib >= 2.74Rico Tzschichholz2023-03-212-1/+7
|
* vala: Owned property accessors are not allowed for non-null simple typesRico Tzschichholz2023-03-211-15/+0
| | | | Additionally drop invalid g_value_take_* references for enums
* vala: Allow assignment of namespace fields with inline allocated arraysRico Tzschichholz2023-03-201-0/+2
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/945
* codegen: Add declaration for register call of dynamic DBus interfacesRico Tzschichholz2023-03-181-10/+20
| | | | | | | | The call was added without the required extern declaration Found by -Werror=implicit-function-declaration Fixes https://gitlab.gnome.org/GNOME/vala/issues/1422
* codegen: Use g_object_class_override_property to implement generic interface ↵Rico Tzschichholz2023-03-131-3/+19
| | | | | | | | | | | | 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-131-2/+10
| | | | Found by -Werror=int-conversion
* codegen: Consistently handle GLib.Error as boxed typeRico Tzschichholz2023-03-093-6/+17
| | | | | | 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-20/+5
| | | | | | | 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
* gtkmodule: Improve error messagesNiels De Graef2023-02-201-2/+2
| | | | | | | | Be a bit more specific about some of the errors that valac can encounter when parsing a UI file. (for my use case specifically, it helped me to figure out I had a <property> tag without a name attribute in one of my UI files)
* codegen: Cast vfunc of property accessors by using cast_method_pointer()Rico Tzschichholz2023-02-051-27/+17
| | | | | | 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-1/+1
| | | | | | 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-051-0/+6
| | | | | | Found by -Wincompatible-function-pointer-types See https://gitlab.gnome.org/GNOME/vala/issues/1408
* vala: Allow more general usage of PropertyAccessor.get_method()Rico Tzschichholz2023-02-051-3/+3
|
* codegen: Perform required casts for generic types of return-values and ↵Rico Tzschichholz2023-01-312-0/+6
| | | | | | | | in/out-parameters Found by -Werror=int-conversion Fixes https://gitlab.gnome.org/GNOME/vala/issues/1407
* codegen: Add foreach support for stringsFrederik Zipp2023-01-111-0/+34
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/108
* codegen: Improve handling of 'extern' on Win32 and Cygwinwszqkzqk2023-01-111-1/+1
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1398
* codegen: Correctly handle fixed-length array initialization of fields in classesRico Tzschichholz2023-01-042-111/+4
|
* vala: Allow to use store_field() for initializationsRico Tzschichholz2023-01-043-6/+12
|
* parser: Properly handle chained equality expressionswszqkzqk2022-12-221-2/+11
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1385
* codegen: Use a special CCodeBinaryExpression for string comparisonsRico Tzschichholz2022-12-221-8/+7
| | | | | This preserves support for recursive replacement of arguments while this expression was actually transformed into a function call.
* Fix output decoding error of non-ASCII character on Win32wszqkzqk2022-11-271-1/+1
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1379
* Actually use printf-like way of Report.*()Rico Tzschichholz2022-11-202-2/+2
|
* codegen: Append VALA_EXTERN also when using fast-vapiAlberts Muktupāvels2022-10-231-0/+8
|
* codegen: Add glib.h include for TRUE/FALSE literalRico Tzschichholz2022-10-021-0/+1
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1364
* codegen: Check cname of fields and methods against reserved identfiersRico Tzschichholz2022-06-141-3/+9
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1329
* codegen: Split reserved identifiers for C and ValaRico Tzschichholz2022-06-142-6/+9
|
* codegen: Make sure to initialize static collectionsRico Tzschichholz2022-06-142-0/+11
|
* codegen: Detect usage of static type-parameter in runtime contextRico Tzschichholz2022-05-311-0/+5
| | | | | | | 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-101-0/+12
| | | | | | If value is a null-terminated array then calculate and set its length. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1316
* codegen: Drop confusing warning when accessing interface membersRico Tzschichholz2022-03-081-4/+0
| | | | | | Making assumptions for member access using the current class is not correct. Introduced by 0aace7bd6d3ec72e77f4eabbb7d5fffd3b2e86a8
* codegen: Emit GType definition for error domainsRico Tzschichholz2022-02-248-5/+135
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/699
* codegen: Default to "has_type_id = false" for external error-domainsRico Tzschichholz2022-02-241-1/+5
|
* codegen: Emit G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC() for structsRico Tzschichholz2022-02-241-0/+17
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1293
* codegen: Emit G_DEFINE_AUTOPTR_CLEANUP_FUNC() for interfaces with base classRico Tzschichholz2022-02-241-1/+12
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1292
* codegen: Split out GTypeModule.generate_autoptr_cleanup()Rico Tzschichholz2022-02-241-6/+10
|
* gtkmodule: Recurse inner classes of ObjectTypeSymbols (2)Rico Tzschichholz2022-02-091-5/+14
|
* gtkmodule: Improve UI parsing and handling of nested objects and propertiesRico Tzschichholz2022-02-091-32/+102
| | | | Don't restrict GtkCallback to instance methods
* gtkmodule: Recurse inner classes of ObjectTypeSymbolsRico Tzschichholz2022-02-091-5/+14
|
* codegen: Stop generating wrappers for dynamic property accessRico Tzschichholz2022-02-063-102/+13
|
* vala: Move dynamic property errors to semantic analyzer passRico Tzschichholz2022-02-061-1/+1
|
* codegen: Use correct target/destroy of delegate field initializerRico Tzschichholz2022-01-311-3/+12
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1285
* codegen: Write array length of formal parameters with fixed lengthRico Tzschichholz2022-01-261-5/+1
| | | | "void foo (gint i[3]) { ... }" instead of "void foo (gint* i) { ... }"
* codegen: Cast generic return value from g_sequence_get()Princeton Ferro2022-01-251-1/+10
| | | | | | | | | Use convert_from_generic_pointer() to generate C code without warnings when accessing scalar elements from a GSequence. Addtionally check type arguments of given GSequence during codegen. In addition to 44195a02c9d26453dc698282deb4947425a4b0b1
* vala: Add support to infer return type of dynamic signalsLorenz Wildberg2022-01-251-1/+5
|
* vala: Add foreach statement support for GLib.SequencePrinceton Ferro2022-01-252-0/+36
| | | | It is now possible to use foreach with a GLib.Sequence
* vala: Add foreach statement support for GLib.ArrayPrinceton Ferro2022-01-242-2/+36
| | | | It is now possible to use foreach with a GLib.Array
* codegen: Access of stack allocated struct is guaranteed to be non nullRico Tzschichholz2022-01-241-0/+2
| | | | | | Found by -Werror=address with GCC 12 See https://gitlab.gnome.org/GNOME/vala/issues/1282
* codegen: Don't uncoditionally null check callback_func for GLib.ClosureRico Tzschichholz2022-01-241-1/+6
| | | | | | Found by -Werror=address with GCC 12 See https://gitlab.gnome.org/GNOME/vala/issues/1282