summaryrefslogtreecommitdiff
path: root/vala
Commit message (Collapse)AuthorAgeFilesLines
* valaparser: Don't allow to declare array parameters with "type array[]"Rico Tzschichholz2016-12-021-1/+6
| | | | | | It is required to have a fixed length like "type array[3]". https://bugzilla.gnome.org/show_bug.cgi?id=641308
* methodcall: Don't try to remove N_/NC_ while they are properly handled in CRico Tzschichholz2016-11-301-19/+0
| | | | | | | This avoids messing around with the ownership and properly invokes copying if needed. https://bugzilla.gnome.org/show_bug.cgi?id=642350
* girparser: No support for fixed-size array as return-valueRico Tzschichholz2016-11-241-0/+8
| | | | | Due to the special syntax for those arrays it lead to omitting the array-qualifier and therefore generating broken bindings.
* Move "blurb", "nick" and "notify" into PropertyRico Tzschichholz2016-11-111-0/+45
|
* Don't initilize local variable if not requestedRico Tzschichholz2016-11-101-1/+1
|
* codegen: Remove unused create_local()Rico Tzschichholz2016-11-101-2/+0
|
* Revert "Always initialize temp variables to fix fatal warnings of GCC 4.8"Rico Tzschichholz2016-11-101-1/+0
| | | | This reverts commit eeb861dfba147bc37cfc7a9c22e1b582cf20ff31.
* vala: Clean up PropertyAccessor APIRico Tzschichholz2016-11-081-6/+6
|
* vala: check a property has an accessor and/or a mutatorAlistair Thomas2016-11-081-0/+6
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=773956
* vala: Pass through the format-literalRico Tzschichholz2016-11-072-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=774060
* method: Print encountered type if return types mismatchTimm Bäder2016-11-051-1/+1
| | | | | | | If a class overrides a method of a base type, print both the encountered return type and the return type expected by the base class. https://bugzilla.gnome.org/show_bug.cgi?id=769501
* Do not use non-literal printf format stringsJürg Billeter2016-11-032-5/+5
|
* Add [FormatArg] attribute to Parser.get_errorJürg Billeter2016-11-032-2/+2
|
* Support [FormatArg] attribute for parametersJürg Billeter2016-11-036-4/+46
| | | | | | | This attribute specifies that the method takes and returns a printf or scanf format string without modifying the order or types of expected arguments, e.g., to translate the format string. This allows the compiler to check the printf/scanf arguments.
* Fix deprecation of class/struct fieldsRico Tzschichholz2016-11-031-1/+1
| | | | | Respect the "deprecated" attributes given to class and struct fields, while actually adding G_GNUC_DEPRECATED to their declaration.
* parser: Cache current token if possibleRico Tzschichholz2016-11-012-14/+16
|
* Check printf arguments of object creation expressionsJürg Billeter2016-11-012-0/+38
|
* Don't create constant Regex on demand and use static field where possibleRico Tzschichholz2016-11-012-4/+7
|
* writer: Some string optimizationsRico Tzschichholz2016-11-011-15/+10
|
* field: Drop unused methodsRico Tzschichholz2016-11-011-8/+0
|
* vala: Add missing TokeType cases for to_string()Rico Tzschichholz2016-11-012-0/+10
|
* Avoid some string copyingRico Tzschichholz2016-11-011-3/+3
|
* vala: Avoid superfluous string copyingRico Tzschichholz2016-10-302-2/+2
|
* Use more "...".printf to concat stringsRico Tzschichholz2016-10-302-8/+8
|
* Add explicit copy method for arraysLuca Bruno2016-10-203-0/+55
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=650663
* girparser: Avoid fatal handling of nameless unionsRico Tzschichholz2016-10-181-1/+27
|
* valaparser: Allow casts of pointer expressions without enclosing parensRico Tzschichholz2016-10-171-0/+10
| | | | | | Based on patch by Geert Jordaens <geert.jordaens@telenet.be> https://bugzilla.gnome.org/show_bug.cgi?id=590641
* girparser: Use type_id information from gir if not already overriddenRico Tzschichholz2016-10-151-26/+33
|
* girparser: More complete parsing of field informationRico Tzschichholz2016-10-151-4/+15
| | | | | | Especially to retrieve available array-length information. https://bugzilla.gnome.org/show_bug.cgi?id=772902
* Warn about mismatched parameter direction before mismatched typeSam Thursfield2016-10-131-11/+14
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=664049
* Support [HasEmitter] for vala sourcesSimon Werbeck2016-10-121-0/+36
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681356
* genie: Add empty file check to read_token ()Alistair Thomas2016-10-121-1/+5
| | | | | | | Vala.SourceFile uses GLib.MappedFile.get_contents () to read a source file. This can return null if the file is empty. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=633083
* codegen: Trigger deprecation warning for NoArrayLength from a better placeRico Tzschichholz2016-10-111-0/+1
|
* Make use of Callable to replace some if-else-treesRico Tzschichholz2016-10-111-24/+7
|
* vala: Add common Callable interface for Method, Delegate and Signal.Luca Bruno2016-10-115-3/+49
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=639124
* Ignore --thread commandline option and drop all gthread-2.0 referencesRico Tzschichholz2016-10-101-5/+0
| | | | With vala 0.32 there was no further support for glib < 2.32.
* Deny access to protected constructorsRico Tzschichholz2016-10-081-3/+7
| | | | | | Based on patch by Timm Bäder <mail@baedert.org> https://bugzilla.gnome.org/show_bug.cgi?id=760031
* Add missing generic-type arguments of delegatesRico Tzschichholz2016-10-082-7/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=772204
* vala: Check accessibility of default argumentsSimon Werbeck2016-10-0618-0/+118
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=648030
* Do not report internal error for invalid code with nested genericsJürg Billeter2016-10-061-4/+4
| | | | Reported-by: Matthias Berndt <matthias_berndt@gmx.de>
* vala: Check type arguments in DataType.equalsMatthias Berndt2016-10-061-0/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641418
* Add CCode finish_vfunc_name to used attrsRico Tzschichholz2016-09-291-1/+1
|
* Fix type checking when using generics in combination with subtypingMatthias Berndt2016-09-282-17/+14
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=615830
* Fix type parameter check for overriding generic methodsJürg Billeter2016-09-266-25/+45
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=771964 Reported-by: Sebastian Reichel <sre@ring0.de>
* Add support for the \v escape charactorRico Tzschichholz2016-09-201-0/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=664689
* Check for assignment to constantSimon Werbeck2016-09-181-0/+6
| | | | | | | This simply checks if the left-hand side is a constant and if so raises an error. Fixes bug 771626
* codegen: Add support for finish_vfunc_name in CCodeRico Tzschichholz2016-09-181-1/+6
|
* Revert "valainterface: Don't allow 'type' properties"Rico Tzschichholz2016-09-171-5/+0
| | | | | | Breaks build of udisks2.vapi This reverts commit 8e4cdfd6488c467a3028831e8d6183286c4f399d.
* valainterface: Don't allow 'type' propertiesTimm Bäder2016-09-171-0/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723258
* D-Bus: Support DBus.timeout attribute for client methodsMichele Dionisio2016-09-171-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=737913