aboutsummaryrefslogtreecommitdiffstats
path: root/generator/cppgenerator.h
Commit message (Collapse)AuthorAgeFilesLines
* Updated shiboken generator to works with python3 code.Renato Filho2012-03-081-0/+2
|
* Use ErrorCode class when writing enums.Hugo Parente Lima2012-03-081-3/+7
|
* Fixed generator to consider conversion rules for the return type of wrapper ↵Marcelo Lira2012-03-081-2/+2
| | | | | | | | | methods. Tests were added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Improved the generation of argument conversion in modified functions.Marcelo Lira2012-03-081-7/+9
| | | | | | | | Added the SBK_UNUSED macro to libshiboken to prevent compilation warnings. An unit test was added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Method buildAbstractMetaTypeFromString now uses a cache for the types it builds.Marcelo Lira2012-03-081-1/+1
|
* The type checking now pays attention to the <no-null-pointer/> tag.Marcelo Lira2012-03-081-1/+1
| | | | An unit test was also added for it.
* Disassembled ShibokenGenerator's writeCodeSnips method.Marcelo Lira2012-03-081-0/+5
| | | | | | | | Also added writeConversionRule methods to CppGenerator. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Moved many variables names used in generated code to macros.Marcelo Lira2012-03-081-3/+3
| | | | | | | | | | | Also fixed ShibokenGenerator::pythonFunctionWrapperUsesListOfArguments() method to consider call operators. Fixed code snippet variable replacement for when there's only one Python argument in the function. And CppGenerator::writeArgumentsInitializer() was sanitized, with never used code erased. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Revamped the virtual method writer.Marcelo Lira2012-03-081-0/+3
| | | | | It's way less messy now, and uses writeTypeCheck() as it should have been doing from the beginning.
* The rich comparison function writer now makes use of the C++ self variable ↵Marcelo Lira2012-03-081-1/+1
| | | | | | writer. That was the last one.
* Added the ErrorCode helper class to handle the current error code value.Marcelo Lira2012-03-081-4/+15
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Moved the generation of Python result error checking to a single function.Marcelo Lira2012-03-081-0/+1
|
* Improved coding style in the terrible writeStdListWrapperMethods method.Marcelo Lira2012-03-081-0/+3
|
* Added a method to retrieve a function's argument typeMarcelo Lira2012-03-081-9/+13
| | | | | | | | The method in question is CppGenerator::getArgumentType(), and it resolves any type modification made in the type system. Also remove an unused convenience method for writeArgumentConversion, and unused variable on rich comparison writer function.
* Centralized the generation of global and class enums in one method.Marcelo Lira2012-03-081-0/+1
|
* Created a method to generate method wrapper variable initialization code.Marcelo Lira2012-03-081-2/+3
| | | | | | | | The contents of the new CppGenerator::writeMethodWrapperPreamble() method were moved from the writers of constructor and method wrappers. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* All Python to C++ conversions were moved to ↵Marcelo Lira2012-03-081-0/+7
| | | | CppGenerator::writePythonToCppTypeConversion().
* Improved writeInvalidPyObjectCheck() method and updated generator to make ↵Marcelo Lira2012-03-081-7/+6
| | | | use of it.
* Improved CppGenerator::writeCppSelfDefinition() method and its use.Marcelo Lira2012-03-081-1/+2
| | | | Now anyone wanting to get a cppSelf object must go through this method.
* Removed signatures without definition from CppGenerator header.Marcelo Lira2012-03-081-2/+0
|
* Removed unused parameter from writeInvalidCppObjectCheck().Marcelo Lira2012-03-081-1/+1
| | | | Also removed the default value for a more explicit use of the method.
* Implemented support to qt_metacast function on qobjects.Renato Filho2012-03-081-0/+1
| | | | | | | fixs bug #872. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Improved garbage collector handling of Shiboken types.Marcelo Lira2012-03-081-0/+3
|
* Make use of the available and already allocated space for protocol ↵Marcelo Lira2012-03-081-1/+12
| | | | | | | | | | | | | | functiontions. The PyHeapTypeObject structure that is part of SbkObjectType already have allocated members for number, sequence, and mapping protocols, so let's use them. A tiny reduction in size ensues (I predict the modules will have 99.91% of their current size). Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Implemented generation code for mapping protocolRenato Filho2012-03-081-1/+13
| | | | | | | Fixex bug #743. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix bug 684 - "New-style signals does not accept signals with enums as ↵Hugo Parente Lima2012-03-081-0/+2
| | | | arguments."
* Fix bug#633 - "bool of null QDate (possibly other empty QString/null QObj ↵Hugo Parente Lima2012-03-081-0/+1
| | | | | | | types?) returns True for empty instance; probably should be False" Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix register type function to register the type with two names.Renato Araujo Oliveira Filho2012-03-081-0/+4
| | | | | | Fix signal register, to use arguments type name based on generated namespace. Fix bug #498.
* Remove cpp object copier as it was used by anyone and nobody missed him.Hugo Parente Lima2012-03-081-1/+0
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Create enum python types on the fly, avoiding generation of structs and ↵Hugo Parente Lima2012-03-081-2/+0
| | | | duplication of many C functions.
* Simplifies the generated code removing the use of std::auto_ptr.Hugo Parente Lima2012-03-081-4/+4
|
* Initial copy function generator codeLauro Neto2012-03-081-0/+2
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Implement generation support to target conversion.renatofilho2012-03-081-0/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug#267 - "Provide human-readable object strings (__repr__)"Hugo Parente Lima2012-03-081-0/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Shiboken generator code moved to the directory generator.Hugo Parente Lima2012-03-081-0/+201
Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>