From aeeb950b50a108a2475c0ee630d74420ccb3a0b3 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Mon, 14 Dec 2009 17:54:57 -0300 Subject: 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. --- typesystem.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'typesystem.h') diff --git a/typesystem.h b/typesystem.h index cb26c1dbd..2c9be3e31 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; -- cgit v1.2.3