Support introspectable=no attribute, add warnings framework
authorColin Walters <walters@verbum.org>
Thu, 17 Jun 2010 00:34:18 +0000 (20:34 -0400)
committerColin Walters <walters@verbum.org>
Thu, 17 Jun 2010 17:05:59 +0000 (13:05 -0400)
commit5a4fa2bf5648d60d9fc0feb69080c9153b2abe02
tree0a1f1f2c42740f4a812bfd39e32afb9d6a733c74
parent929892fa9447d2abace21d02c86bb888fc6fd3df
Support introspectable=no attribute, add warnings framework

This work allows us to move closer to replacing gtk-doc, among other
things.  We add a generic attribute "introspectable", and inside the
typelib compiler if we see "introspectable=no", we don't put it in the
typelib.  This replaces the hackish pre-filter for varargs with a much
more generic mechanism.

The varargs is now handled in the scanner, and we emit
introspectable=no for them.

Add generic metadata to Node with references to file/line/column,
which currently comes from symbols.

Add scanner options --warn-all and --warn-error.

https://bugzilla.gnome.org/show_bug.cgi?id=621570
12 files changed:
docs/g-ir-scanner.1
gir/Makefile.am
girepository/girparser.c
girepository/girparser.h
giscanner/ast.py
giscanner/girwriter.py
giscanner/glibtransformer.py
giscanner/scannermain.py
giscanner/sourcescanner.py
giscanner/transformer.py
tests/scanner/Makefile.am
tests/scanner/foo-1.0-expected.gir