aboutsummaryrefslogtreecommitdiffstats
path: root/generator/cppgenerator.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implemented support to qt_metacast function on qobjects.Renato Filho2012-03-081-0/+17
| | | | | | | fixs bug #872. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix overload decisor on rich-compare function.Renato Filho2012-03-081-9/+4
| | | | | | | Fixes bug #292. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 501 - "Shiboken generator doesn't use full qualified name (with :: ↵Hugo Parente Lima2012-03-081-47/+49
| | | | | | | prefix) on all places." Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug 862 - "Problems when printing objects"Hugo Parente Lima2012-03-081-1/+20
|
* Make use of Shiboken::warning on virtual function.Renato Filho2012-03-081-3/+3
| | | | | | | | Shiboke uses Python warning to report any problems with virtural functions return conversion. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Updated generator to use removeReference function.Renato Filho2012-03-081-3/+8
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix error arg types in error messages.Hugo Parente Lima2012-03-081-1/+1
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Generate code using the new pyside class DestroyListener.Renato Filho2012-03-081-2/+8
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Removed unused variables/functions.Hugo Parente Lima2012-03-081-2/+0
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Whitespace removalHugo Parente Lima2012-03-081-1/+1
|
* Use right argument variable name on keep reference when inside constructors.Hugo Parente Lima2012-03-081-0/+1
|
* Implemented keep-reference action 'add'.Renato Filho2012-03-081-3/+6
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Just use else if's instead of a sequence of if's.Hugo Parente Lima2012-03-081-4/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Improved garbage collector handling of Shiboken types.Marcelo Lira2012-03-081-5/+30
|
* Replaced "isUserType" test for the correct "hasCppWrapper" before method calls.Marcelo Lira2012-03-081-2/+2
| | | | | | | | Also added an unit test for infinite recursion when duck punching a virtual method. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Don't set the tp_init when there are no public constructors available.Hugo Parente Lima2012-03-081-1/+5
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Small fix to number protocol code generation.Marcelo Lira2012-03-081-1/+1
|
* Only use qRegisterMetaType for Value types.Renato Filho2012-03-081-5/+8
| | | | | | | fixes bug #847. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix bug 813 - "Can not override connect method when subclassing QObject"Hugo Parente Lima2012-03-081-4/+22
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Obey type replacements in rich comparison functions.Hugo Parente Lima2012-03-081-1/+13
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Make use of the available and already allocated space for protocol ↵Marcelo Lira2012-03-081-133/+143
| | | | | | | | | | | | | | 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>
* Return false when a overload wasn't found on __eq__ and true when an ↵Hugo Parente Lima2012-03-081-3/+12
| | | | | | | overload wasn't found on __ne__. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Implemented generation code for mapping protocolRenato Filho2012-03-081-2/+82
| | | | | | | Fixex bug #743. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix bug 723 - "Missing QAbstractFileEngine.read and ↵Hugo Parente Lima2012-03-081-2/+2
| | | | | | | QAbstractFileEngine.readLine" Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug 823 - "Shiboken doesn't support function call overloads"Hugo Parente Lima2012-03-081-6/+19
|
* Avoid register Abstract types on QMetaTypes to avoid problems in QML.Renato Filho2012-03-081-1/+1
| | | | | | | Fix bug #814. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed 'operator--'.Renato Filho2012-03-081-1/+1
|
* Implement support to operator++;Renato Filho2012-03-081-1/+7
| | | | | | | Fixes bug #688. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added the type system variables %BEGIN_ALLOW_THREADS and %END_ALLOW_THREADS.Marcelo Lira2012-03-081-4/+4
| | | | | | | | | | Also moved the save and restore thread state lines to a macro in ShibokenGenerator header file. The type system variables documentation was updated accordingly. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed the argument conversion of modified virtual methods.Marcelo Lira2012-03-081-2/+13
| | | | | | | Wrong conversion code was being outputted to virtual method wrapper code when all arguments were removed. Unit tests were added as well.
* Added support for extra includes at module level.Marcelo Lira2012-03-081-3/+7
|
* Reverse operators raise NotImplemented error.Lauro Neto2012-03-081-0/+13
| | | | | If it's a reverse operator and the OverloadDecisor fails, raise NotImplementedError instead of TypeError.
* Set object returned by getter function child of the property owner.Hugo Parente Lima2012-03-081-0/+1
| | | | Doing this will invalidate the object then the property owner was deleted.
* Check for object validity on property getters and setters before using them.Hugo Parente Lima2012-03-081-0/+10
|
* Updated module reload test.Renato Filho2012-03-081-0/+1
| | | | | | | | | Avoid to load a module twice. Fixes bug #734. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Register class names without namespaces to fix the mess in Qt signal type names.Hugo Parente Lima2012-03-081-2/+15
| | | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Use buffer instead of uchar on TypeError messages.Hugo Parente Lima2012-03-081-0/+3
|
* Fix bug 706 - "dataChanged signal raise an incorrect TypeError"Hugo Parente Lima2012-03-081-2/+12
| | | | | | | Now we directly call qRegisterType for all types. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Handles the situation properly when a custom code has a result value ↵sb-1.0.0Marcelo Lira2012-03-081-1/+2
| | | | | | | | | | | attribution. If a method has a custom code that attributes a value to the Python result variable, Shiboken should not generate code with attribution to the said variable. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added a check on CppGenerator::writeClassDefinition for when there's no ↵Marcelo Lira2012-03-081-1/+1
| | | | constructor for a class.
* The option "avoid protected hack" is now set via command line.sb-1.0.0-rc1Marcelo Lira2012-03-081-140/+112
| | | | | | | | Instead of the old ugly way of compiling the behaviour forever using "#define". Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Shows "unicode" instead of "PyUnicode" on error messages.Hugo Parente Lima2012-03-081-0/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Add support to the remove attribute of reference-count tag.Hugo Parente Lima2012-03-081-6/+14
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 684 - "New-style signals does not accept signals with enums as ↵Hugo Parente Lima2012-03-081-9/+50
| | | | arguments."
* Fixed style of code on CppGenerator::writeReturnValueHeuristics method.Marcelo Lira2012-03-081-4/+4
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix string used in tp_name on inner types.Hugo Parente Lima2012-03-081-2/+3
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* The heuristics for return value parenting should be overridden by user changes.Marcelo Lira2012-03-081-9/+14
| | | | | | | | Whatever the user puts in the type system XML will take precedence over the generator heuristics. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Use action="set" instead of action="add" on reference-count tag.Hugo Parente Lima2012-03-081-1/+3
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Implemented support to iterator function generation.Renato Araujo Oliveira Filho2012-03-081-2/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fixed signal initialization for types with namespace and types definedRenato Araujo Oliveira Filho2012-03-081-9/+28
| | | | | | | | | by typedef. Fixes bug #657. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>