aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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