| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
QList copy is cheap, because it's implicity shared, but const references are much more cheap indeed.
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Reviewer: Renato Araújo <renato.araujo@openbossa.org>
|
| |
|
| |
|
|
|
|
|
| |
Enum values are in global namespace, so sometimes you need to get them from TypeDatabase,
a use case for this is a template class where the template parameter is a enum value.
|
|
|
|
|
|
| |
bug on boost::python which
doesn't exists nowadays.
|
|
|
|
|
| |
Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
Reviewer: Renato Filho <renato.filho@openbossa.org>
|
|
|
|
|
|
|
| |
with generate=no.
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Reviewer: Renato Araújo <renato.araujo@openbossa.org>
|
|
|
|
| |
the parser.
|
| |
|
|
|
|
|
| |
- An inner class depends on their enclosed class.
- A class depends on their namespace.
|
|
|
|
|
|
| |
exists or
it's the global header.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change the behaviour of ApiExtractor regarding to global functions.
All global function you want to be exported to python *need* to be especified
in the type system with the function tag, otherwise they wont be exported at all.
The syntax for this new tag is:
<function signature="..." />
This is just the initial work for this tag, it is missign support for:
- Function modifications.
- Add a function overload with add-function tag.
|
|
|
|
|
|
|
|
|
|
| |
These methods were moved to AbstractMetaFunction, because they are created
to store the include file of global enums and functions, but for enums, we
store the include file in TypeEntry, as functions doesn't have TypeEntries,
only global functions need this.
Also the new version of includeFile returns a instance of Include class
instead of a QString.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
AbstractMetaBuilder::traverseOperatorFunction does additional checks
to avoid mistaken a class' reverse operator as a direct operator of
another class.
An unit test was added to check for this case.
Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org>
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
|
|
| |
API Extractor does not add operator functions from the module being
processed for generation to a class belonging to a referred module,
that should not be generated.
|
| |
|
|
|
|
| |
This prevents the generation of undesired implicit conversions.
|
|
|
|
| |
for graph topological sort.
|
|
|
|
|
|
| |
With tests, of course.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
|
| |
The code to add the external conversion operators for a class found
in another class was moved to its own function, setupExternalConversions,
that is called after all classes were traversed.
Not all classes are ready when fixReturnTypeOfConversionOperator(metaFunc),
the method where the moved code dwelt, is called.
|
|
|
|
|
|
|
|
|
|
| |
The new method fixes the return type of conversion operators:
they should return the target of the conversion as type and not
the type of its owner class.
fixReturnTypeOfConversionOperator is used in traverseFunctions.
An unit test was added for this case.
Note that this behaviour could be fixed in the parser. I dare you!
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
|
|
| |
- Public ctors added by the user with 1 value-type parameter are always added to the implicity
conversion list.
- If the ctor visibility of an function was modified from public to private, the function isn't
added to the result.
Reviewed by Renato Araújo <renato.filho@openbossa.org>
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
| |
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
|
|
| |
VarargsTypeEntry.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
|
|
| |
The TypeDatabase now stores global added functions as well as
function modifications.
The AbstractMetaFunction::modifications method was improved to
check for global modifications.
The test suite was updated with the changes.
|
|
|
|
|
|
| |
Created tests.
Reviewed by Hugo Lima <hugo.lima@openbossa.org>
|
|
|
|
|
|
| |
are marked as CustomType isntead of TargetLangType.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
|
|
|
|
| |
indicate that it was added by the user or not, instead of using the
AbstractMetaFunction::UserAddedFunction enum value. The old way
prevented the function to be an UserAddedFunction and a
ConstructorFunction at the same time, since this information was
stored as an enum of the AbstractMetaFunction::FunctionType type.
A test case was also added.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
| |
on AbstractMetaClass objects. Also added tests for this.
|
|
|
|
| |
Reviewed by Lauro Moura <lauro.moura@openbossa.org>
|
|
|
|
|
|
|
| |
- Reverse operators aren't tagged as static methods anymore.
- Reverse operators now have just one parameter, the one that matters.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
|
|
| |
The global operator function was being added to a class' method list
but without modifying the argument list by removing the owner class.
It was removed a long time ago when working on boostpythongenerator.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
| |
Also added documentation
|
| |
|
|
|
|
|
|
| |
now decide the usage pattern for the AbstractMetaTypes of the arguments.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
| |
Reviewed by Renato Araujo <renato.filho@openbossa.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
originalDefaultValue.
- If there are no typesystem modifications, originalDefaultValue will be equals to
defautlvalue, so originalDefaultValue will not be the same string found by the
C++ parser, it will be usefull only to check if there are some default values
modifications.
|
|
|
|
|
|
| |
This fix bring to much regressions.
This reverts commit 752c22056f4ba61961a01819992f9af71a3b0416.
|
|
|
|
|
|
|
|
| |
ApiExtractor tries to modify the defaultValue every time, so then return value of
originalDefaultValue() if diferent from the return value of defaultValue() when
they dont need to be.
Unit test included.
|
| |
|
|
|
|
|
|
| |
Separeted value pointers from native pointer for help generators.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|