aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implemented support to "rename to" in argument modificationRenato Filho2012-03-091-5/+9
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Added the "default-constructor" attribute to the "primitive-type" tag.Marcelo Lira2012-03-091-0/+3
| | | | | | | | | The default-constructor attribute specifies a way to build an instance of a class declared as primitive type using default arguments. Documentation and a test were also added. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Implemented support to flag "since" on typesystem.Renato Filho2012-03-091-34/+54
| | | | | With this flag you can specify after which version the tag became valid.
* Do not generate bindings for global functions when the typesystem was loaded ↵Hugo Parente Lima2012-03-091-0/+1
| | | | | | | with generate=no. Reviewer: Lauro Moura <lauro.neto@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* TypeDatabase class moved to its own header/cpp.Hugo Parente Lima2012-03-091-398/+48
|
* Added the "function" tag to ApiExtractor.Hugo Parente Lima2012-03-091-1/+38
| | | | | | | | | | | | | | | This change the behaviour of ApiExtractor regarding to global functions. All global function you want to be exported to python *need* to be especified in the type system with the function tag, otherwise they wont be exported at all. The syntax for this new tag is: <function signature="..." /> This is just the initial work for this tag, it is missign support for: - Function modifications. - Add a function overload with add-function tag.
* Include class moved to its own .h/.cpp file.Hugo Parente Lima2012-03-091-24/+0
|
* Added qHash, operator<<(QTextStream,Include) and operator== to class Include.Hugo Parente Lima2012-03-091-0/+12
|
* Added ContainerTypeEntry::typeName() method.Hugo Parente Lima2012-03-091-0/+33
| | | | | | | | With this method we can get the string used in typesystem to declare the container type (list, set, map, pair, etc). Reviewer: Lauro Moura <lauro.neto@openbossa.org> Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
* Remove some java-oriented stuff from ApiExtractor inherited from QtJambi ↵Hugo Lima2012-03-091-32/+6
| | | | | | | generator. Reviewer: Lauro Moura <lauro.neto@openbossa.org> Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
* Fixed error checking about already existing conversion rules.Marcelo Lira2010-03-181-5/+4
| | | | | | | | | The error checking that avoids duplicated conversion rules definitions applies only to general type conversions, not to cases specified to a function argument. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Fix add-function tag when adding a global function.Hugo Lima2010-02-091-7/+12
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Reactivated 'reference-count' tag.Marcelo Lira2010-02-091-12/+4
| | | | | | | | The type system tag '<reference-count action="Add|Remove|..."/>' used on argument modification was uncommented, documentation was written and a unit test was created for it. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Assumes utf-8 encoding for conversion rules stored in external files.Hugo Lima2010-02-081-2/+2
| | | | Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Code injection from external files are always read using UTF-8.Hugo Lima2010-02-081-4/+3
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Correctly search for typesystem in all available typesystem paths.Hugo Lima2010-01-081-8/+5
| | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Added function can be tagged as static methods.Hugo Lima2010-01-071-0/+2
| | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Adds support for varargs in AbstractMetaArgument, AbstractMetaType and ↵Marcelo Lira2009-12-161-3/+10
| | | | | | VarargsTypeEntry. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Adds normalizedSignature static method to TypeDatabase.Marcelo Lira2009-12-161-2/+20
| | | | | | | | | | | All the uses of QMetaObject::normalizedSignature were replaced to use TypeDatabase::normalizedSignature; the former always changes the unsigned primitives to the shorter versions (e.g. "unsigned int" becomes "uint") that aren't necessarily used by the parsed library. The new normalizer changes back "uNUMBER" to "unsigned NUMBER" if the former is not present in the TypeDatabase. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Adds support for module level 'add-function' tag.Marcelo Lira2009-12-161-2/+31
| | | | | | | | | The TypeDatabase now stores global added functions as well as function modifications. The AbstractMetaFunction::modifications method was improved to check for global modifications. The test suite was updated with the changes.
* Fixed support for modify args in add-function tag.renato2009-12-081-1/+2
| | | | | | Created tests. Reviewed by Hugo Lima <hugo.lima@openbossa.org>
* Do not export global variables used only in typesystem.cpp.Hugo Lima2009-11-201-7/+49
|
* Do not exit with a assertion failure when the typesystem was not found.Hugo Lima2009-11-191-1/+4
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* The type system parser now reuses TypeSystemTypeEntry for the any moduleMarcelo Lira2009-11-161-2/+5
| | | | | | | | file being parsed. The existing module retrieval is based on the module name given as attribute of the "typesystem" tag. This allows helps when a single module is described on multiple type system files. Reviewed by Renato Araujo <renato.filho@openbossa.org>
* fixed the appending of code injection to the module;Marcelo Lira2009-11-141-1/+4
| | | | | | previously only code injected from a file was being stored correctly in the module object, code written inside the 'inject-code' tag was always lost
* Adding support to attribute stream in TypeEntryLauro Neto2009-11-091-0/+2
|
* Propagate generate flag for child typesystems.renato araujo oliveira2009-11-061-2/+2
| | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Add "()" to the function signature of functions without parenteses.Hugo Lima2009-11-031-1/+3
| | | | | | | Without this the function without parenteses will be like an alien to all others APIExtractor functions. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Fix a crash when the function signature provided by add-function tag does notHugo Lima2009-10-291-11/+16
| | | | | | have parenteses. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* conversion-rule tag now works inside value-type and object-type tags.Marcelo Lira2009-10-261-15/+18
| | | | | To access the conversion rule, use the new method TypeEntry->conversionRule NOTE: this commit is a modification of code produced by Hugo Parente.
* Added support for add-function tag into typesystem.Hugo Lima2009-10-211-14/+16
|
* Implemented a signature parser for the AddedFunction class.Hugo Lima2009-10-211-3/+76
|
* improved AddedFunction struct with more informations;Marcelo Lira2009-10-211-0/+45
| | | | extended ComplexTypeEntry with a list of AddedFunctions
* added AddFunction struct to type system collection of objects;Marcelo Lira2009-10-211-0/+6
| | | | the purpose is to allow the creation of new function/method signatures
* Added an entry for AddFunction tag in the StackElement enumHugo Lima2009-10-211-19/+20
|
* Handler::current renamed to Handler::m_currentHugo Lima2009-09-241-44/+44
| | | | With kdevelop4 it's so easy :-D
* Fix bug#38.Hugo Lima2009-09-241-3/+4
|
* - Turn ctors of TypeDatabase private (It's a singleton!)Hugo Lima2009-09-181-2/+7
| | | | | - Makes possible to reset the TypeDatabase, this is usefull in unit tests when you need to make all unit tests independent of each other.
* Use specific Qt include headers for OS compatibility.Renato Araujo Oliveira Filho2009-09-101-1/+1
| | | | | | Fixes Bug #49. Reviewed by Luciano Miguel Wolf <luciano.wolf@openbossa.org>
* moved setInclude, addExtraIncludes and related methods from ComplexTypeEntryMarcelo Lira2009-09-011-6/+6
| | | | | to TypeEntry, this way they will be also available on PrimitiveTypeEntry; the type system format now accepts the 'include' tag
* Removed all generator stuff from APIExtractor, this stuff should be moved to ↵Hugo Lima2009-08-201-77/+1
| | | | | | | | the generator, and the apiextractor library should be just what their name means, an API extractor. This break the APIExtractor source compatibility with no mercy!
* The genesis...Hugo Lima2009-08-171-0/+2085