aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add EnumValueTypeEntry.Hugo Parente Lima2012-03-092-0/+37
| | | | | 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.
* Remove detection of duplicated enum values, this was implemented due to a ↵Hugo Parente Lima2012-03-092-51/+2
| | | | | | bug on boost::python which doesn't exists nowadays.
* Support 'void' argument.Lauro Neto2012-03-091-0/+8
| | | | | Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Renato Filho <renato.filho@openbossa.org>
* Adding tests for 'void' argument in functionsLauro Neto2012-03-093-0/+119
|
* Do not generate bindings for global functions when the typesystem was loaded ↵Hugo Parente Lima2012-03-092-2/+3
| | | | | | | with generate=no. Reviewer: Lauro Moura <lauro.neto@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Merge remote branch 'luck/fixprivctor'Luciano Wolf2012-03-094-0/+90
|\
| * Update class info once a default ctor is added.Luciano Wolf2012-03-094-0/+90
| |
* | Add method setTypeEntry to AbstractMetaFunction.Hugo Parente Lima2012-03-092-0/+6
| | | | | | | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Araújo <renato.araujo@openbossa.org>
* | Added documentation for function tag.Hugo Parente Lima2012-03-091-2/+17
| |
* | Show a warning if a global function defined in typesystem was not found by ↵Hugo Parente Lima2012-03-091-25/+37
| | | | | | | | the parser.
* | Fix constness of FunctionTypeEntry methods.Hugo Parente Lima2012-03-091-2/+2
| |
* | Do not create two AbstractMetaClass for every template class.Hugo Parente Lima2012-03-092-2/+10
| |
* | Remove hardcoded QXmlStreamStringRef class from ApiExtractor.Hugo Parente Lima2012-03-091-4/+0
| |
* | Fix class dependence in topological sort.Hugo Parente Lima2012-03-091-27/+4
| | | | | | | | | | - An inner class depends on their enclosed class. - A class depends on their namespace.
* | Write graph nodes using quotes on Graph::dump.Hugo Parente Lima2012-03-091-1/+1
| |
* | Bump version to 0.5.0, due to ABI breackage.Hugo Parente Lima2012-03-091-2/+2
| | | | | | | | | | ApiExtractor is not prepared for binary compatibility, so this will happen a lot.
* | Do not set the include file on TypeEntries when the include file does not ↵Hugo Parente Lima2012-03-093-19/+35
| | | | | | | | | | | | exists or it's the global header.
* | Fix constness of TypeDatabase methods.Hugo Parente Lima2012-03-092-39/+39
| |
* | TypeDatabase class moved to its own header/cpp.Hugo Parente Lima2012-03-0912-666/+797
| |
* | Added the "function" tag to ApiExtractor.Hugo Parente Lima2012-03-099-19/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-095-63/+137
| |
* | Removed methods includeFile and setIncludeFile from AbstractMetaAttribute.Hugo Parente Lima2012-03-092-16/+12
| | | | | | | | | | | | | | | | | | | | These methods were moved to AbstractMetaFunction, because they are created to store the include file of global enums and functions, but for enums, we store the include file in TypeEntry, as functions doesn't have TypeEntries, only global functions need this. Also the new version of includeFile returns a instance of Include class instead of a QString.
* | Set the include file for enums.Hugo Parente Lima2012-03-091-6/+11
| |
* | 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-092-1/+22
| |
* | Do not build tests if explicitly wanted to. Default is to build.Carlos Goncalves2012-03-091-3/+9
|/ | | | | | | | | The majority of users don't need tests built. This will reduce build time significantly, and packagers will be thanked for it. To not build tests append -DBUILD_TESTS=False to cmake parameters. Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Added ContainerTypeEntry::typeName() method.Hugo Parente Lima2012-03-092-0/+35
| | | | | | | | 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>
* Adds reverse operator functions to the proper classes.Marcelo Lira2012-03-093-1/+62
| | | | | | | | | | | AbstractMetaBuilder::traverseOperatorFunction does additional checks to avoid mistaken a class' reverse operator as a direct operator of another class. An unit test was added to check for this case. Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Do not add an operator function to a class from a referred type system.Marcelo Lira2012-03-091-2/+3
| | | | | | API Extractor does not add operator functions from the module being processed for generation to a class belonging to a referred module, that should not be generated.
* Adds many tests regarding default copy constructors.Marcelo Lira2012-03-095-14/+206
| | | | | | | Also updated other tests dealing with constructor counting. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Value type classes now have implicit copy constructors added when needed.Marcelo Lira2012-03-092-4/+43
|
* Marks user added constructors with one argument of a custom type as explicit.Marcelo Lira2012-03-091-2/+5
| | | | This prevents the generation of undesired implicit conversions.
* Adds convenience methods regarding copy constructors to AbstractMetaClass.Marcelo Lira2012-03-092-0/+53
|
* Tests if added constructor with custom type creates an implicit converter.Marcelo Lira2012-03-091-1/+9
|
* Fixes attributes for default constructors and class' "isPolymorphic" flag.Marcelo Lira2012-03-091-3/+4
| | | | | | | | | | | | When a class has no constructor explicitly declared a default is provided by API Extractor, but it should be marked as "Final". The setting of the "isPolymorphic" flag done in the AbstractMetaClass::addFunction method must take into account if the class has a virtual destructor, as it is done in the AbstractMetaClass::setFunctions method. The already existing tests cover the cases affected by the changes.
* An inner class should not be polymorphic just because his enclosing class is.Marcelo Lira2012-03-092-0/+24
| | | | This commit adds a test for that situation.
* Changed routine to build source packages.Hugo Lima2012-03-092-583/+7
| | | | | | | | Our changelog is just the output of git log, so it's added only on source packages and don't need to stay in the git repository. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
* Bump version to 0.4.1Hugo Lima2012-03-091-1/+1
|
* Bump version to 0.4.0Hugo Lima2012-03-091-2/+2
|
* Meta type minimal signature should place reference symbol after pointer symbols.Marcelo Lira2012-03-094-2/+92
| | | | | | | | | | The minimalSignature method was placing '&' before '*'. For example, the signature "foo(Bar*&)" was becoming "foo(Bar&*)". An unit test was added to verify AbstractMetaType::minimalSignature(). Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org>
* Remove some java-oriented stuff from ApiExtractor inherited from QtJambi ↵Hugo Lima2012-03-092-39/+6
| | | | | | | generator. Reviewer: Lauro Moura <lauro.neto@openbossa.org> Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
* Pass QHash by reference for dumpDot method.Hugo Lima2010-03-192-2/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Anderson Lizardo <anderson.lizardo@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 conversionoperator test code.Hugo Lima2010-03-041-5/+6
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
* Disable debug output about typesystem on conversionoperatortest.Hugo Lima2010-03-031-3/+3
|
* Remove Boost::graph dependence from ApiExtractor by using our own codeHugo Lima2010-03-038-45/+333
| | | | for graph topological sort.
* Don't add external conversion operators that were removed on type system file.Marcelo Lira2010-03-013-8/+61
| | | | | | With tests, of course. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Adds the AbstractMetaBuilder::setupExternalConversions(metaClass) method.Marcelo Lira2010-02-262-3/+14
| | | | | | | | The code to add the external conversion operators for a class found in another class was moved to its own function, setupExternalConversions, that is called after all classes were traversed. Not all classes are ready when fixReturnTypeOfConversionOperator(metaFunc), the method where the moved code dwelt, is called.
* External conversion operators are now part of a class' implicit conversions.Marcelo Lira2010-02-264-5/+41
| | | | | | | AbstractMetaClass::implicitConversions() returns externally declared conversion operators in addition to its own implicit constructors. The implicit conversion tests where extended with the new case.
* Added method AbstractMetaBuilder::fixReturnTypeOfConversionOperator(func).Marcelo Lira2010-02-265-0/+143
| | | | | | | | | | The new method fixes the return type of conversion operators: they should return the target of the conversion as type and not the type of its owner class. fixReturnTypeOfConversionOperator is used in traverseFunctions. An unit test was added for this case. Note that this behaviour could be fixed in the parser. I dare you!