aboutsummaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
* Don't create cyclic graphs when there are QString, PySequence and PyObjects ↵sb-1.0.2Hugo Parente Lima2012-03-081-1/+2
| | | | | | | involved into a single overload. Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Write graph info on temp dir when some a cyclic graph is found.Hugo Parente Lima2012-03-081-1/+10
|
* Overload decisor was improved to consider PySequences on modified function ↵Marcelo Lira2012-03-081-4/+22
| | | | | | | | | signatures. Unit tests were added as usual. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Renato Araujo <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>
* Fix bug regarding to two overloads like: foo(char) and foo(const char*)Hugo Parente Lima2012-03-081-9/+14
| | | | | The overload decisor was unable to find the difference between them. This code was wrote by Setanta in an experimental branch, so kudos to him.
* Implemented generation code for mapping protocolRenato Filho2012-03-082-3/+95
| | | | | | | 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-082-6/+22
|
* Remove GCC 4.6 warning on basewrapper.cpp and shibokengenerator.cppHugo Parente Lima2012-03-081-2/+0
| | | | | libshiboken/basewrapper.cpp:212:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] generator/shibokengenerator.cpp:1118:9: warning: variable ‘numArgs’ set but not used [-Wunused-but-set-variable]
* 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-082-1/+9
| | | | | | | 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-083-4/+15
| | | | | | | | | | 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-084-254/+215
| | | | | | | | 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-083-9/+55
| | | | 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>
* Overloaded call decision now consider inheritance: inheritor is checked ↵Marcelo Lira2012-03-083-18/+29
| | | | | | | | | | before ancestor. A couple of ShibokenGenerator methods were made "const" to allow them to be called from OverloadDecisor. 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-082-2/+4
| | | | | 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>
* Don't write return heuristic when there's a parent tag with the returned ↵Hugo Parente Lima2012-03-081-6/+9
| | | | | | | object involved. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed a type on a warning about polymorphic-id-expression.Marcelo Lira2012-03-081-1/+1
| | | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 616 - "error compiling when public and private methods differ by the ↵Hugo Parente Lima2012-03-083-7/+57
| | | | | | | const-ness" Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix bug 655 - "bad re-implementations of QApplication.notify result in a ↵Hugo Parente Lima2012-03-081-1/+8
| | | | | | | SystemError" Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Shiboken binary now responds to the "--version" argument.Marcelo Lira2012-03-083-3/+21
| | | | | The version command line argument was previously answered by GeneratorRunner. This commit also generally updates some CMake files.
* Shiboken executable calls GeneratorRunner with the renamed "--generator-set" ↵Marcelo Lira2012-03-081-1/+1
| | | | argument.
* Fix bug613 - "QSvgRenderer chooses QByteArray overload when given a file path"Hugo Parente Lima2012-03-081-1/+5
| | | | | | | QString arguments will always be evaluated before QByteArray arguments. Reviewer: Luciano Wolf <lucianol.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix regression that caused overload sorting to not respect argument type ↵Hugo Parente Lima2012-03-081-9/+14
| | | | renames.
* Added the "%CPPTYPE" type system variable.Marcelo Lira2012-03-081-0/+4
| | | | | | | | | | %CPPTYPE will be converted to the original C++ name of a class, without any "Wrapper" suffix or namespace prefix. Documentation for the new variable was added as well. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Type system %TYPE variable is now available for class wide custom code.Marcelo Lira2012-03-081-0/+1
| | | | %TYPE documentation was updated.
* Fix bug#640 - "(elasticnode) Crash in example elasticnodes.py"Hugo Parente Lima2012-03-081-3/+4
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#633 - "bool of null QDate (possibly other empty QString/null QObj ↵Hugo Parente Lima2012-03-084-3/+50
| | | | | | | 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 windows compilation.Renato Araujo Oliveira Filho2012-03-082-7/+20
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Used c++ pointer during the c++ class attribute get function.Renato Araujo Oliveira Filho2012-03-081-6/+28
| | | | | | | | Now all function get for class attribute return the internal memory of the c++ attribute. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* The overload decisor must put enums before types implicitly convertible from ↵Marcelo Lira2012-03-081-0/+23
| | | | | | | | integers. Otherwise the enum value will be an acceptable argument for a class that expects an integer (signed or unsigned) to be implicitly built, and the enum argument will never be called.