Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | codegen: Don't leak target-reference when casting/assigning owned delegates | Rico Tzschichholz | 2017-03-22 | 2 | -0/+91 |
| | | | | | | Regression of 6d07669384cdb70c3c657dba67d5048212f25da9 https://bugzilla.gnome.org/show_bug.cgi?id=780426 | ||||
* | codegen: Fix delegate initializer for instance fields | Rico Tzschichholz | 2017-03-22 | 2 | -0/+25 |
| | | | | | | Set delegate-target to "self" which is available in *_instance_init(). https://bugzilla.gnome.org/show_bug.cgi?id=683925 | ||||
* | vala: Fix MemberAccess.is_non_null() for EnumValue constants | Ole André Vadla Ravnås | 2017-03-14 | 2 | -0/+11 |
| | | | | | | This is because an EnumValue object does not have a type reference. https://bugzilla.gnome.org/show_bug.cgi?id=780050 | ||||
* | codegen: Properly null-out source on ownership-transfer of delegates | Marvin W | 2017-03-14 | 2 | -0/+15 |
| | |||||
* | tests: Merge two main methods | Rico Tzschichholz | 2017-03-14 | 1 | -26/+20 |
| | |||||
* | signalmodule: Handle nullable ValueTypes properly and treat them as pointer | Rico Tzschichholz | 2017-03-14 | 2 | -0/+71 |
| | | | | | | | Nullable value-types are actually pointers to heap-allocated structures. Therefore a pointer-based marshaller is required for those types. https://bugzilla.gnome.org/show_bug.cgi?id=758816 | ||||
* | codegen: Property equality check can't be applied to non-automatic-bodies | Rico Tzschichholz | 2017-03-12 | 2 | -0/+21 |
| | | | | | | This is check was introduced with 64b9bfc1bc0abfed45ad07a8ebaef8a5f167f848 https://bugzilla.gnome.org/show_bug.cgi?id=779955 | ||||
* | class: Perform more thorough compatibility check of inherited properties | Rico Tzschichholz | 2017-03-10 | 4 | -0/+60 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=779038 | ||||
* | vala: Disallow private accessors in overridable properties | Simon Werbeck | 2017-03-09 | 2 | -0/+13 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=603491 | ||||
* | codegen: Fix base-access from within overriding struct-property-accessor | Rico Tzschichholz | 2017-03-08 | 2 | -0/+56 |
| | | | | | | Based on patch by gandalfn https://bugzilla.gnome.org/show_bug.cgi?id=764481 | ||||
* | codegen: Check there is a return error location before using it | Carlos Garnacho | 2017-03-06 | 1 | -1/+2 |
| | | | | | | Fixes client-side dbus generation on methods that don't throw any error. https://bugzilla.gnome.org/show_bug.cgi?id=779652 | ||||
* | tests: Add "finish_instance = false" test-case | Rico Tzschichholz | 2017-03-06 | 2 | -0/+44 |
| | | | | | | Also references IOSteam.splice_async() as compilation check. https://bugzilla.gnome.org/show_bug.cgi?id=710103 | ||||
* | tests: Add "use_string_marshalling = true" dbus-test | Carlos Garnacho | 2017-03-06 | 2 | -0/+17 |
| | | | | | | | | | | | | | Commit 09e6818d01e introduced the possibility of inserting _error labels at the end of functions, which make C compilers angry. This "test" (no actual tests are run, just compile correctness is checked here) triggers some of these situations. the "test3" abstract method is trickier though, it doesn't warn but produces code with early returns, which in practice means possible leaks. https://bugzilla.gnome.org/show_bug.cgi?id=778540 | ||||
* | memberaccess: Don't resolve base_method/property twice | Rico Tzschichholz | 2017-03-05 | 2 | -0/+19 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=779219 | ||||
* | signalmodule: Add support for array-parameters with rank > 1 | Francisco Serna | 2017-03-05 | 2 | -0/+23 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=778632 | ||||
* | tests: Add a bunch of chain-up tests | Rico Tzschichholz | 2017-03-05 | 11 | -0/+191 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=567269 | ||||
* | tests: Enable -Werror=int-conversion | Rico Tzschichholz | 2017-02-24 | 1 | -1/+1 |
| | |||||
* | codegen: Fix instance parameter for property setter in SimpleType structs | Nikolay Orlyuk | 2017-02-24 | 2 | -0/+24 |
| | | | | | | | | | Add test-case and fix code generator for call to the setter to pass instance as a value rather than as a pointer to value. Based on patches by Nathan Summers. https://bugzilla.gnome.org/show_bug.cgi?id=657346 | ||||
* | tests: Add N-D array tests | Rico Tzschichholz | 2017-02-21 | 1 | -0/+30 |
| | |||||
* | tests: Add test for dbus fd passing failures | Carlos Garnacho | 2017-02-18 | 2 | -0/+78 |
| | | | | | | | The server will exhaust all fds before the fd list in the dbus request is opened. We do expect it to fail in the client. https://bugzilla.gnome.org/show_bug.cgi?id=778540 | ||||
* | glib-2.0: Mark va_list.arg() with simple-generics to allow int64 or double | Rico Tzschichholz | 2017-02-15 | 1 | -1/+5 |
| | |||||
* | codegen: Support casting arbitary value-types to arrays | Rico Tzschichholz | 2017-02-12 | 2 | -0/+59 |
| | | | | | | | | Also calculate a valid length for the resulting array. This enables easier usage of common uint8[]-based buffer API. https://bugzilla.gnome.org/show_bug.cgi?id=777194 | ||||
* | vala: Non-null initializers are not allowed for owned namespace fields | Rico Tzschichholz | 2017-02-12 | 2 | -0/+9 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=777697 | ||||
* | codegen: Fix memory leak when using object initializer for properties | Rico Tzschichholz | 2017-02-12 | 2 | -0/+80 |
| | | | | | | | Assigning values to properties this way leads to a ref/copy of the source and therefore requires a unref/destroy afterwards. https://bugzilla.gnome.org/show_bug.cgi?id=766739 | ||||
* | codegen: Don't return void for non-nullable simple-type structs | Michael James Gratton | 2017-02-08 | 2 | -0/+27 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=778224 | ||||
* | tests: Add testcase for double-free regression | Ole André Vadla Ravnås | 2017-01-16 | 2 | -0/+24 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=777242 | ||||
* | D-Bus: support [DBus (signature = ...)] for properties | Abderrahim Kitouni | 2017-01-05 | 2 | -0/+137 |
| | | | | | | | This was working for methods and signals, but not for properties. Also add tests for all cases. https://bugzilla.gnome.org/show_bug.cgi?id=744595 | ||||
* | Move writing of G_GNUC_DEPRECATED down to CCodeDeclarator implementations | Rico Tzschichholz | 2017-01-04 | 1 | -0/+37 |
| | | | | | Doing so in CCodeDeclaration is error-prone. CCodeVariableDeclarator still requires special handling which isn't done here. | ||||
* | vala: Check inferred generic-types of MemberAccess | Rico Tzschichholz | 2016-12-10 | 2 | -0/+10 |
| | | | | | | | Although avoid this check for simple-generic accesses where this would be too strict and not wanted. https://bugzilla.gnome.org/show_bug.cgi?id=775466 | ||||
* | vala: Check generic-types count of DelegateType | Matthias Berndt | 2016-12-10 | 2 | -0/+8 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=772204 | ||||
* | codegen: Reference struct fields with their actual cname | Rico Tzschichholz | 2016-12-08 | 2 | -0/+18 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=775761 | ||||
* | methodcall: Don't try to remove N_/NC_ while they are properly handled in C | Rico Tzschichholz | 2016-11-30 | 3 | -1/+54 |
| | | | | | | | This avoids messing around with the ownership and properly invokes copying if needed. https://bugzilla.gnome.org/show_bug.cgi?id=642350 | ||||
* | tests: Add gir-test for fixed-size arrays | Rico Tzschichholz | 2016-11-27 | 2 | -0/+69 |
| | |||||
* | tests: Enable -Werror=redundant-decls | Rico Tzschichholz | 2016-11-11 | 1 | -1/+1 |
| | |||||
* | ccode: Fix and disable deprecating EnumValue | Rico Tzschichholz | 2016-11-11 | 1 | -1/+3 |
| | | | | | This still requires GCC 6.0 and later to work. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47043 | ||||
* | Move "blurb", "nick" and "notify" into Property | Rico Tzschichholz | 2016-11-11 | 2 | -0/+15 |
| | |||||
* | Transform CCode*'s "deprecated" into using CCodeNode's "modifiers" | Rico Tzschichholz | 2016-11-11 | 1 | -0/+16 |
| | |||||
* | tests: Add missing main() in bug641418-*.test | Rico Tzschichholz | 2016-11-10 | 3 | -0/+9 |
| | |||||
* | Add G_GNUC_PRINTF/SCANF attribute for Printf/ScanfFormat functions | Rico Tzschichholz | 2016-11-09 | 2 | -0/+77 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=710862 | ||||
* | vala: check a property has an accessor and/or a mutator | Alistair Thomas | 2016-11-08 | 3 | -0/+22 |
| | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=773956 | ||||
* | tests: More cases of FormatArg functions | Rico Tzschichholz | 2016-11-07 | 1 | -0/+26 |
| | |||||
* | codegen: Add G_GNUC_FORMAT attribute for FormatArg functions | Jürg Billeter | 2016-11-07 | 2 | -0/+8 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=774060 | ||||
* | tests: Enable -Werror=format-nonliteral | Jürg Billeter | 2016-11-07 | 1 | -1/+1 |
| | |||||
* | Fix broken destruction of null-terminated arrays in async data structs | Richard Wiedenhöft | 2016-11-07 | 2 | -0/+23 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=762819 | ||||
* | codegen: Allow underscores in type parameter names | Severin Heiniger | 2016-11-03 | 2 | -0/+13 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=644938 | ||||
* | tests: Enable -Werror=format-security | Jürg Billeter | 2016-11-03 | 1 | -1/+1 |
| | |||||
* | Fix deprecation of class/struct fields | Rico Tzschichholz | 2016-11-03 | 2 | -0/+33 |
| | | | | | Respect the "deprecated" attributes given to class and struct fields, while actually adding G_GNUC_DEPRECATED to their declaration. | ||||
* | Check printf arguments of object creation expressions | Jürg Billeter | 2016-11-01 | 4 | -0/+16 |
| | |||||
* | codegen: Only emit notify signals if the value actually changed | Evan Nemerson | 2016-10-25 | 2 | -0/+54 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=631267 | ||||
* | Add explicit copy method for arrays | Luca Bruno | 2016-10-20 | 1 | -0/+8 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=650663 |