Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests: Rename colliding test cases to avoid conflicts | Rico Tzschichholz | 2021-11-26 | 2 | -0/+68 |
| | |||||
* | tests: Add [Profile] method test to increase coverage | Rico Tzschichholz | 2021-11-24 | 2 | -0/+133 |
| | |||||
* | codegen: Emit constants without initializer list in defines section | Rico Tzschichholz | 2021-11-07 | 1 | -1/+1 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/440 | ||||
* | vala: Add support for nested methods (local functions) | Rico Tzschichholz | 2021-10-30 | 2 | -0/+237 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1232 | ||||
* | vala: Parameter following ellipsis parameter is not allowed | wxx | 2021-10-14 | 1 | -0/+7 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1237 | ||||
* | vala: Multi-dimensional params-array not allowed | Rico Tzschichholz | 2021-09-22 | 1 | -0/+7 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1230 | ||||
* | 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 | 70 | -0/+23071 |
| | |||||
* | vala: Parameter following params-array parameter is not allowed | Rico Tzschichholz | 2021-05-26 | 1 | -0/+7 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1183 | ||||
* | codegen: Free intermediate temp-variables of postcondition expression | Rico Tzschichholz | 2021-03-09 | 2 | -0/+25 |
| | | | | | | and not clearing "temp_ref_values" caused invalid references later. Fixes https://gitlab.gnome.org/GNOME/vala/issues/80 | ||||
* | codegen: "_first_array" parameter for params-array is variadic too | Rico Tzschichholz | 2021-03-04 | 1 | -0/+57 |
| | | | | | Not following this resulted in mismatching signature assumptions between caller and callee if the callable throws an error. | ||||
* | tests: Don't leak array if length is -1 | Rico Tzschichholz | 2021-02-04 | 1 | -0/+3 |
| | | | | Found by -fsanitize=address | ||||
* | codegen: Handle NoWrapper attribute of interface methods on caller side | Rico Tzschichholz | 2021-01-30 | 1 | -0/+15 |
| | |||||
* | vala: NoWrapper methods must be declared abstract or virtual | Rico Tzschichholz | 2021-01-30 | 1 | -0/+10 |
| | |||||
* | Add further support for params arrays in constructors | Rico Tzschichholz | 2021-01-28 | 1 | -0/+45 |
| | | | | | | In addition to 98ab3da89640b8b8a6c67044b4df1194672774bb See https://gitlab.gnome.org/GNOME/vala/issues/128 | ||||
* | vala: Avoid critical when trying to use symbol_reference of ElementAccess | Ole André Vadla Ravnås | 2021-01-22 | 1 | -0/+10 |
| | | | | Regression of 6e7be51cb5455e9c5c721d4ba5121a6ab04673dd | ||||
* | codegen: Don't leak memory of already assigned out-parameter on error | Rico Tzschichholz | 2020-12-31 | 1 | -0/+39 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1123 | ||||
* | tests: Add more "delegate" tests to increase coverage | Rico Tzschichholz | 2020-11-14 | 2 | -0/+51 |
| | |||||
* | codegen: Update outdated array _size_ variable of captured local-variable | Rico Tzschichholz | 2020-10-22 | 1 | -0/+18 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1090 | ||||
* | codegen: Check param for null before using it | Rico Tzschichholz | 2020-07-22 | 1 | -0/+14 |
| | | | | | | | | | | Regression of 5490b0b21a4089d803d51c91311430d60d266f7b This caused criticals like: vala_get_ccode_array_length: assertion 'node != NULL' failed See https://gitlab.gnome.org/GNOME/vala/issues/929 | ||||
* | tests: Fix "methods/extern" test with -Werror=address and gcc 5.4.0 | Rico Tzschichholz | 2020-07-17 | 1 | -3/+3 |
| | |||||
* | tests: Add "named argument" test to increase coverage | Rico Tzschichholz | 2020-06-26 | 1 | -0/+22 |
| | |||||
* | vala: Improve parameter check of "get" method meant to be used by foreach | Rico Tzschichholz | 2020-06-26 | 1 | -0/+45 |
| | | | | | | | The index-based iteration requires the "get" method to take one integer compatible parameter. Otherwise continue checking other options. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1017 | ||||
* | vala: Use correct value-type for ArrayCreationExpression used as argument | Rico Tzschichholz | 2020-06-15 | 1 | -0/+20 |
| | | | | | | Copy fixed_length and inline_allocated attributes from formal-target-type. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1009 | ||||
* | vala: params-array parameter is not allowed in abstract/virtual method | Rico Tzschichholz | 2020-05-05 | 1 | -0/+8 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/985 | ||||
* | tests: Drop usage of "--main main" and avoid ambigious entry-points | Rico Tzschichholz | 2020-03-22 | 1 | -5/+0 |
| | |||||
* | codegen: Improve handling of "array_length_type" attribute | Rico Tzschichholz | 2020-03-17 | 1 | -0/+156 |
| | | | | | | This affects methods, parameters, field and properties. Fixes https://gitlab.gnome.org/GNOME/vala/issues/938 | ||||
* | codegen: Correctly access captured parameter in precondition of method | Rico Tzschichholz | 2020-03-13 | 1 | -0/+35 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/144 | ||||
* | codegen: Emit postconditions before free'ing local variables | Rico Tzschichholz | 2020-03-13 | 1 | -0/+51 |
| | | | | It was possible to cause segmentation-faults or use-after-free errors. | ||||
* | codegen: Reset outdated array _size_ variable after use as ref parameter | Rico Tzschichholz | 2020-03-12 | 1 | -0/+11 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/929 | ||||
* | codegen: Actually respect "delegate_target" attribute of method/parameter | Rico Tzschichholz | 2020-03-08 | 1 | -0/+105 |
| | |||||
* | Add further support for params arrays | Rico Tzschichholz | 2020-01-15 | 1 | -0/+42 |
| | | | | | | | | | | | This brings support for params-arrays in normal vala source code. The parameter is a null-terminated array which is represented as variadic parameter in generated C. This feature is considered experimental for now. Fixes https://gitlab.gnome.org/GNOME/vala/issues/128 | ||||
* | codegen: Fix precondition in creation method of structs | Rico Tzschichholz | 2019-11-26 | 1 | -0/+27 |
| | |||||
* | vala: Add a basic parameter check for [Print] methods | Rico Tzschichholz | 2019-11-21 | 2 | -0/+51 |
| | | | | | | and add tests to increase coverage Introdruced with ea8cd97480a7a560cfd8ae3f060f63638b7d9de4 | ||||
* | tests: Extent "post-condition" virtual method test to increase coverage | Rico Tzschichholz | 2019-10-17 | 1 | -0/+20 |
| | |||||
* | codegen: Allow passing/retrieving any delegate to/from varargs parameter | Rico Tzschichholz | 2019-10-03 | 1 | -0/+30 |
| | | | | | | | | Initialize target/notify cvalues of delegate-typed arguments/result of inferred varargs parameters and va_list.arg() calls. Only the actual function pointer will be passed or retrieved. The target and destroy values will be null. | ||||
* | tests: Add dedicated "delegate without target through varargs" test | Rico Tzschichholz | 2019-10-03 | 1 | -0/+31 |
| | |||||
* | tests: Extent "post-condition" creation method test to increase coverage | Rico Tzschichholz | 2019-09-24 | 1 | -0/+6 |
| | |||||
* | tests: Extend "pre- and post-condition" test to increase coverage | Rico Tzschichholz | 2019-08-29 | 1 | -0/+20 |
| | |||||
* | vala: Init formal_target_type of ArrayCreationExpr from InitializerList | Rico Tzschichholz | 2019-08-16 | 1 | -0/+14 |
| | | | | | | | formal_target_type is expected to be set when inferring generic type parameters. Fixes https://gitlab.gnome.org/GNOME/vala/issues/835 | ||||
* | codegen: Real structs are allowed by simple generics and passed as reference | Rico Tzschichholz | 2019-07-08 | 2 | -0/+50 |
| | | | | | | Add the required pointer-indirections to fix invalid memory accesses. Fixes https://gitlab.gnome.org/GNOME/vala/issues/819 | ||||
* | codegen: Assign GValue result of function calls to temp-var on copy_value | Rico Tzschichholz | 2019-07-05 | 1 | -0/+15 |
| | | | | | | Regression of a94a28141e1f222d1da7e72bea4cd2d1e5242f41 Fixes https://gitlab.gnome.org/GNOME/vala/issues/819 | ||||
* | codegen: Don't write declaration of extern symbols with given header | Rico Tzschichholz | 2019-07-04 | 1 | -0/+31 |
| | | | | | | | | | | | The corresponding header will provide the declaration and therefore fix build with -Werror=redundant-decls. Set cheader_filename for implicit to_string() method of enums which is transformed into symbol calls from glib-object.h. This avoids the leak of an superfluous prototype of that method into the generated c code. Fixes https://gitlab.gnome.org/GNOME/vala/issues/745 | ||||
* | tests: Add "method ccode return-type" test to increase coverage | Rico Tzschichholz | 2019-03-10 | 1 | -0/+14 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=699956 | ||||
* | tests: Extent "post-condition" method test to increase coverage | Rico Tzschichholz | 2019-03-01 | 1 | -0/+16 |
| | |||||
* | codegen: Use temp-vars for ellipsis out-arguments to fix memory management | Rico Tzschichholz | 2018-12-26 | 1 | -0/+43 |
| | | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/722 | ||||
* | vala: Don't just guess and check for a matching base_interface_method too | Rico Tzschichholz | 2018-12-20 | 1 | -3/+7 |
| | | | | | | | | | | | | This fixes class with multiple interfaces which require implementations of methods with conflicting naming while the explicit interface-type reference is not present yet. Extend the present test-case for runtime checking. This will still silently connect matching base-class methods as before as introduced in e1a3ff9470763e7c6ff5a887036390bd418f4e46 Fixes https://gitlab.gnome.org/GNOME/vala/issues/548 | ||||
* | vala: Copy CCode instance_pos argument from virtual/abstract base methods | Rico Tzschichholz | 2018-11-08 | 1 | -0/+38 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=540483 | ||||
* | tests: Add more "method" tests to increase coverage | Rico Tzschichholz | 2018-08-01 | 1 | -0/+19 |
| | |||||
* | tests: Add more invalid class tests to increase coverage | Rico Tzschichholz | 2018-06-13 | 1 | -1/+6 |
| |