summaryrefslogtreecommitdiff
path: root/vala/valausedattr.vala
Commit message (Collapse)AuthorAgeFilesLines
* vala: Add [Profile] as known attribute for methodsRico Tzschichholz2021-11-241-0/+1
|
* vala: Check for unused attributes unconditionallyRico Tzschichholz2021-03-161-11/+8
|
* codegen: Add CCode.type_get_function and get_ccode_type_get_function()Rico Tzschichholz2021-01-301-1/+1
| | | | | Allow to overide the macro name, and join get_ccode_class_get_function () and get_ccode_interface_get_function().
* Add support for 'opaque' compact classesSimon Werbeck2021-01-191-1/+1
| | | | | | | | | | | | | | This change intruduces a new attribute switch [Compact (opaque = true)] which allows to completely hide the implementation of a compact class. This is especially useful for libraries when maintaining a stable abi. An 'opaque' compact class exposes no struct definition in the generated c header, only a typedef is provided. As such, certain requirements apply for members of such classes: - Access to instance fields must be either private or internal. - No abstract/virtual methods or properties are allowed. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1129
* vala: Make use of new printf-like API of Report.*()Rico Tzschichholz2020-10-261-2/+2
|
* vala: Write "Source" attribute in fast-vapi modeRico Tzschichholz2019-04-181-0/+2
| | | | | | This enables users to reference to the original source of a symbol. [Source (filename = "...", line = ..., column = ...)]
* codegen: Add "destroy_notify_cname" CCode attributeRico Tzschichholz2019-01-141-1/+1
| | | | and the corresponding helper get_delegate_target_destroy_notify_cname()
* codegen: Add "error_pos" CCode attribute and use it as neededRico Tzschichholz2019-01-101-1/+1
| | | | | | | This makes it possible to use non-standard error parameter positions within the vala source. Fixes https://gitlab.gnome.org/GNOME/vala/issues/728
* codegen: Handle non-default AsyncResult parameter positionRico Tzschichholz2018-12-111-1/+1
| | | | | | | | | | | Unfortunately gdbus-codegen puts the AsyncResult parameter after possible out-parameters therefore there is an "async_result_pos" attribute required to handle this correctly. Vala supposely follows the common practice to put the AsyncResult before out-parameters by default. Fixes https://gitlab.gnome.org/GNOME/vala/issues/709
* Add support for SingleInstance attribute for GObject classesRico Tzschichholz2018-10-171-0/+1
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/647
* girwriter: Add boolean GIR visible attribute to allow skipping symbolsRico Tzschichholz2018-07-051-1/+1
| | | | | | | "visibility = false" will be transformed into introspectable="0" in the resulting GIR file. Attributed namespaces will be skipped altogether.
* codegen: Let methods return -1 on error by default if possibleRico Tzschichholz2018-07-051-1/+1
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/526
* vala: Support anonymous definitions of delegates in bindingsRico Tzschichholz2018-04-141-1/+1
| | | | | | | | | | | If a library header does not include a defintion for a delegate then bindings can use the CCode annotation "has_typedef = false" which will force creation of typedef in generated source-file. [CCode (has_typedef = false)] public delegate void Func (); https://bugzilla.gnome.org/show_bug.cgi?id=794920
* Drop trailing spaces/tabsRico Tzschichholz2018-03-271-6/+6
| | | | It was about time to do this.
* codegen: Add support for feature test macrosDr. Michael Lauer2018-02-201-1/+1
| | | | | | | | | This adds new CCode string attribute 'feature_test_macro = "VALUE"'. Such values will be added before the headers section as '#define VALUE'. https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html https://bugzilla.gnome.org/show_bug.cgi?id=793444
* codegen: Add boolean "use_inplace" ccode-attribute for methodsRico Tzschichholz2017-11-221-1/+2
| | | | | | This can be use to avoid temp-variables for an expanding macro. https://bugzilla.gnome.org/show_bug.cgi?id=750840
* vala: Update list of used attributesRico Tzschichholz2017-09-091-6/+12
|
* Add "finish_instance" CCode attributeFlorian Brosch2017-03-061-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710103
* girwriter: Add fullname GIR attribute, and set fullname of GObject.TypeYu Feng2016-12-051-1/+1
| | | | | | | | | | | | In gir files generated by Vala, members of type GType is referenced with name "GObject.Type", but GObject-introspection expect it to be "GType". While there was no way to override the fully qualified GIR name of a member, this patch adds [GIR (fullname = "GType")] to fix the mismatch for GObject.Type. https://bugzilla.gnome.org/show_bug.cgi?id=775591
* Support [FormatArg] attribute for parametersJürg Billeter2016-11-031-0/+1
| | | | | | | 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.
* codegen: Trigger deprecation warning for NoArrayLength from a better placeRico Tzschichholz2016-10-111-0/+1
|
* Add CCode finish_vfunc_name to used attrsRico Tzschichholz2016-09-291-1/+1
|
* D-Bus: Support DBus.timeout attribute for client methodsMichele Dionisio2016-09-171-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=737913
* Always check unused attrs. Add [Version] to known attrsLuca Bruno2016-01-301-1/+2
|
* Add DBus visible to used attrsLuca Bruno2014-12-221-1/+1
|
* Support concrete accessors for abstract properties in bindingsLuca Bruno2014-12-221-0/+1
| | | | Fixes bug 730744
* Add CCode notify to known attrsLuca Bruno2014-12-131-1/+1
|
* Add Description to known attrsLuca Bruno2014-12-091-0/+1
|
* Add Signal to known attrsLuca Bruno2014-12-091-0/+1
|
* Add used DBus attribute and fix UnixMountEntry lower_case_cprefixLuca Bruno2014-12-061-0/+2
| | | | Fixes bug 741089
* Add other missing CCode arguments, NoWrapper and DestroysInstanceLuca Bruno2014-12-041-1/+4
|
* Add more used attributesLuca Bruno2014-12-041-0/+6
| | | | Fixes bug 741089
* Add ScanfFormat to used attributesLuca Bruno2014-12-031-0/+1
|
* Add more default attributesLuca Bruno2014-12-031-2/+5
|
* Fix recent syntax errors with older valacLuca Bruno2014-12-031-2/+2
|
* Warn about unused attributesLuca Bruno2014-12-031-0/+186
This may not be the best approach, but it's a start