| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Plus tests.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
|
|
|
|
|
| |
This is done to allow enum value evaluation.
Comes together with a nice test.
|
|
|
|
|
|
|
|
| |
In particular when an enum item is set to the value of an item from
other enum. The code for this was moved to the method
AbstractMetaBuilder::findOutValueFromString.
Tests were added as well.
s# ../tests/.testenum.h.swp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In other words, this
enum {
Positive = true,
Negative = false
};
is now properly recognized.
Tests were added as usual.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
|
|
|
|
|
|
|
|
|
|
|
| |
The AbstractMetaBuilder::translateType method now tries to figure out
properly the size of array argument types specified with enum items
instead of literal numbers.
Test cases were also added.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
|
|
|
|
|
| |
They check if the AbstractMetaEnumValues hold the correct value
information about the enum item described.
|
|
|
|
|
|
|
| |
Also added a new cases to test the nesting of type tags a bit more.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
|
| |
|
|
|
|
|
|
|
| |
Now all modifications on base function will be propagate until a new modification was found.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Lauro Moura <lauro.neto@openbossa.org>
|
|
|
|
|
| |
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Renato Araújo <renato.araujo@openbossa.org>
|
| |
|
|
|
|
|
| |
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
| |
add-function tag."
|
|
|
|
|
| |
The test is simple and only checks if the classes were inherited
properly.
|
| |
|
|
|
|
|
|
|
| |
This test case is similar to a previous test with forward declaration
except that this time everything is inside a namespace. This slightly
different situation could trigger problems in a different place
on AbstractMetaBuilder.
|
| |
|
|
|
|
|
| |
When things goes awry methods from the template parent class got
duplicated in the inheriting class.
|
|
|
|
|
|
| |
Methods or functions signatures using any type from the library being
wrapped must be processed after all the library types or else the
function/method will be rejected.
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>,
Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
| |
default value.
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>,
Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>,
Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
|
|
| |
The default-constructor attribute specifies a way to build an instance
of a class declared as primitive type using default arguments.
Documentation and a test were also added.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
|
|
|
|
|
| |
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araujo <renato.filho@openbossa.org>
|
| |
|
|
|
|
| |
template class.
|
|
|
|
|
|
|
| |
namespace.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Reviewer: Renato Araújo <renato.araujo@openbossa.org>
|
| |
|
|\ |
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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 commit adds a test for that situation.
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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!
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
| |
|
|
|
|
|
|
|
|
| |
The type system tag '<reference-count action="Add|Remove|..."/>' used
on argument modification was uncommented, documentation was written and
a unit test was created for it.
Reviewed by Hugo Parente <hugo.lima@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 Renato Araújo <renato.filho@openbossa.org>
|