Colin Walters [Thu, 30 Sep 2010 18:41:46 +0000 (14:41 -0400)]
configure: Change to bzip2 dist
We want to use bzip2 since that's what Fedora uses.
Colin Walters [Thu, 30 Sep 2010 18:38:26 +0000 (14:38 -0400)]
gir: Explicitly specify path to girepository so libtool can find it
This was broken with the last commit to remove a lot of the special
hacks to link to girepository in the dumper.
Colin Walters [Thu, 30 Sep 2010 18:07:03 +0000 (14:07 -0400)]
configure: Post release version bump
Colin Walters [Thu, 30 Sep 2010 14:44:12 +0000 (10:44 -0400)]
scanner: Don't link to -lgirepository when dumping
This helps us avoid a problematic case where in say jhbuild, using
a system (/usr/lib) glib, adding in -l girepository-1.0 will inject
-L /path/to/builddir, when we don't want that.
https://bugzilla.gnome.org/show_bug.cgi?id=630342
Colin Walters [Thu, 30 Sep 2010 13:10:30 +0000 (09:10 -0400)]
tests: Specify --libtool
Should switch to Makefile.introspection in the future.
Colin Walters [Wed, 29 Sep 2010 19:35:14 +0000 (15:35 -0400)]
glib-2.0.c: Fix invalid annotation syntax
Colin Walters [Wed, 29 Sep 2010 17:55:29 +0000 (13:55 -0400)]
scanner: Abort if we would be generating an empty namespace
Kind of silly we weren't doing this before; an empty namespace
is always going to be unintentional.
The "oops I forgot to include .h" files actually happened with
Clutter, but it wasn't caught since the build didn't obviously
fail.
Colin Walters [Wed, 29 Sep 2010 17:55:16 +0000 (13:55 -0400)]
scanner: Don't duplicate fatal message text
Colin Walters [Wed, 29 Sep 2010 18:00:31 +0000 (14:00 -0400)]
Fix tests
Tomeu Vizoso [Mon, 27 Sep 2010 09:52:55 +0000 (11:52 +0200)]
Actually do something about fundamentals when parsing a .gir
https://bugzilla.gnome.org/show_bug.cgi?id=630710
Colin Walters [Tue, 28 Sep 2010 23:20:39 +0000 (19:20 -0400)]
configure: Post-release version bump
Colin Walters [Tue, 28 Sep 2010 22:59:04 +0000 (18:59 -0400)]
annotationparser: Don't ignore annotations if there's a : in docs
The annotation parser changed to be stricter about annotation content,
but we introduced a regression where a : in the documentation would
wrongly cause the annotation to be skipped.
https://bugzilla.gnome.org/show_bug.cgi?id=630862
Colin Walters [Tue, 28 Sep 2010 22:16:53 +0000 (18:16 -0400)]
Fix --include-uninstalled
Somehow, this regressed; i have no idea how. We need to be
comparing Include objects, not string versus Include.
Colin Walters [Tue, 28 Sep 2010 16:53:21 +0000 (12:53 -0400)]
configure: post-release version bump
Pavel Holejsovsky [Tue, 28 Sep 2010 05:48:50 +0000 (07:48 +0200)]
Modify Regress impl so that inout args ignore (transfer) for 'in' direction.
... because for 'in' arguments only (transfer none) is correct.
https://bugzilla.gnome.org/show_bug.cgi?id=630788
Pavel Holejsovsky [Tue, 28 Sep 2010 05:36:32 +0000 (07:36 +0200)]
Remove Regress tests with input args with transfer full or container.
Declaring input parameters with transfer other than none is
discouraged, so don't do it in the testsuite.
https://bugzilla.gnome.org/show_bug.cgi?id=630788
Colin Walters [Mon, 27 Sep 2010 20:28:58 +0000 (16:28 -0400)]
regress: Remove busted tests
We don't want people making functions which take ownership of
arguments, so don't do it in the test suite.
Vincent Untz [Sun, 19 Sep 2010 22:33:50 +0000 (00:33 +0200)]
scanner: fail if cpp fails
https://bugzilla.gnome.org/show_bug.cgi?id=630101
Johan Dahlin [Sun, 26 Sep 2010 17:44:08 +0000 (14:44 -0300)]
[scanner] Make sure private enums are filtered
This is a follow-up to 60a8c75 which wasn't properly fixed.
Johan Dahlin [Sun, 26 Sep 2010 17:35:34 +0000 (14:35 -0300)]
Remove trailing whitespace
Johan Dahlin [Sun, 26 Sep 2010 15:47:01 +0000 (12:47 -0300)]
[scanner] Mark enum members as private in transformer
Remove enum members which follows /* <private> */ comments
inside the transformer instead of the sourcescanner itself.
Fixes a crash when creating the gir for GstBase.
Johan Dahlin [Sun, 26 Sep 2010 15:37:19 +0000 (12:37 -0300)]
[sourcescanner] Plug a couple of python leaks
There's no need to increase the reference count to
items passed into PyList_SetItem, it already steals a reference.
Johan Dahlin [Sat, 25 Sep 2010 16:05:49 +0000 (13:05 -0300)]
Do not use triple dashes
Pavel Holejsovsky [Sat, 25 Sep 2010 05:12:07 +0000 (07:12 +0200)]
Fix memory leak.
Johan Dahlin [Sat, 25 Sep 2010 14:31:24 +0000 (11:31 -0300)]
Re-generate
Johan Dahlin [Sat, 25 Sep 2010 14:30:54 +0000 (11:30 -0300)]
[annotationparser] Extract (skip) for doc blocks
Johan Dahlin [Fri, 24 Sep 2010 21:25:04 +0000 (18:25 -0300)]
Re-generate against HEAD of Gio
Johan Dahlin [Fri, 24 Sep 2010 21:23:19 +0000 (18:23 -0300)]
Setup message logger
Since the annotationparser may warn
Johan Dahlin [Fri, 24 Sep 2010 21:23:03 +0000 (18:23 -0300)]
Print out line numbers
But disable the printing by default since it messes up
the generated file. And fix a couple of typos
Johan Dahlin [Fri, 24 Sep 2010 21:22:35 +0000 (18:22 -0300)]
Use tag position if available
Johan Dahlin [Fri, 24 Sep 2010 19:30:42 +0000 (16:30 -0300)]
[girparser] Callbacks and VFunctions can be shadowed
Johan Dahlin [Fri, 24 Sep 2010 19:24:28 +0000 (16:24 -0300)]
Import GObject sources
Johan Dahlin [Fri, 24 Sep 2010 19:24:17 +0000 (16:24 -0300)]
Add a script to import gobject annotations
Johan Dahlin [Fri, 24 Sep 2010 18:52:55 +0000 (15:52 -0300)]
[gio] Improve source comments
Imports gtk-doc comment from gio. In the future comments
should go into the gio sources instead of here, wer're we will
use the annotation-tool to update the extracted sources.
Johan Dahlin [Fri, 24 Sep 2010 18:41:24 +0000 (15:41 -0300)]
Add a script to extract gio annotations
Johan Dahlin [Thu, 16 Sep 2010 03:37:49 +0000 (00:37 -0300)]
Add an annotation tool
Johan Dahlin [Thu, 16 Sep 2010 03:36:37 +0000 (00:36 -0300)]
[scannermain] Split scanner_main into smaller pieces
Split it into pieces that will be reusable across different
command line tools.
Johan Dahlin [Fri, 24 Sep 2010 16:50:17 +0000 (13:50 -0300)]
[annotationparser] Allow param less closures
Allow closures without annotations to avoid having
to duplicate the parameter name.
Johan Dahlin [Fri, 24 Sep 2010 13:53:12 +0000 (10:53 -0300)]
Add more array warnings + tests
Johan Dahlin [Fri, 24 Sep 2010 12:59:43 +0000 (09:59 -0300)]
[annotationparser] Validate the rest of the annotations
All option annotations, which uses parenthesis are now
properly validated for number of values they expect
Johan Dahlin [Fri, 24 Sep 2010 12:59:21 +0000 (09:59 -0300)]
[maintransformer] Add more warnings for element-type
Johan Dahlin [Fri, 24 Sep 2010 12:58:45 +0000 (09:58 -0300)]
[maintransformer] Use constants
Johan Dahlin [Fri, 24 Sep 2010 12:58:16 +0000 (09:58 -0300)]
Add a position to doc options
Johan Dahlin [Fri, 24 Sep 2010 12:57:35 +0000 (09:57 -0300)]
[annotation] Add constants for out options
Johan Dahlin [Fri, 24 Sep 2010 12:57:06 +0000 (09:57 -0300)]
[maintransformer] Use AssertionError
Johan Dahlin [Fri, 24 Sep 2010 02:21:57 +0000 (23:21 -0300)]
Fix a couple of broken annotations
Johan Dahlin [Thu, 23 Sep 2010 22:11:59 +0000 (19:11 -0300)]
[warningtester] Prettify error output
Johan Dahlin [Thu, 23 Sep 2010 21:52:47 +0000 (18:52 -0300)]
Add scope annotation value warnings
Refactor and improve the warning messages for the transfer
warnings as well
Johan Dahlin [Thu, 23 Sep 2010 21:52:29 +0000 (18:52 -0300)]
Make the invalid annotation warning a bit prettier
Johan Dahlin [Thu, 23 Sep 2010 21:36:37 +0000 (18:36 -0300)]
Validate transfer annnotations
Johan Dahlin [Thu, 23 Sep 2010 20:55:28 +0000 (17:55 -0300)]
Paper-bag fix, add an OPT_TRANSFER import
Johan Dahlin [Thu, 23 Sep 2010 20:52:26 +0000 (17:52 -0300)]
Remove TAG_TRANSFER
Johan Dahlin [Thu, 23 Sep 2010 20:51:56 +0000 (17:51 -0300)]
Replace TAG_TRANSFER with OPT_TRANSFER
Johan Dahlin [Thu, 23 Sep 2010 20:32:58 +0000 (17:32 -0300)]
[annotationparser] Make it a bit stricter
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 :.
Johan Dahlin [Thu, 23 Sep 2010 20:13:29 +0000 (17:13 -0300)]
[scanner] Warn for invalid scanner annotations
Warn for invalid annotations.
Change so that custom attributes have to use the annotation
keyword.
Colin Walters [Thu, 23 Sep 2010 17:56:44 +0000 (13:56 -0400)]
configure: Explicitly require GLib 2.24
We're handling GVariant at least internally now. Potentially
we could support earlier, but eh.
Colin Walters [Wed, 22 Sep 2010 16:48:33 +0000 (12:48 -0400)]
tests: Look for uninstalled .girs
Add $(top_builddir)/gir to the include path, like we do in
Makefile.introspection.
https://bugzilla.gnome.org/show_bug.cgi?id=630160
Johan Dahlin [Tue, 21 Sep 2010 12:09:27 +0000 (09:09 -0300)]
Revert "[transformer] Ignore hidden symbols"
This reverts commit
ad4934ca1d44285ab46d6e419d1788b886e48d82.
Johan Dahlin [Tue, 21 Sep 2010 02:19:25 +0000 (23:19 -0300)]
[transformer] Ignore hidden symbols
Do not warn about hidden symbols.
Johan Dahlin [Tue, 21 Sep 2010 02:30:25 +0000 (23:30 -0300)]
[IntrospectablePass] Suppress callback/vfunction warnings
Suppress a callback and virtual function warnings until
there's a clear way to document them.
Johan Dahlin [Tue, 21 Sep 2010 02:18:56 +0000 (23:18 -0300)]
[Message] Implement Position.__repr__
Johan Dahlin [Tue, 21 Sep 2010 02:18:07 +0000 (23:18 -0300)]
[maintransformer] Improve type resolution warnings
Try a bit harder to find the block where the type resolving
errors originate from
Johan Dahlin [Tue, 21 Sep 2010 02:15:51 +0000 (23:15 -0300)]
[IntrospectablePass] Improve error message
Send in block postions so we can get accurate line numbers
for warnings emitted from this class.
Johan Dahlin [Tue, 21 Sep 2010 02:15:08 +0000 (23:15 -0300)]
Pass in blocks to IntrospectablePass
Johan Dahlin [Tue, 21 Sep 2010 02:01:27 +0000 (23:01 -0300)]
[message] Add apositions argument to a few functions
Johan Dahlin [Mon, 20 Sep 2010 20:44:09 +0000 (17:44 -0300)]
[scanner] Support private/public directives
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=594125
Johan Dahlin [Mon, 20 Sep 2010 20:17:20 +0000 (17:17 -0300)]
[scanner] Add a Position class
Add a position class which will make it easier to
send filename/line/column information to the message
class.
Johan Dahlin [Mon, 20 Sep 2010 13:35:48 +0000 (10:35 -0300)]
[scanner] Only store types in cache store
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.
Johan Dahlin [Mon, 20 Sep 2010 13:12:34 +0000 (10:12 -0300)]
Remove leftover, type is set above
Johan Dahlin [Mon, 20 Sep 2010 03:09:08 +0000 (00:09 -0300)]
[maintransformer] Make warning more robust
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
Johan Dahlin [Mon, 20 Sep 2010 03:05:30 +0000 (00:05 -0300)]
[message] Set file_positions to an empty list
So we can always pass it into len() without breaking
https://bugzilla.gnome.org/show_bug.cgi?id=629959
Johan Dahlin [Sun, 19 Sep 2010 19:38:34 +0000 (16:38 -0300)]
Include proper line number for scope warning
Johan Dahlin [Sun, 19 Sep 2010 19:37:42 +0000 (16:37 -0300)]
[sourcescanner] Rewrite linemarks parser
Rewrite the pre-processor linemark parser so we end
up with accurate filenames and linenumbers.
Johan Dahlin [Sun, 19 Sep 2010 15:14:26 +0000 (12:14 -0300)]
Include proper filename and lineno in doc warning
Johan Dahlin [Sun, 19 Sep 2010 15:05:08 +0000 (12:05 -0300)]
[annotationparser] Preserve line numbers
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
Johan Dahlin [Sun, 19 Sep 2010 14:33:38 +0000 (11:33 -0300)]
Save the line number of a source comment
Johan Dahlin [Sat, 18 Sep 2010 16:44:26 +0000 (13:44 -0300)]
[maintransformer] Do not warn for returns and varargs
Add a few more special case parameters which we will
not warn if they don't exist as a parameter
Tomeu Vizoso [Fri, 17 Sep 2010 13:05:16 +0000 (15:05 +0200)]
Set c_symbol_prefix in the GVariant special case
Tomeu Vizoso [Sat, 11 Sep 2010 12:25:27 +0000 (14:25 +0200)]
Make Full the default transfer for returned foreign structs.
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
Johan Dahlin [Thu, 16 Sep 2010 21:24:16 +0000 (18:24 -0300)]
Update AUTHORS
Johan Dahlin [Thu, 16 Sep 2010 21:21:38 +0000 (18:21 -0300)]
Update CONTRIBUTORS
Colin Walters [Thu, 16 Sep 2010 17:08:32 +0000 (13:08 -0400)]
build: post-release version bump
Colin Walters [Thu, 16 Sep 2010 16:59:26 +0000 (12:59 -0400)]
Release 0.9.6
Johan Dahlin [Thu, 16 Sep 2010 13:27:35 +0000 (10:27 -0300)]
[maintransformer] Do not warn for vararg docs
Allow varargs "..." to be documented without warning
https://bugzilla.gnome.org/show_bug.cgi?id=629759
Johan Dahlin [Wed, 15 Sep 2010 02:13:17 +0000 (23:13 -0300)]
Add a warning for unresolved types
Warn when using an annotation which will end up as
unresolved.
https://bugzilla.gnome.org/show_bug.cgi?id=629004
Simón Pena [Wed, 15 Sep 2010 18:44:30 +0000 (20:44 +0200)]
gio-2.0.c: Add missing annotations
Add 'transfer mode' annotations for GAction, GActionGroup, GAppInfo,
GApplication and GAsyncInitable
https://bugzilla.gnome.org/show_bug.cgi?id=629790
Colin Walters [Wed, 15 Sep 2010 20:45:48 +0000 (16:45 -0400)]
scanner: Add temporary workaround for GStreamer
Also document/bug link the other workarounds; just made up a
convention for ## WORKAROUND ##
See: https://bugzilla.gnome.org/show_bug.cgi?id=550616
Johan Dahlin [Wed, 15 Sep 2010 20:46:27 +0000 (17:46 -0300)]
NEWS->git shortlog
Pavel Holejsovsky [Fri, 10 Sep 2010 12:33:15 +0000 (14:33 +0200)]
Update annotations for GIRepository.Repository.
https://bugzilla.gnome.org/show_bug.cgi?id=628753
Pavel Holejsovsky [Fri, 3 Sep 2010 13:20:43 +0000 (15:20 +0200)]
Box GIBaseInfo structure.
This puts it into typelibs and allows to use it safely from scripts.
https://bugzilla.gnome.org/show_bug.cgi?id=628753
Johan Dahlin [Tue, 14 Sep 2010 22:31:46 +0000 (19:31 -0300)]
Add a parameter mismatch warning
https://bugzilla.gnome.org/show_bug.cgi?id=629708
Johan Dahlin [Tue, 14 Sep 2010 22:31:26 +0000 (19:31 -0300)]
[gio] Fix a broken doc string
https://bugzilla.gnome.org/show_bug.cgi?id=629708
Johan Dahlin [Tue, 14 Sep 2010 21:49:15 +0000 (18:49 -0300)]
[warningtester] Do not sort expected warnings
Instead just take them in the order they are in the file
Johan Dahlin [Tue, 14 Sep 2010 21:48:51 +0000 (18:48 -0300)]
[warningtester] Invert expected/actual
It makes it a little less confusing reading the error messages
Colin Walters [Tue, 14 Sep 2010 17:08:50 +0000 (13:08 -0400)]
scanner: Add c_type for callbacks
We weren't doing this consistently, which broke nsname != cprefix
cases.
https://bugzilla.gnome.org/show_bug.cgi?id=629683
Colin Walters [Tue, 14 Sep 2010 17:05:48 +0000 (13:05 -0400)]
tests: Don't build regress if we don't HAVE_CAIRO
https://bugzilla.gnome.org/show_bug.cgi?id=629359
Colin Walters [Tue, 14 Sep 2010 16:31:58 +0000 (12:31 -0400)]
typelib compiler: Passthrough <doc> at any point
This should have been in the previous commit.
Colin Walters [Tue, 14 Sep 2010 16:23:59 +0000 (12:23 -0400)]
scanner: Parse annotations for typedefs
* 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
Colin Walters [Tue, 14 Sep 2010 15:19:11 +0000 (11:19 -0400)]
scanner: Handle G_TYPE_HASH_TABLE
Our Type creation from GType names didn't know how to handle
the GObject boxeds for GHashTable, GArray etc.
Colin Walters [Mon, 13 Sep 2010 22:53:32 +0000 (18:53 -0400)]
scanner: Consistently use ctype for documentation blocks
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".