summaryrefslogtreecommitdiff
path: root/vala/valausedattr.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2016-11-01 17:48:15 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2016-11-03 20:47:31 +0100
commita61dd80e4c4d25fe855692a0ddfded91999789bc (patch)
tree39b5c2c559f31110704be05e7576d9cfe7370609 /vala/valausedattr.vala
parent7a5ff26e941f79e85d0bcba37b3c9ec7322e39c5 (diff)
downloadvala-a61dd80e4c4d25fe855692a0ddfded91999789bc.tar.gz
Support [FormatArg] attribute for parameters
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.
Diffstat (limited to 'vala/valausedattr.vala')
-rw-r--r--vala/valausedattr.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/vala/valausedattr.vala b/vala/valausedattr.vala
index 14fe1d20b..2e5840d55 100644
--- a/vala/valausedattr.vala
+++ b/vala/valausedattr.vala
@@ -68,6 +68,7 @@ public class Vala.UsedAttr : CodeVisitor {
"SimpleType", "",
"PrintfFormat", "",
"ScanfFormat", "",
+ "FormatArg", "",
"GtkChild", "name", "internal", "",
"GtkTemplate", "ui", "",