| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
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.
|
| | |
|
| |
| |
| |
| |
| | |
ApiExtractor is not prepared for binary compatibility, so this will happen
a lot.
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| | |
P.S.: This is a ABI change.
|
| | |
|
|/
|
|
|
|
|
|
|
| |
The majority of users don't need tests built. This will reduce build time
significantly, and packagers will be thanked for it. To not build tests append
-DBUILD_TESTS=False to cmake parameters.
Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
|
|
|
|
| |
With this method we can get the string used in typesystem to declare the
container type (list, set, map, pair, etc).
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Also updated other tests dealing with constructor counting.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
|
| |
|
|
|
|
| |
This prevents the generation of undesired implicit conversions.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a class has no constructor explicitly declared a default is
provided by API Extractor, but it should be marked as "Final".
The setting of the "isPolymorphic" flag done in the
AbstractMetaClass::addFunction method must take into account if
the class has a virtual destructor, as it is done in the
AbstractMetaClass::setFunctions method.
The already existing tests cover the cases affected by the changes.
|
|
|
|
| |
This commit adds a test for that situation.
|
|
|
|
|
|
|
|
| |
Our changelog is just the output of git log, so it's added only on source packages
and don't need to stay in the git repository.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The minimalSignature method was placing '&' before '*'. For example,
the signature "foo(Bar*&)" was becoming "foo(Bar&*)".
An unit test was added to verify AbstractMetaType::minimalSignature().
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org>
|
|
|
|
|
|
|
| |
generator.
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
|
|
|
|
|
| |
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
|
|
|
|
|
|
|
|
|
| |
The error checking that avoids duplicated conversion rules
definitions applies only to general type conversions, not to
cases specified to a function argument.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
|
|
|
|
|
| |
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
|
| |
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
AbstractMetaClass::implicitConversions() returns externally declared
conversion operators in addition to its own implicit constructors.
The implicit conversion tests where extended with the new case.
|
|
|
|
|
|
|
|
|
|
| |
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!
|