| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use SbkNumber_Check instead of PyNumber_Check, because PyNumber_Check returns true
for all user types.
This commit also disable the generation of _Check macros and replaces all entries
with Converter<T>::checkType.
Those changes are on the same commit because SbkNumber_Check conflicts with a macro
generated by "other" binding which binds a type named "Number".
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
|
|
|
|
|
|
|
| |
rules on Linux.
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
|
| |
|
|
|
|
|
| |
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
|
| |
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
|
| |
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
| |
Implemented 'variable-name' support on 'reference-count' tag.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
|
| |
|
| |
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
|
| |
|
|
|
|
|
|
|
| |
namespace.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
|
| |
Only C++ arguments with default values will be turned into Python
named arguments.
|
|
|
|
|
|
| |
It accepts an AbstractMetaFunction and returns the full name in
Python, including the module namespace.
E.g.: "sample.SimpleFile.exists"
|
|
|
|
|
|
|
| |
The default values for arguments are simple strings, sometimes during
binding code generation scope information is needed. The method
ShibokenGenerator::guessScopeForDefaultValue tries to guess scope
information for default values.
|
|
|
|
|
|
| |
This method is needed because you can not call Converter<T>::isConvertible inside
a Converter<Y>::isConvertible implementation, otherwise it'll create a 2-step
implicit conversion.
|
|
|
|
| |
Tests were also added.
|
|
|
|
|
|
| |
This fix is specific for the cases when the "protected hack" is
turned off.
Also added some tests.
|
| |
|
|
|
|
|
|
|
|
|
| |
* Export enums without macro
* Declare virtual destructor on all classes with virtual functions
* Fix extern "C" declaration scope
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Reviewer: Renato Araújo <renato.araujo@openbossa.org>
|
| |
|
|
|
|
|
| |
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
|
| |
|
| |
|
|
|
|
|
| |
The method now checks native code injections instead of only target
language code.
|
|
|
|
|
|
|
| |
This method tries to build an AbstractMetaType from a string, it is
used by guessCPythonCheckFunction to better handle type replacements
identifying types already known by the type database for the currently
generated, instead of treating said replacements as mere blobs.
|
| |
|
|
|
|
|
|
|
|
|
| |
The new semantic is:
Returns true when the type can be converted to T OR the type is T.
The old semantic was:
Returns true when the type can be converted to T and false if the
type is T, however int and float converters did not follow this
rule, because they used PyNumber_Check on their isConvertible implementation.
|
| |
|
|
|
|
|
|
|
|
| |
ShibokenGenerator got the methods:
* QString extendedIsConvertibleFunctionName(TypeEntry*)
Returns the name of an extended "isConvertible" function.
* QString extendedToCppFunctionName(TypeEntry*)
Returns the name of an extended "toCpp" function.
|
|
|
|
|
|
| |
It returns all types from a previous module that could be generated
by a conversion operator defined in the current module, as well as
all the possible arguments for the conversion.
|
|
|
|
|
|
|
| |
Two methods with references to object type and value type pointers
were added to BlackBox test class just to check the compilation.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
| |
The macros for casting a wrapper C++ void pointer to a specific
C++ pointer are no longer generated, converters are used instead.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
| |
The new method returns a flat list of all the given class' ancestors.
|
|
|
|
|
|
| |
AbstractMetaType.
This is needed by hash function writer.
|
| |
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
|
| |
PyNumber_Check or a more specific type check function.
- Promote bool type as a specialization of int, as we do with float.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
| |
It checks if an AbstractMetaType represents a C++ pair container.
Also updated code to make use of the new method.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
|
|
|
|
|
| |
It checks if an AbstractMetaType represents a C string.
Also updated code to make use of the new method.
|
|
|
|
|
|
|
| |
This will increase the binding size, so there's an option to disable
verbose error messages. "--disable-verbose-error-messages"
Reviewed by Renato Araújo <renato.filho@openbossa.org> and Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
| |
To access Sbk*Type variables from other modules, you need to use the array provided via CObjects.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
| |
ShibokenGenerator::needsReferenceCountControl checks the object
and all its ancestry for the need to support reference counting
control of other objects pointed by the present class.
|
|
|
|
|
|
| |
The new expressively named methods hasMethodsWithReferenceCountModifications
and needsReferenceCountControl returns boolean values to help generation
of code for reference counting support.
|
|
|
|
|
|
|
| |
Added the following self evident methods to ShibokenGenerator:
* QString cpythonGettersSettersDefinitionName(const AbstractMetaClass*);
* QString cpythonGetterFunctionName(const AbstractMetaField*);
* QString cpythonSetterFunctionName(const AbstractMetaField*);
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
| |
Argument removal and type modification no longer affects the generation
of virtual method signatures in the binding code.
|
|
|
|
| |
Reviewed by Renato Araújo <renato.filho@openbossa.org>
|