aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
Commit message (Collapse)AuthorAgeFilesLines
* Added default constructor option for value types.Marcelo Lira2012-03-091-0/+4
| | | | | | | | The unit test is in place and the 'value-type' tag documentation was update with information about the 'default-constructor' attribute. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added an alias for the confusing index values for the ArgumentOwner class.Marcelo Lira2012-03-091-1/+7
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Moved members of FunctionModification to parent Modification class.Marcelo Lira2012-03-091-7/+8
| | | | | | 'removal' public attribute and 'isRemovedModifier' public method were moved from FunctionModification to Modification, this benefits FieldModification class, that inherits from the latter.
* Add helper method TypeEntry::isCppPrimitive.Hugo Parente Lima2012-03-091-1/+1
| | | | | | | Returns true is the type is a primitive C++ type. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Implement support to target conversion.renatofilho2012-03-091-1/+17
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Anonymous enums now supported.Marcelo Lira2012-03-091-0/+10
|
* Fixed function modification propagation.Renato Filho2012-03-091-0/+4
| | | | | | | Now all modifications on base function will be propagate until a new modification was found. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Lauro Moura <lauro.neto@openbossa.org>
* Created function to discovery when a class implement a container type.Renato Filho2012-03-091-1/+16
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed memory leak.Renato Filho2012-03-091-4/+4
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Put back variable-name in 'reference-count' tag.Renato Filho2012-03-091-0/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Implemented support to "rename to" in argument modificationRenato Filho2012-03-091-0/+3
| | | | | 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/+14
| | | | | | | | | 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-53/+92
| | | | | With this flag you can specify after which version the tag became valid.
* Add EnumValueTypeEntry.Hugo Parente Lima2012-03-091-0/+24
| | | | | Enum values are in global namespace, so sometimes you need to get them from TypeDatabase, a use case for this is a template class where the template parameter is a enum value.
* Fix constness of FunctionTypeEntry methods.Hugo Parente Lima2012-03-091-2/+2
|
* TypeDatabase class moved to its own header/cpp.Hugo Parente Lima2012-03-091-266/+0
|
* Added the "function" tag to ApiExtractor.Hugo Parente Lima2012-03-091-1/+29
| | | | | | | | | | | | | | | 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-39/+3
|
* Fixed constness of Include::isValid.Hugo Parente Lima2012-03-091-1/+1
| | | | P.S.: This is a ABI change.
* Added qHash, operator<<(QTextStream,Include) and operator== to class Include.Hugo Parente Lima2012-03-091-1/+10
|
* Added ContainerTypeEntry::typeName() method.Hugo Parente Lima2012-03-091-0/+2
| | | | | | | | 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-7/+0
| | | | | | | generator. Reviewer: Lauro Moura <lauro.neto@openbossa.org> Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
* Fix add-function tag when adding a global function.Hugo Lima2010-02-091-9/+9
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Added function can be tagged as static methods.Hugo Lima2010-01-071-0/+12
| | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Adds support for varargs in AbstractMetaArgument, AbstractMetaType and ↵Marcelo Lira2009-12-161-0/+11
| | | | | | VarargsTypeEntry. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Adds normalizedSignature static method to TypeDatabase.Marcelo Lira2009-12-161-0/+2
| | | | | | | | | | | 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-0/+23
| | | | | | | | | 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.
* Do not export global variables used only in typesystem.cpp.Hugo Lima2009-11-201-48/+10
|
* Add public visibility for more classes.Hugo Lima2009-11-161-12/+12
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Remove CustomTypeEntry classHugo Lima2009-11-161-18/+0
|
* Remove JObjectWrapperTypeEntry classHugo Lima2009-11-161-24/+0
|
* Remove QThreadTypeEntry classHugo Lima2009-11-161-23/+0
|
* APIExtractor is a huge amount of legacy code inherited from QtScriptGenerator,Hugo Lima2009-11-131-9/+10
| | | | | | | | | | | | | | | | | | but QtScriptGenerator itself isn't a library, this explains why libapiextractor does not care about things that every library SHOULD care, symbol visibility and binary compatibility. This commit adds symbol visibility rules to libapiextractor as the first step to make libapiextractor aware of binary compatibility. This is also needed if we want to be able to compile and use libapiextractor under Windows. Note: Not all symbols were made public, just the symbols needed by shiboken, boostpython and doc generators, because IMHO libapiextractor needs some love and a API review. More symbols could be added later if needed. Reviewed by Renato Araujo <renato.filho@openbossa.org>
* Adding support to attribute stream in TypeEntryLauro Neto2009-11-091-1/+13
|
* Added convenience method AbstractMetaFunction::injectedCodeSnips.Hugo Lima2009-10-301-1/+2
| | | | It returns all code snips in a function.
* conversion-rule tag now works inside value-type and object-type tags.Marcelo Lira2009-10-261-0/+19
| | | | | To access the conversion rule, use the new method TypeEntry->conversionRule NOTE: this commit is a modification of code produced by Hugo Parente.
* Added documentation for the new class "AddedFunction"Marcelo Lira2009-10-211-0/+20
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Added support for add-function tag into typesystem.Hugo Lima2009-10-211-23/+7
|
* Implemented a signature parser for the AddedFunction class.Hugo Lima2009-10-211-15/+20
|
* improved AddedFunction struct with more informations;Marcelo Lira2009-10-211-5/+44
| | | | extended ComplexTypeEntry with a list of AddedFunctions
* added AddFunction struct to type system collection of objects;Marcelo Lira2009-10-211-0/+46
| | | | the purpose is to allow the creation of new function/method signatures
* - Turn ctors of TypeDatabase private (It's a singleton!)Hugo Lima2009-09-181-2/+9
| | | | | - Makes possible to reset the TypeDatabase, this is usefull in unit tests when you need to make all unit tests independent of each other.
* moved setInclude, addExtraIncludes and related methods from ComplexTypeEntryMarcelo Lira2009-09-011-29/+28
| | | | | to TypeEntry, this way they will be also available on PrimitiveTypeEntry; the type system format now accepts the 'include' tag
* Added typedefs to QList<const PrimitiveTypeEntry*> andHugo Lima2009-08-201-2/+2
| | | | QList<const ContainerTypeEntry*>.
* Removed all generator stuff from APIExtractor, this stuff should be moved to ↵Hugo Lima2009-08-201-3/+0
| | | | | | | | 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/+1958