aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.cpp
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-09-01 13:35:40 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:09 -0300
commit2d170a0b8b1519befc4cdad57a0a46ccf8d16e0a (patch)
treebd7b63fd5bc1385412f4dea1f3a10cd5a17f599a /typesystem.cpp
parent869b35c10ef573771532c6f2cb017dbfab315e61 (diff)
Fixed function modification propagation.
Now all modifications on base function will be propagate until a new modification was found. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'typesystem.cpp')
-rw-r--r--typesystem.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index 31c4f547e..f92ea01dd 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -1783,6 +1783,37 @@ QString FunctionModification::toString() const
return str;
}
+bool FunctionModification::operator!=(const FunctionModification& other) const
+{
+ return !(*this == other);
+}
+
+bool FunctionModification::operator==(const FunctionModification& other) const
+{
+ if (signature != other.signature)
+ return false;
+
+ if (association != other.association)
+ return false;
+
+ if (modifiers != other.modifiers)
+ return false;
+
+ if (removal != other.removal)
+ return false;
+
+ if (m_thread != other.m_thread)
+ return false;
+
+ if (m_allowThread != other.m_allowThread)
+ return false;
+
+ if (m_version != other.m_version)
+ return false;
+
+ return true;
+}
+
static AddedFunction::TypeInfo parseType(const QString& signature, int startPos = 0, int* endPos = 0)
{
AddedFunction::TypeInfo result;