aboutsummaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
* Fixes writeReturnValueHeuristics to not mess with constructors.Marcelo Lira2012-03-082-1/+2
| | | | | | | | Also fixes isWrapperType to avoid erring when the type is an object type passed as value. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix python 2.x generation.Renato Filho2012-03-081-4/+4
|
* Updated shiboken generator to works with python3 code.Renato Filho2012-03-082-19/+75
|
* Update string usage to new Shiboken::String API.Renato Filho2012-03-082-1/+6
|
* Create SHIBOKEN MODULE INIT macro.Renato Filho2012-03-081-11/+2
|
* Fix getattro function on Python3.Hugo Parente Lima2012-03-081-2/+1
|
* Added SBK_PyString_FromCString and SBK_PyString_FromFormat as helper macro ↵Hugo Parente Lima2012-03-081-1/+1
| | | | for Py3k port.
* Correctly prints the return type of virtual functions instead of a C++ ↵Hugo Parente Lima2012-03-081-7/+7
| | | | expression.
* Port module initialization to Python3.Hugo Parente Lima2012-03-081-7/+42
|
* Use PyBytes instead of PyString on generated code.Hugo Parente Lima2012-03-081-3/+5
|
* Use ErrorCode class when writing enums.Hugo Parente Lima2012-03-082-11/+15
|
* Port libsample typesystem and glue codes to Python 3.Hugo Parente Lima2012-03-081-2/+1
|
* Added sbkpython.h to deal with conflicts and missing symbols between ↵Hugo Parente Lima2012-03-082-2/+2
| | | | Python2 and 3.
* Revert "Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken ↵Hugo Parente Lima2012-03-082-24/+19
| | | | | | | | functionality through a Python module"." This reverts commit bc8448d7fb91733ff08c2a6a3a878702c14a24e0. The PSEP didn't reach the final version yet, so this commit can't be released.
* Fix bug 995 - "QDeclarativeView.itemAt returns faulty reference. (leading to ↵Hugo Parente Lima2012-03-081-15/+7
| | | | SEGFAULT)"
* Use internal dynamic metaobject insted of created by pyside.Renato Filho2012-03-081-0/+3
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Safer type index define line generation.Marcelo Lira2012-03-081-1/+2
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fiexed default __repr__ function generation.Renato Filho2012-03-081-1/+1
| | | | | | | Fixes bug #991. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken functionality ↵Hugo Parente Lima2012-03-082-19/+24
| | | | through a Python module".
* Implmented support to q_metacall function modification.Renato Filho2012-03-081-7/+22
| | | | | Reviewed by: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Not print warning if the typedef used on signal is QFlags.Renato Filho2012-03-081-1/+1
| | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Centralized the place where the TypeResolver creation is written.Marcelo Lira2012-03-081-11/+25
| | | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Creates type registers for enums in createScopedEnum and createGlobalEnum.Marcelo Lira2012-03-081-4/+0
| | | | Instead of generating the register code.
* Fixed generator to consider conversion rules for the return type of wrapper ↵Marcelo Lira2012-03-082-8/+10
| | | | | | | | | methods. Tests were added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* CppGenerator's writeCopyFunction method now uses ↵Marcelo Lira2012-03-083-9/+22
| | | | | | | | | cpythonToPythonConversionFunction. The new overload of cpythonToPythonConversionFunction, that is. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* CppGenerator's method writeReprFunction now uses writeCppSelfDefinition.Marcelo Lira2012-03-081-10/+7
|
* Functions marked as deprecated will raises a python warning.Renato Filho2012-03-081-0/+7
| | | | Fixes bug #873.
* Improved the generation of argument conversion in modified functions.Marcelo Lira2012-03-084-58/+96
| | | | | | | | 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>
* Improved type system converter variable usage in the sample test binding.Marcelo Lira2012-03-081-2/+1
| | | | ShibokenGenerator uses qDeleteAll for the cached meta types.
* CppGenerator's writeHashFunction now uses writeCppSelfDefinition.Marcelo Lira2012-03-081-4/+3
|
* The type system converter variable replacement was moved to a single method.Marcelo Lira2012-03-082-30/+77
| | | | | | | | | Such a method is safer than the previous that used only a regular expression, because now it tries to build a meta type for the type found in the user's custom code. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Moved functionality from a couple of write function to ones that return strings.Marcelo Lira2012-03-082-35/+46
| | | | | The methods writeToCppConversion and writeToPythonConversion now use the services of cpythonToCppConversionFunction and cpythonToPythonConversionFunction.
* Method buildAbstractMetaTypeFromString now uses a cache for the types it builds.Marcelo Lira2012-03-084-47/+36
|
* Added tests for a class that its only constructor is the copy one.Marcelo Lira2012-03-081-1/+1
| | | | | | | | This simulates a situation found in QtWebKit's QWebDatabase and QWebSecurityOrigin classes. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Improved the generation of type indexes written to the generated module header.Marcelo Lira2012-03-083-13/+68
| | | | | | Now classes that are typedefs to template class instantiations are written twice with the same index: one with the aliased name, and other with the name composed of template and template arguments.
* The type checking now pays attention to the <no-null-pointer/> tag.Marcelo Lira2012-03-084-6/+34
| | | | An unit test was also added for it.
* The result of rich comparisons are stored in a return variable before ↵Marcelo Lira2012-03-081-8/+9
| | | | converting them to Python.
* Improved guessCPythonCheckFunction method to produce an AbstractMetaType for ↵Marcelo Lira2012-03-083-17/+65
| | | | | | | | | | known types. This is in opposition of simply returning a string with a custom type check. The details are in the docstring in ShibokenGenerator header. Also added a new modification test and refactored here and there in the sample binding type system.
* Included tests for added function signatures very similar to already ↵Marcelo Lira2012-03-082-13/+27
| | | | | | | | | | | | | | | existing ones. Specifically this causes the situation when there is in C++ a function with an argument that is a reference to a Value Type, and the user adds a very similar function with the same type, but passed as value. Example: C++ : function(const TYPE& a, int b) Added: function(TYPE) The return type of ShibokenGenerator::getArgumentReplacement() method was modified, because the argument object is more useful than its index.
* Don't abort header generator if no classes were found.Hugo Parente Lima2012-03-081-3/+0
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Check if the directory exists before writing C++ module definition file.Hugo Parente Lima2012-03-081-0/+1
|
* Removed huge if block to ease the code readbility.Hugo Parente Lima2012-03-081-187/+190
|
* Fixed type system variable replacement for arguments removed with conversion ↵Marcelo Lira2012-03-083-18/+24
| | | | | | | | | | rule. Also added an array argument modification test, and moved AutoArrayPointer from libpyside to libshiboken. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Small visual improvements on writeArgumentNames().Marcelo Lira2012-03-081-10/+7
|
* Disassembled ShibokenGenerator's writeCodeSnips method.Marcelo Lira2012-03-084-296/+301
| | | | | | | | 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>
* Removed unnecessary indentation from generated overload selector switch.Marcelo Lira2012-03-081-19/+13
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Improved and fixed the setter and getter writer functions.Marcelo Lira2012-03-081-46/+38
| | | | Also added an unit test to a protected container property.
* Moved many variables names used in generated code to macros.Marcelo Lira2012-03-084-149/+142
| | | | | | | | | | | 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-084-80/+82
| | | | | It's way less messy now, and uses writeTypeCheck() as it should have been doing from the beginning.
* I rewrote generator functions of type checking strings in ShibokenGenerator.Marcelo Lira2012-03-081-60/+55
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>