aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Copied AbstractMetaBuilder::decideUsagePattern() method to AbstractMetaType.Marcelo Lira2012-03-091-0/+87
| | | | | The decideUsagePattern on AbstractMetaBuilder now calls the new AbstractMetaType's method.
* Fix bug 851 - "Shiboken recognizes dereference operator overload as times ↵sb-0.10.3Hugo Parente Lima2012-03-091-1/+6
| | | | | | | operator overload." Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Add AbstractMetaFunction::isCallOperator() method.Hugo Parente Lima2012-03-091-1/+6
| | | | | | | Returns true when the function is a call operator. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Skip functions added on base classes.Renato Filho2012-03-091-1/+6
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Turn some regex static, so we don't need to compile them in every function call.sb-0.10.0Hugo Parente Lima2012-03-091-2/+2
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Add more cache stuff to speed up the generation process.Hugo Parente Lima2012-03-091-39/+40
|
* Added the 'AbstractMetaField::isModifiedRemoved' method.Marcelo Lira2012-03-091-0/+17
|
* Implemented support to added functions for TypeAlias.sb-0.8.1renatofilho2012-03-091-0/+3
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Fixed AbstractMetaClassList::findEnumValue to search for the enum in all ↵Marcelo Lira2012-03-091-7/+14
| | | | classes.
* Fixed AbstractMetaClass::findEnumValue method.Marcelo Lira2012-03-091-1/+1
| | | | It was doing the opposite that it should be doing.
* Fixed function modification propagation.Renato Filho2012-03-091-2/+3
| | | | | | | 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>
* If a class have a non final method doesn't mean that class is polymorphic.Hugo Parente Lima2012-03-091-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.araujo@openbossa.org>
* Detect operator() as operator overload.Renato Filho2012-03-091-0/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Does not consider private operators.Renato Filho2012-03-091-9/+9
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed memory leak.Renato Filho2012-03-091-48/+48
| | | | | 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-48/+4
| | | | add-function tag."
* Removed unused global variable.Hugo Parente Lima2012-03-091-3/+1
|
* Fix bug#253 - "Segmentation Fault when clicked on ListWidget with TableModel"Hugo Parente Lima2012-03-091-1/+1
| | | | | | | | Tag not only abstract functions but also non private functions with "EmptyFunction" when their visibility was reduced. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Only display warning for unnamed arguments when this argument hasRenato Filho2012-03-091-1/+2
| | | | default value.
* Enable warning for arguments without name.Renato Filho2012-03-091-0/+18
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Added methods to AbstractMetaClass to verify the presence of protected members.Marcelo Lira2012-03-091-5/+14
| | | | | | | | Added methods to verify the presence of protected fields and members in general in a class. Reviewed by Renato Araújo <renato.filho@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Implemented support to flag "since" on typesystem.Renato Filho2012-03-091-1/+1
| | | | | With this flag you can specify after which version the tag became valid.
* Merge remote branch 'luck/fixprivctor'Luciano Wolf2012-03-091-0/+1
|\
| * Update class info once a default ctor is added.Luciano Wolf2012-03-091-0/+1
| |
* | TypeDatabase class moved to its own header/cpp.Hugo Parente Lima2012-03-091-0/+1
|/
* Adds convenience methods regarding copy constructors to AbstractMetaClass.Marcelo Lira2012-03-091-0/+50
|
* Fixes attributes for default constructors and class' "isPolymorphic" flag.Marcelo Lira2012-03-091-3/+4
| | | | | | | | | | | | 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.
* Meta type minimal signature should place reference symbol after pointer symbols.Marcelo Lira2012-03-091-2/+2
| | | | | | | | | | 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>
* External conversion operators are now part of a class' implicit conversions.Marcelo Lira2010-02-261-4/+7
| | | | | | | AbstractMetaClass::implicitConversions() returns externally declared conversion operators in addition to its own implicit constructors. The implicit conversion tests where extended with the new case.
* Fix AbstractMetaFunction::implicitConversions.Hugo Lima2010-02-081-2/+3
| | | | | | | | | - 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>
* Do not count user added constructor when searching for implicity conversions.Hugo Lima2010-02-031-1/+7
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Fixed implicitly conversion retrieve values, for accept constructors with ↵Renato Filho2010-01-291-1/+1
| | | | | | default arguments. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Fix AbstractMetaClass::has* methods, so they only check your own methods.Hugo Lima2010-01-261-8/+8
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Add helper method AbstractMetaClassList::findClass(const TypeEntry* typeEntry).Hugo Lima2010-01-261-0/+9
|
* When a constructor able to trigger implicity conversions is removedHugo Lima2010-01-201-1/+1
| | | | | | it should not appear in the implicity conversion list. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Fix AbstractMetaClass->isPolymorphic method, it was returning false for ↵Hugo Lima2010-01-151-4/+4
| | | | | | | | QEvent and other classes having just a virtual destructor. Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Adds normalizedSignature static method to TypeDatabase.Marcelo Lira2009-12-161-2/+2
| | | | | | | | | | | All the uses of QMetaObject::normalizedSignature were replaced to use TypeDatabase::normalizedSignature; the former always changes the unsigned primitives to the shorter versions (e.g. "unsigned int" becomes "uint") that aren't necessarily used by the parsed library. The new normalizer changes back "uNUMBER" to "unsigned NUMBER" if the former is not present in the TypeDatabase. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Modifications in ancestors are not returned if the current class ↵Marcelo Lira2009-12-161-1/+1
| | | | reimplements the function.
* Modified AbstractMetaFunction::hasSignatureModifications to check for ↵Marcelo Lira2009-12-161-0/+2
| | | | function renaming.
* Adds support for module level 'add-function' tag.Marcelo Lira2009-12-161-5/+15
| | | | | | | | | 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.
* Add public visibility for more classes.Hugo Lima2009-11-161-1/+1
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Added convenience method AbstractMetaFunction::injectedCodeSnips.Hugo Lima2009-10-301-0/+15
| | | | It returns all code snips in a function.
* Added convenience method AbstractMetaClass::findFunction.Hugo Lima2009-10-301-4/+10
| | | | | This function returns the first AbstractMetaFunction found with a given name or a null pointer if no functions were found.
* Add method AbstractMetaFunction::isCastOperator.Hugo Lima2009-10-161-0/+5
|
* Check for constructors in isVirtual function.Renato Araujo Oliveira Filho2009-09-091-1/+1
| | | | | | Fixes Bug #46. Reviewed by Hugo Parente
* AbstractMetaClass::name() and AbstractMetaType::name() now return onlyMarcelo Lira2009-08-251-2/+1
| | | | the name of the class/type without namespace/scope information
* The genesis...Hugo Lima2009-08-171-0/+2175