aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fixed polymorphic value for classes.sb-0.9.2Renato Araujo Oliveira Filho2012-03-091-0/+4
| | | | | | | Fixes bug #587. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Add support to fix bug#493 - "__eq__ and friends not implemented for ↵Hugo Parente Lima2012-03-091-2/+6
| | | | | | | QKeyEvent == QKeySequence" Reviewer: Renato Araújo <renato.filho@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Discards class' fields removed in the type system binding description.Marcelo Lira2012-03-091-1/+1
|
* Implemented support to added functions for TypeAlias.sb-0.8.1renatofilho2012-03-091-0/+9
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Better qproperty function checkLauro Neto2012-03-091-5/+11
| | | | | | | | | | | | | | Now checking for the full specs: Getter: TYPE name(void) Setter: void name(TYPE) Resetter: void name(void) The previous behavior was crashing when there is a different overload with the same name of one of the property functions. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
* Change "or" to "||".Hugo Parente Lima2012-03-091-1/+1
|
* Add toStringCapability attribute to AbstractMetaClass.Hugo Parente Lima2012-03-091-4/+1
| | | | | | | | This capatility indicates that the given type has a QDebug::operator<< function, so it's only useful when using PySide extensions. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added a better support for resolution of enum value attribution.Marcelo Lira2012-03-091-6/+25
| | | | | | | Plus tests. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Private enums are now accepted in the type system database.Marcelo Lira2012-03-091-8/+11
| | | | | This is done to allow enum value evaluation. Comes together with a nice test.
* Improved resolution of enum value attributions.Marcelo Lira2012-03-091-40/+37
| | | | | | | | 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
* Avoid check ifr include file exists during the generation.renatofilho2012-03-091-2/+1
| | | | | | | Fixes bug #382. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed AbstractMetaBuilder to handle enum values receiving boolean values.Marcelo Lira2012-03-091-17/+25
| | | | | | | | | | | | | | | | 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>
* Fixes compiler warning on AbstractMetaBuilder.Marcelo Lira2012-03-091-1/+1
|
* Fixes segmentation fault caused by bad handling of global enums.Marcelo Lira2012-03-091-15/+15
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Argument types that are arrays with specified sizes are correctly recognized.Marcelo Lira2012-03-091-3/+21
| | | | | | | | | | | 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>
* The AbstractMetaBuilder::figureOutEnumValues method now operates over global ↵Marcelo Lira2012-03-091-0/+10
| | | | enums.
* Anonymous enums now supported.Marcelo Lira2012-03-091-1/+15
|
* Created function to discovery when a class implement a container type.Renato Filho2012-03-091-0/+1
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed error during the property functions parser.Renato Filho2012-03-091-1/+2
| | | | | | | Fixes bug #302 Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix wrong behaviour of topological sort.Luciano Wolf2012-03-091-2/+4
| | | | | | | | When dealing with repeated and unordered classes it can generate an invalid result array. Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fixed memory leak.Renato Filho2012-03-091-17/+40
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#260 - "Can't modify argument name of a function added with ↵Hugo Parente Lima2012-03-091-2/+29
| | | | add-function tag."
* Namespaces must be traversed recursively as they should.Marcelo Lira2012-03-091-16/+56
|
* Guarantees that namespaces and inner classes will not be repeated.Marcelo Lira2012-03-091-2/+10
| | | | | Lists of global namespaces, inner classes and inner namespaces now have duplicated entries removed.
* Fixes usage of std::unique method.Marcelo Lira2012-03-091-0/+1
| | | | | std::unique looks for adjacent duplicates in a list, so it needs to be sorted for the algorithm to work in all items.
* Class members are traversed after the classes themselves.Marcelo Lira2012-03-091-4/+33
| | | | | | To prevent a method that uses a type that was not ready at the moment of analysis, the classes are traversed separately and before the class members, namely fields and methods.
* Type translation now looks in the class' parent scope.Marcelo Lira2012-03-091-4/+20
| | | | | When trying to figure out a type the AbstractMetaBuilder::translateType method should also look in the class' parent scope.
* Fixed namespace resolution name.Renato Filho2012-03-091-1/+14
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Fix trivial spelling errors.Renato Filho2012-03-091-1/+1
| | | | | | | Author: Didier Raboud <didier@raboud.com> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Fixes AbstractMetaBuilder::fixDefaultValue method.Marcelo Lira2012-03-091-2/+0
| | | | | | | | | | For some reason if a default value given to above mentioned function is exactly "QVariant::Invalid" it is turned into "0". This is done for no apparent reason and causes the Python binding generator to produce bad source code for the QtSql module bindings. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Exclude signals from named arguments check test.Luciano Wolf2012-03-091-1/+1
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Append more details on message related to nameless arguments.Renato Filho2012-03-091-1/+1
|
* Only display warning for unnamed arguments when this argument hasRenato Filho2012-03-091-13/+6
| | | | default value.
* Fixed warning message output.Renato Filho2012-03-091-5/+14
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Enable warning for arguments without name.Renato Filho2012-03-091-0/+4
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Simplify progress message.Renato Filho2012-03-091-5/+5
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Hugo Parente Lima <hugo.lima@openbossa.org>
* Use qualified c++ names instead to do the topological sort.Hugo Parente Lima2012-03-091-8/+28
| | | | | | | | Not using topological sort will generate an incorrect sorting when there are two or more classes with the same name in different scopes. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.araujo@openbossa.org>
* Disabled GCC optimization flags by default.Renato Filho2012-03-091-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Implemented support to flag "since" on typesystem.Renato Filho2012-03-091-9/+36
| | | | | With this flag you can specify after which version the tag became valid.
* Remove ancient code commented out years ago.Hugo Parente Lima2012-03-091-144/+0
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Comestic changes to follow our code style.Hugo Parente Lima2012-03-091-112/+111
|
* When the class is a alias for a template class, proper rename their ↵Hugo Parente Lima2012-03-091-0/+1
| | | | constructors.
* When the class is a alias for a template class, copy all properties from the ↵Hugo Parente Lima2012-03-091-0/+10
| | | | base class.
* Remove useless castType variable.Hugo Parente Lima2012-03-091-12/+1
|
* Do not add the base class as a dependency if the base class is not in the graph.Hugo Parente Lima2012-03-091-2/+4
|
* Add better error message when a cyclic type dependency is found.Hugo Parente Lima2012-03-091-1/+10
|
* Do not copy the QList, use a const reference instead.Hugo Parente Lima2012-03-091-5/+1
| | | | QList copy is cheap, because it's implicity shared, but const references are much more cheap indeed.
* Tag user added function inside namespaces as static functions.Hugo Parente Lima2012-03-091-0/+2
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Araújo <renato.araujo@openbossa.org>
* Fixes template instanciation when the template parameter is a enum value.Hugo Parente Lima2012-03-091-47/+33
|
* Only add an enclosing class to the dependency graph if it's part of the graph.Hugo Parente Lima2012-03-091-1/+1
|