aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-12-14 17:54:57 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-12-16 12:29:54 -0300
commitaeeb950b50a108a2475c0ee630d74420ccb3a0b3 (patch)
tree60d586e195ab17d75d1c1510ccfdf87129ad6206 /abstractmetalang.h
parent00a880f4d61a6a32f3e1dcaa4a692a6e430c123a (diff)
Adds support for module level 'add-function' tag.
The TypeDatabase now stores global added functions as well as function modifications. The AbstractMetaFunction::modifications method was improved to check for global modifications. The test suite was updated with the changes.
Diffstat (limited to 'abstractmetalang.h')
-rw-r--r--abstractmetalang.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/abstractmetalang.h b/abstractmetalang.h
index 13e3270a5..eb51dc643 100644
--- a/abstractmetalang.h
+++ b/abstractmetalang.h
@@ -1063,13 +1063,14 @@ public:
*/
CodeSnipList injectedCodeSnips(CodeSnip::Position position = CodeSnip::Any,
TypeSystem::Language language = TypeSystem::All) const;
+
/**
* Verifies if any modification to the function alters/removes its
* arguments types or default values.
* \return true if there is some modification to function signature
*/
bool hasSignatureModifications() const;
- FunctionModificationList modifications(const AbstractMetaClass *implementor) const;
+ FunctionModificationList modifications(const AbstractMetaClass* implementor = 0) const;
// If this function stems from an interface, this returns the
// interface that declares it.