| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
|
|
|
|
|
|
|
| |
The hasArgumentWithDefaultValue methods from OverloadData returns
true if any argument in the overloads or in the single function
passed has a default value assigned to it.
A non-static version of this method uses the overloads described
by the OverloadData object.
Also added the method getArgumentsWithDefaultValues(func) to return
a list of the function's arguments that have default values.
|
|
|
|
|
| |
The methods originally accept copies of AbstractMetaFunctionLists,
now they use references instead.
|
|
|
|
|
|
|
| |
The method OverloadData::overloadsWithoutRepetition() returns the
overload list of the OverloadData object removing "almost" duplicated
functions. For our purposes "foo()" and "foo()const" means the same,
so the constant version is removed.
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Reviewer: Renato Araújo <renato.araujo@openbossa.org>
|
|
|
|
| |
Also fixed some typos and imprecisions on comments.
|
|
|
|
|
|
|
| |
Also in this commit: enums now takes precedence over unsigned int and unsigned long.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
|
|
|
|
|
|
| |
Enums are implicitly converted to these types in C++, if we dont do that
the enum version of some functions can never be called, because the int one
will be if the int check was written before the enum check.
|
| |
|
|
|
|
|
|
| |
Previously all implicit conversions were constructors, now they could be
conversion operators, with no explicit arguments except for the owner
class where they where defined.
|
|
|
|
|
|
|
|
| |
PyNumber_Check or a more specific type check function.
- Promote bool type as a specialization of int, as we do with float.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
| |
overload data tree.
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
arguments.
Reviewed by Marcelo Lira <marcelo.lira@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.
|
|
|
|
|
|
| |
The parameter "finalArgPos" refers to a position in the modified
function, when it is provided the removed argument counter must
consider the removed arguments before the final position.
|
| |
|
|
|
|
|
|
| |
PyObject_Check should be the last one in the overload type check
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
|
|
|
| |
Now adding a new dependency: If the overload type is a
container or template and the contained type is also in the
overload list, the contained type is checked first.
Added due to QList<String> and QString.
WARNING: Not sure yet if this is the best fix :)
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@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
|