| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Changed the second argument from AbstractMetaType to AbstractMetaArgument,
this helps to get the correct type replacement information for arguments.
|
|
|
|
|
|
| |
Now sorting OverloadData recursively
Reviewer: Renato Filho <renato.filho@openbossa.org>
|
|
|
|
| |
Reviewed by Hugo Parent <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
| |
OverloadDecisor received some new methods: hasStaticFunction,
hasInstanceFunction and hasStaticAndInstanceFunctions.
They are useful to check if an overload contains both static and
non-static signatures.
|
|
|
|
|
| |
The method checks if any of the functions in OverloadData have
allow-thread flag set to true.
|
|
|
|
| |
among the overloads.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
| |
Instead of using the current weight-based overload
sorting, sort them topologically based on implicit
conversions.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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
|
|
the class' function; other relative renamings were also performed
|