summaryrefslogtreecommitdiff
path: root/tests/warn/invalid-element-type.h
Commit message (Collapse)AuthorAgeFilesLines
* giscanner: Fix GtkDocBlock.position...Dieter Verfaillie2013-10-081-3/+3
| | | | | ... so it points to the start of the GTK-Doc comment block instead of the position of the identifier field.
* giscanner: refactor annotation validationDieter Verfaillie2013-10-081-26/+21
| | | | | | | | - annotations on the identifier (formerly g-i specific tags) have never been validated before, so fix this - removes duplicate validation code from GtkDocTag and GtkDocParameter - remove repeated validation code doing the same thing as annotationparser from maintransformer...
* giscanner: flesh out annotation parsing and storageDieter Verfaillie2013-10-081-5/+5
| | | | | | | | | | - remove annotations regex, restore proper parens parsing - drop weird DocOption() storage class and use lists/dicts as appropriate - make GtkDocAnnotations a simple OrderedDict subclass instead of a weird hybrid dict/list storage class - Deprecate Attribute: tag, replace with (attributes) annotation on the identifier
* transformer: Ensure that types aren't resolved if we can't find themJasper St. Pierre2013-02-071-0/+9
| | | | | | | | This ensures that things can't try to reference undefined/invalid types without emitting warnings, and that users need to include other GIRs at build time if they want to reference another type. https://bugzilla.gnome.org/show_bug.cgi?id=693098
* scanner: Warn if we're missing (element-type) for GPtrArrayColin Walters2012-12-101-0/+1
| | | | | | | | | | For background, See https://bugzilla.gnome.org/show_bug.cgi?id=629682 See https://bugzilla.gnome.org/show_bug.cgi?id=689871 Basically we should emit a warning here. https://bugzilla.gnome.org/show_bug.cgi?id=689998
* annotationparser: correct "maximium" in error messagesWill Thompson2012-04-091-1/+1
| | | | | | | | "Maximium" is not an English word. Even if corrected to "maximum" (which is), "at maximum" is not conventional usage: "at most" is more idiomatic. https://bugzilla.gnome.org/show_bug.cgi?id=670985
* Fix malformed GTK-Doc comment blocks:Dieter Verfaillie2012-04-051-2/+2
| | | | | | | | | | | | | | | | | - add missing colons - invalid annotations - invalid parameters and tags - correct parameter name - preserve description indentation - no description parts - comment end marker - invalid empty lines - line numbers AnnotationParser now emits warnings which are considered as errors by "make check" so fix those warnings... https://bugzilla.gnome.org/show_bug.cgi?id=672254
* Fix warning for missing (element-type)Colin Walters2011-08-291-0/+2
| | | | | | While looking for a different bug, I noticed that the introspectable pass lists was missing GSList. And the warning was never set up to fire anyways. Fix it and add a test.
* Add tests for newly added warningsGiovanni Campagna2011-08-181-1/+27
| | | | | g-ir-scanner now warns for invalid (element-type) annotations in GPtrArray and in GByteArray. Test that.
* [annotationparser] Validate the rest of the annotationsJohan Dahlin2010-09-241-0/+54
All option annotations, which uses parenthesis are now properly validated for number of values they expect