aboutsummaryrefslogtreecommitdiffstats
path: root/overloaddata.h
Commit message (Collapse)AuthorAgeFilesLines
* Added previousOverloadData attribute to OverloadData, so we cna walk on ↵Hugo Lima2010-02-191-0/+2
| | | | overload data tree.
* Modified signature of OverloadData::addOverloadData.Marcelo Lira2010-02-081-1/+1
| | | | | Changed the second argument from AbstractMetaType to AbstractMetaArgument, this helps to get the correct type replacement information for arguments.
* Fixing sort overloadLauro Neto2010-02-081-1/+1
| | | | | | Now sorting OverloadData recursively Reviewer: Renato Filho <renato.filho@openbossa.org>
* Fixing includesLauro Neto2010-01-261-1/+1
| | | | Reviewed by Hugo Parent <hugo.lima@openbossa.org>
* Adds helpers to OverloadData to check for static and non-static methods.Marcelo Lira2010-01-191-1/+19
| | | | | | | OverloadDecisor received some new methods: hasStaticFunction, hasInstanceFunction and hasStaticAndInstanceFunctions. They are useful to check if an overload contains both static and non-static signatures.
* Adds OverloadData::hasAllowThread() method.Marcelo Lira2010-01-151-0/+3
| | | | | The method checks if any of the functions in OverloadData have allow-thread flag set to true.
* Adds OverloadData::hasVarargs() which says if there is a varargs argument ↵Marcelo Lira2009-12-181-0/+3
| | | | among the overloads.
* Added convenience method OverloadData::isSingleArgument(overloads).Marcelo Lira2009-11-261-0/+2
|
* Renamed OverloadData::hasDefaultValue to ↵Marcelo Lira2009-11-231-1/+3
| | | | | | | | | OverloadData::getFunctionWithDefaultValue and modified it to return a pointer to the actual AbstractMetaFunction with the default value (or NULL if it doesn't has the value), instead of just returning a boolean. The overload decisor writer makes use of this new behavior to get the correct function for a method call with default values.
* Added methods to OverloadData:Marcelo Lira2009-11-201-0/+11
| | | | | | | | | | * OverloadData* headOverloadData() const; Return the root OverloadData object for the current OverloadData. * QStringList returnTypes() const; Returns a list of the possible return types for the current OverloadData. * bool hasNonVoidReturnType() const; Returns true if any of the overloads for the current OverloadData has a return type different from void.
* OverloadData does not ignore arguments which modify types.Hugo Lima2009-11-161-1/+4
|
* Sorting overloads topologicallyLauro Neto2009-11-101-3/+2
| | | | | | | | Instead of using the current weight-based overload sorting, sort them topologically based on implicit conversions. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* added the method OverloadData::findNextArgWithDefault() which returnsMarcelo Lira2009-11-061-0/+2
| | | | | | | the nearest occurrence of an argument with a default value. this could be used when the overload has only one signature and some of the arguments ahead could have default values leading to more than one way of calling the method.
* improved OverloadData class to sort the alternative arguments puttingMarcelo Lira2009-10-301-2/+8
| | | | | | the primitive types first and moving down the wrapper objects with more implicit converversions; this ordering scheme is needed to avoid unnecessary (and sometimes wrong) conversions
* renamed PolymorphicData class to OverloadData, this should represent correctlyMarcelo Lira2009-09-021-0/+87
the class' function; other relative renamings were also performed