summaryrefslogtreecommitdiff
path: root/giscanner
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace TAG_TRANSFER with OPT_TRANSFERJohan Dahlin2010-09-231-3/+3
|
* [annotationparser] Make it a bit stricterJohan Dahlin2010-09-231-1/+12
| | | | | | | 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-232-16/+79
| | | | | | Warn for invalid annotations. Change so that custom attributes have to use the annotation keyword.
* Revert "[transformer] Ignore hidden symbols"Johan Dahlin2010-09-211-2/+3
| | | | This reverts commit ad4934ca1d44285ab46d6e419d1788b886e48d82.
* [transformer] Ignore hidden symbolsJohan Dahlin2010-09-201-3/+2
| | | | Do not warn about hidden symbols.
* [IntrospectablePass] Suppress callback/vfunction warningsJohan Dahlin2010-09-201-0/+5
| | | | | Suppress a callback and virtual function warnings until there's a clear way to document them.
* [Message] Implement Position.__repr__Johan Dahlin2010-09-201-0/+6
|
* [maintransformer] Improve type resolution warningsJohan Dahlin2010-09-201-13/+36
| | | | | Try a bit harder to find the block where the type resolving errors originate from
* [IntrospectablePass] Improve error messageJohan Dahlin2010-09-201-2/+6
| | | | | Send in block postions so we can get accurate line numbers for warnings emitted from this class.
* Pass in blocks to IntrospectablePassJohan Dahlin2010-09-202-2/+3
|
* [message] Add apositions argument to a few functionsJohan Dahlin2010-09-201-6/+8
|
* [scanner] Support private/public directivesJohan Dahlin2010-09-209-5/+46
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=594125
* [scanner] Add a Position classJohan Dahlin2010-09-205-63/+72
| | | | | | Add a position class which will make it easier to send filename/line/column information to the message class.
* [scanner] Only store types in cache storeJohan Dahlin2010-09-203-19/+45
| | | | | | | | | | | | Only store types that can be referenced in the cache store this reduces the size of the serialized Gtk-3.0.gir in the store from 5.7M to 366k on my system. It also reduces the time it takes to create a gir in gtksourceview by 35% and the time to run the warnings test by more than 50% This also disables the cache for passthrough mode since it needs access to the whole serialized tree.
* Remove leftover, type is set aboveJohan Dahlin2010-09-201-1/+0
|
* [maintransformer] Make warning more robustJohan Dahlin2010-09-201-2/+2
| | | | | | | Instead of assuming that a parent node is always passed in, make sure to handle that case. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629959
* [message] Set file_positions to an empty listJohan Dahlin2010-09-201-1/+1
| | | | | | So we can always pass it into len() without breaking https://bugzilla.gnome.org/show_bug.cgi?id=629959
* Include proper line number for scope warningJohan Dahlin2010-09-191-3/+4
|
* [sourcescanner] Rewrite linemarks parserJohan Dahlin2010-09-192-50/+25
| | | | | Rewrite the pre-processor linemark parser so we end up with accurate filenames and linenumbers.
* Include proper filename and lineno in doc warningJohan Dahlin2010-09-191-1/+3
|
* [annotationparser] Preserve line numbersJohan Dahlin2010-09-192-18/+36
| | | | | | | | Make sure that the linenumbers of the documentation blocks and tags are preserved and accurate so they can be used in warning messages. Also: * Rename Options to DocOptions for consistency * Add a reference to the docblock a tag and an option belong to
* Save the line number of a source commentJohan Dahlin2010-09-195-11/+40
|
* [maintransformer] Do not warn for returns and varargsJohan Dahlin2010-09-181-1/+1
| | | | | Add a few more special case parameters which we will not warn if they don't exist as a parameter
* Set c_symbol_prefix in the GVariant special caseTomeu Vizoso2010-09-171-0/+1
|
* Make Full the default transfer for returned foreign structs.Tomeu Vizoso2010-09-171-4/+16
| | | | | | | 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/+3
| | | | | | Allow varargs "..." to be documented without warning https://bugzilla.gnome.org/show_bug.cgi?id=629759
* Add a warning for unresolved typesJohan Dahlin2010-09-151-6/+15
| | | | | | | Warn when using an annotation which will end up as unresolved. https://bugzilla.gnome.org/show_bug.cgi?id=629004
* scanner: Add temporary workaround for GStreamerColin Walters2010-09-153-0/+8
| | | | | | | Also document/bug link the other workarounds; just made up a convention for ## WORKAROUND ## See: https://bugzilla.gnome.org/show_bug.cgi?id=550616
* Add a parameter mismatch warningJohan Dahlin2010-09-143-1/+28
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=629708
* scanner: Add c_type for callbacksColin Walters2010-09-142-2/+3
| | | | | | | We weren't doing this consistently, which broke nsname != cprefix cases. https://bugzilla.gnome.org/show_bug.cgi?id=629683
* scanner: Parse annotations for typedefsColin Walters2010-09-143-1/+10
| | | | | | | | * 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-6/+12
| | | | | 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-11/+22
| | | | | | | | 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 GType for GVariantColin Walters2010-09-131-5/+10
| | | | This needs a manual override since GVariant is a fundamental.
* scanner: Bomb out more obviously if a namespace contains class name = namespaceColin Walters2010-09-131-0/+6
| | | | | If you pass --namespace=FooBar, and have a GObject named FooBar, we'd assert. Give the user an obvious error message.
* scanner: Readd support for --strip-prefixColin Walters2010-09-101-2/+3
| | | | | | We still really do want people to port to --identifier-prefix (and --symbol-prefix if necessary) because there's no ambiguity. Before the way we were casefolding was just a terrible mess.
* scanner: Allow gstreamer's GParamSpecMiniObject throughColin Walters2010-09-101-0/+13
| | | | | | | | It's wrong, but they can't change it now, so work around it here. https://bugzilla.gnome.org/show_bug.cgi?id=550616 https://bugzilla.gnome.org/show_bug.cgi?id=629306
* scanner: Skip functions with leading '_'Colin Walters2010-09-091-0/+3
| | | | | 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-091-0/+16
| | | | | Typically these contain reserved callbacks; in any case we take a leading underscore to mean 'private'.
* Foreign structs can have constructorsTomeu Vizoso2010-09-091-2/+2
|
* Use Node.ctype instead of Node.c_name when looking up comment blocksTomeu Vizoso2010-09-091-1/+4
| | | | | We were missing some annotation blocks for structs in typelibs with a name different to the C prefix.
* scanner: Unify parsing of compoundsColin Walters2010-09-091-38/+23
| | | | Avoids duplicate code.
* scanner: Fix style for previous commitColin Walters2010-09-091-3/+4
|
* Print helpful error message if --strip-prefix option is used.Saikiran Madugula2010-09-091-0/+7
|
* scanner: Kill glibastColin Walters2010-09-089-416/+355
| | | | | | | | | | | | 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-081-3/+10
| | | | | 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: Fix object hierarchy traversal in constructor scanningColin Walters2010-09-081-2/+2
| | | | We weren't properly hitting GObject.
* scanner: Don't attempt to pair methods/constructors with foreign namespacesColin Walters2010-09-081-0/+4
| | | | See test case, hit in practice in gnome-shell.
* Handle casing better for constantsOwen W. Taylor2010-09-073-14/+12
| | | | | | | | | | | | | | | | | 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-071-0/+19
| | | | | For legacy library author convenience, propagate (skip) on e.g. structures to all callables which use them.