aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.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 /typesystem.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 'typesystem.h')
-rw-r--r--typesystem.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/typesystem.h b/typesystem.h
index cb26c1db..2c9be3e3 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -1876,6 +1876,26 @@ public:
m_templates[t->name()] = t;
}
+ AddedFunctionList addedFunctions() const
+ {
+ return m_addedFunctions;
+ }
+ void setAddedFunctions(const AddedFunctionList& addedFunctions)
+ {
+ m_addedFunctions = addedFunctions;
+ }
+ AddedFunctionList findAddedFunctions(const QString& name) const;
+
+ void setFunctionModifications(const FunctionModificationList& functionModifications)
+ {
+ m_functionMods = functionModifications;
+ }
+ void addFunctionModification(const FunctionModification& functionModification)
+ {
+ m_functionMods << functionModification;
+ }
+ FunctionModificationList functionModifications(const QString& signature) const;
+
void setSuppressWarnings(bool on)
{
m_suppressWarnings = on;
@@ -1932,6 +1952,9 @@ private:
TemplateEntryHash m_templates;
QStringList m_suppressedWarnings;
+ AddedFunctionList m_addedFunctions;
+ FunctionModificationList m_functionMods;
+
QStringList m_requiredTargetImports;
QStringList m_typesystemPaths;