aboutsummaryrefslogtreecommitdiffstats
path: root/generator/shibokengenerator.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug 823 - "Shiboken doesn't support function call overloads"Hugo Parente Lima2012-03-081-0/+3
|
* 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]
* Implement support to operator++;Renato Filho2012-03-081-0/+2
| | | | | | | 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-0/+9
| | | | | | | | | | 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>
* The option "avoid protected hack" is now set via command line.sb-1.0.0-rc1Marcelo Lira2012-03-081-66/+63
| | | | | | | | 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>
* Overloaded call decision now consider inheritance: inheritor is checked ↵Marcelo Lira2012-03-081-2/+2
| | | | | | | | | | 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>
* Implemented support to iterator function generation.Renato Araujo Oliveira Filho2012-03-081-0/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* 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#633 - "bool of null QDate (possibly other empty QString/null QObj ↵Hugo Parente Lima2012-03-081-0/+8
| | | | | | | types?) returns True for empty instance; probably should be False" Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Add support for operator overload injection.Hugo Parente Lima2012-03-081-0/+5
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Added support for promoting enums from removed namespaces to upper scope.Marcelo Lira2012-03-081-0/+32
| | | | | | | | | | Classes in namespaces marked not to be generated are always moved to upper scopes, the current modification add this same behaviour to enums. Tests were also added. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix bug#484 - "Error compiling QtContacts 1.1 (problems with const ↵Hugo Parente Lima2012-03-081-4/+6
| | | | | | | QList<QVariant>)" Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Generator now writes the proper variable name on C++ constructor calls.Marcelo Lira2012-03-081-1/+2
| | | | | | When a conversion rule is provided for a constructor argument the C++ constructor, for which the conversion rule doesn't apply, is generated with wrong argument names. This commit solves this.
* Do not use const and ref when writing converters for object-types, qflags, ↵Hugo Parente Lima2012-03-081-5/+5
| | | | const ref. value types and enums.
* namespace Shiboken::BaseType renamed to Shiboken::ObjectType.Hugo Parente Lima2012-03-081-3/+7
|
* Variable SbkBaseWrapperType_Type renamed to SbkObjectType_TypeHugo Parente Lima2012-03-081-1/+1
|
* Remove unused variables.Hugo Parente Lima2012-03-081-2/+0
|
* Don't use ref. on primitive types when using Converter<T>::toPython.Hugo Parente Lima2012-03-081-2/+23
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Uses a constant to define the cpp_arg variable, now called cppArg.Hugo Parente Lima2012-03-081-2/+2
|
* Simplifies the generated code removing the use of std::auto_ptr.Hugo Parente Lima2012-03-081-4/+0
|
* Write right check type function when guessing the check function for a valid ↵Hugo Parente Lima2012-03-081-1/+1
| | | | type.
* Shiboken generator code moved to the directory generator.Hugo Parente Lima2012-03-081-0/+1651
Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>