aboutsummaryrefslogtreecommitdiffstats
path: root/generator/overloaddata.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Added Shiboken buffer interface.Hugo Parente Lima2012-03-081-1/+10
| | | | | | | | | | | | | This interface is just a wrapper to the differents API's provided by Python to deal with memory buffers in various versions of Python, so is recommended to use this API to deal with Python memory buffers instead of the CPython API. If you want to have a Python buffer as argument of any function just change the argument type to "PyBuffer" and the generator will handle it right regarding to type checking. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* 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>
* 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.
* Overloaded call decision now consider inheritance: inheritor is checked ↵Marcelo Lira2012-03-081-14/+25
| | | | | | | | | | 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>
* 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.
* 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.
* Fix the fix that was previously reverted in d8e2d87f.Marcelo Lira2012-03-081-1/+18
| | | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Revert "Fixed overload decisor sorting to put QStrings after pointers to ↵renatofilho2012-03-081-17/+0
| | | | | | | | | | wrapped objects." This reverts commit 167959faa575856b48c951fd9cc500049004cf60. Conflicts: generator/overloaddata.cpp
* Fixed overload functions with QVariant.renatofilho2012-03-081-1/+8
| | | | | | | Decrease the QVariant priority during the function overload. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Removed debug statements mistakenly commited.Marcelo Lira2012-03-081-4/+0
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixed overload decisor sorting to put QStrings after pointers to wrapped ↵Marcelo Lira2012-03-081-0/+14
| | | | | | | | | | | | | | objects. This is a special extension for Qt bindings. Since QStrings accept None values the same way object and value types accept, to avoid confusion and calling the wrong signature QString must go after object and value pointers. This wasn't a problem before, but now QString is a primitive-type and the decisor has no access to its implicit conversions, and thus can't sort it properly. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Updated the overload sorting to handle convertible types inside containers.Marcelo Lira2012-03-081-67/+177
| | | | | | | | | | | | | | | | | | | | | | | | | The code as it is now will work for containers with wrapped types, and will also consider some primitive types implicitly convertible for dependency sorting purposes. One weakness of the current solution is that it doesn't handle all possible combinations for containers with multiple types. E.g. for Container<T1, T2>, with T1 being implicitly convertible from I1, and T2 from I2, dependency resolution will take into account * Container<T1, T2> * Container<I1, T2> * Container<T1, I2> but not * Container<I1, I2> For the time being every binding is working fine this way, when the need arises we can fix it, for now let us not slow down the generation. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Shiboken generator code moved to the directory generator.Hugo Parente Lima2012-03-081-0/+788
Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>