summaryrefslogtreecommitdiffstats
path: root/overloaddata.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-06 10:37:03 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-06 13:35:19 -0300
commit3a300338545442396f95d930afa11a7635df0bd6 (patch)
treee0730bab0df17d82093a7ebde5ccce6b49250556 /overloaddata.h
parentf69bf045ad195efe9725c2c6a483a1473cd9ce43 (diff)
downloadshiboken-3a300338545442396f95d930afa11a7635df0bd6.tar.gz
shiboken-3a300338545442396f95d930afa11a7635df0bd6.tar.xz
shiboken-3a300338545442396f95d930afa11a7635df0bd6.zip
added the method OverloadData::findNextArgWithDefault() which returns
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.
Diffstat (limited to 'overloaddata.h')
-rw-r--r--overloaddata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/overloaddata.h b/overloaddata.h
index 5fd6ff54..f80ce84d 100644
--- a/overloaddata.h
+++ b/overloaddata.h
@@ -50,6 +50,8 @@ public:
bool isHeadOverloadData() const { return this == m_headOverloadData; }
bool hasDefaultValue() const;
bool nextArgumentHasDefaultValue() const;
+ /// Returns the nearest occurrence, including this instance, of an argument with a default value.
+ OverloadData* findNextArgWithDefault();
bool isFinalOccurrence(const AbstractMetaFunction* func) const;
QList<const AbstractMetaFunction*> overloads() const { return m_overloads; }