summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* [annotationparser] Allow param less closuresJohan Dahlin2010-09-243-1/+10
| | | | | Allow closures without annotations to avoid having to duplicate the parameter name.
* Add more array warnings + testsJohan Dahlin2010-09-242-0/+45
|
* [annotationparser] Validate the rest of the annotationsJohan Dahlin2010-09-244-12/+64
| | | | | All option annotations, which uses parenthesis are now properly validated for number of values they expect
* Fix a couple of broken annotationsJohan Dahlin2010-09-242-2/+2
|
* [warningtester] Prettify error outputJohan Dahlin2010-09-231-2/+6
|
* Add scope annotation value warningsJohan Dahlin2010-09-231-2/+22
| | | | | Refactor and improve the warning messages for the transfer warnings as well
* Make the invalid annotation warning a bit prettierJohan Dahlin2010-09-231-1/+1
|
* Validate transfer annnotationsJohan Dahlin2010-09-232-0/+13
|
* [annotationparser] Make it a bit stricterJohan Dahlin2010-09-231-1/+8
| | | | | | | Don't parse annotations on lines such as: '@param: This is a foo (eg, bar) else: x' Where there's content between the last ) and the :.
* [scanner] Warn for invalid scanner annotationsJohan Dahlin2010-09-234-7/+16
| | | | | | Warn for invalid annotations. Change so that custom attributes have to use the annotation keyword.
* tests: Look for uninstalled .girsColin Walters2010-09-222-1/+4
| | | | | | | Add $(top_builddir)/gir to the include path, like we do in Makefile.introspection. https://bugzilla.gnome.org/show_bug.cgi?id=630160
* [maintransformer] Improve type resolution warningsJohan Dahlin2010-09-201-1/+1
| | | | | Try a bit harder to find the block where the type resolving errors originate from
* [IntrospectablePass] Improve error messageJohan Dahlin2010-09-202-1/+9
| | | | | Send in block postions so we can get accurate line numbers for warnings emitted from this class.
* Pass in blocks to IntrospectablePassJohan Dahlin2010-09-201-1/+1
|
* [scanner] Support private/public directivesJohan Dahlin2010-09-202-0/+37
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=594125
* Include proper line number for scope warningJohan Dahlin2010-09-191-1/+1
|
* Include proper filename and lineno in doc warningJohan Dahlin2010-09-191-3/+3
|
* Make Full the default transfer for returned foreign structs.Tomeu Vizoso2010-09-173-0/+15
| | | | | | | For that we also need to read the annotations for foreign structs before guessing the transfer mode of return values. https://bugzilla.gnome.org/show_bug.cgi?id=629188
* [maintransformer] Do not warn for vararg docsJohan Dahlin2010-09-161-0/+10
| | | | | | Allow varargs "..." to be documented without warning https://bugzilla.gnome.org/show_bug.cgi?id=629759
* Add a warning for unresolved typesJohan Dahlin2010-09-152-0/+12
| | | | | | | Warn when using an annotation which will end up as unresolved. https://bugzilla.gnome.org/show_bug.cgi?id=629004
* Add a parameter mismatch warningJohan Dahlin2010-09-143-0/+31
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=629708
* [warningtester] Do not sort expected warningsJohan Dahlin2010-09-142-2/+2
| | | | Instead just take them in the order they are in the file
* [warningtester] Invert expected/actualJohan Dahlin2010-09-141-1/+1
| | | | It makes it a little less confusing reading the error messages
* scanner: Add c_type for callbacksColin Walters2010-09-142-0/+26
| | | | | | | We weren't doing this consistently, which broke nsname != cprefix cases. https://bugzilla.gnome.org/show_bug.cgi?id=629683
* tests: Don't build regress if we don't HAVE_CAIROColin Walters2010-09-141-1/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=629359
* scanner: Parse annotations for typedefsColin Walters2010-09-142-0/+23
| | | | | | | | * Explicitly check for ast.Alias in annotation pass * Add "generic" attribs handling for aliases like docs, introspectable=0 etc. https://bugzilla.gnome.org/show_bug.cgi?id=629668
* scanner: Handle G_TYPE_HASH_TABLEColin Walters2010-09-142-0/+36
| | | | | Our Type creation from GType names didn't know how to handle the GObject boxeds for GHashTable, GArray etc.
* scanner: Consistently use ctype for documentation blocksColin Walters2010-09-131-1/+1
| | | | | | | | The "c_name" is really a fallback; use "ctype" if available which matches the C structure name. This fixes scanning at least TelepathyGLib where the namespace is different from the C prefix "Tp".
* scanner: Add a test for G_TYPE_ARRAY and (element-type uint)Colin Walters2010-09-132-0/+41
| | | | Similar to TelepathyGlib.
* [test] Fix a leftover renameJohan Dahlin2010-09-131-1/+1
| | | | The gir name got renamed, update the rules to reflect that
* [test] Add typelib/girs to CLEANFILESJohan Dahlin2010-09-131-2/+7
| | | | So they are removed during uninstall
* [test] Use INTROSPECTION_SCANNERJohan Dahlin2010-09-131-1/+1
| | | | Since it sets the PYTHONPATH properly
* Do not use install-data-localJohan Dahlin2010-09-132-9/+10
| | | | Instead use xxxdir + xxx_DATA which uninstalls correctly
* [tests] Add to EXTRA_DISTJohan Dahlin2010-09-131-1/+1
|
* [tests] Remove left over variableJohan Dahlin2010-09-131-1/+1
| | | | So make dist passes again
* build: Also use $DESTDIR for regress.[ch]Colin Walters2010-09-101-1/+1
|
* build: Use $DESTDIR in install-data-localColin Walters2010-09-091-1/+1
|
* scanner: Skip functions with leading '_'Colin Walters2010-09-091-0/+2
| | | | | Multiple modules have '_' prefixed symbols in "public" headers meaning "don't use this in your app".
* scanner: Mark '_'-prefixed fields as introspectable=0Colin Walters2010-09-092-0/+18
| | | | | Typically these contain reserved callbacks; in any case we take a leading underscore to mean 'private'.
* Foreign structs can have constructorsTomeu Vizoso2010-09-093-0/+13
|
* scanner: Kill glibastColin Walters2010-09-081-0/+2
| | | | | | | | | | | | It was a stupid abstraction split, we only support GObject. * Clean up how we handle c:type - we only set it if we've actually seen a corresponding structure. * Add a warning if we don't see the structure typedef for an interface, since that's pretty bogus. (And fix regress.h to have one) * Rename the "type_name" attribute internally to "gtype_name" for clarity.
* scanner: Don't mark as constructors things that are more obviously methodsColin Walters2010-09-083-0/+72
| | | | | If the first parameter matches the origin, don't scan as a constructor. Happened in practice with meta_screen_append_new_workspace from mutter.
* scanner: Don't attempt to pair methods/constructors with foreign namespacesColin Walters2010-09-082-0/+15
| | | | See test case, hit in practice in gnome-shell.
* Handle casing better for constantsOwen W. Taylor2010-09-073-1/+20
| | | | | | | | | | | | | | | | | Instead of handling constants by lower-casing them, stripping the lower-case prefix and upper-casing them again, leave them in the original case and check against upper-cased versions of namespace.symbol_prefixes. Wwe detect what version to test against by looking at the first character of the identifier, so we assume that --symbol-prefix options are always in lowercase. If that needs to be relaxed, then we'll have to check all symbols against both sets of prefixes. Add tests for constants to Regress.h and fix tests/warn/unresolved-type.h for a warning message that improved with this change. https://bugzilla.gnome.org/show_bug.cgi?id=629007
* scanner: Automatically skip callables which contain a skipped nodeColin Walters2010-09-072-0/+46
| | | | | For legacy library author convenience, propagate (skip) on e.g. structures to all callables which use them.
* tests: Update expected gir for previous commitsColin Walters2010-09-072-32/+40
|
* trick scanner into marking a symbol as a function instead of a methodJohn (J5) Palmieri2010-09-072-3/+3
|
* Revert "[scanner] Revert static method pairing"Johan Dahlin2010-09-072-119/+116
| | | | This reverts commit 144cb10d51888a9565721088d2b61794468742e9.
* [scanner] Revert static method pairingJohan Dahlin2010-09-062-116/+119
| | | | | Static method pairing changes the API and should be futher discussed in https://bugzilla.gnome.org/show_bug.cgi?id=572408
* [tests] Link libfoo against girepositoryFunda Wang2010-09-061-0/+1
| | | | | | To avoid undefined references to gi_cclosure_marshal_generic Fixes https://bugzilla.gnome.org/show_bug.cgi?id=625995