summaryrefslogtreecommitdiffstats
path: root/overloaddata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'overloaddata.cpp')
-rw-r--r--overloaddata.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/overloaddata.cpp b/overloaddata.cpp
index 1be83241..3fd86baa 100644
--- a/overloaddata.cpp
+++ b/overloaddata.cpp
@@ -383,6 +383,18 @@ QPair<int, int> OverloadData::getMinMaxArguments(const AbstractMetaFunctionList
return QPair<int, int>(minArgs, maxArgs);
}
+bool OverloadData::isSingleArgument(const AbstractMetaFunctionList overloads)
+{
+ bool singleArgument = true;
+ foreach (const AbstractMetaFunction* func, overloads) {
+ if (func->arguments().size() - numberOfRemovedArguments(func) > 1) {
+ singleArgument = false;
+ break;
+ }
+ }
+ return singleArgument;
+}
+
void OverloadData::dumpGraph(QString filename) const
{
QFile file(filename);