aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-12-15 15:01:04 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-12-16 12:29:57 -0300
commit5900a05a2079a60a71500ffa1de56e58fbd9c1e0 (patch)
treebeb34f30e75ca74d86e7b547b563a951d0c3daa9 /abstractmetalang.cpp
parentaeeb950b50a108a2475c0ee630d74420ccb3a0b3 (diff)
Modified AbstractMetaFunction::hasSignatureModifications to check for function renaming.
Diffstat (limited to 'abstractmetalang.cpp')
-rw-r--r--abstractmetalang.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index 9643d5f8..e3b431dd 100644
--- a/abstractmetalang.cpp
+++ b/abstractmetalang.cpp
@@ -725,6 +725,8 @@ CodeSnipList AbstractMetaFunction::injectedCodeSnips(CodeSnip::Position position
bool AbstractMetaFunction::hasSignatureModifications() const
{
foreach (const FunctionModification mod, modifications()) {
+ if (mod.isRenameModifier())
+ return true;
foreach (const ArgumentModification argmod, mod.argument_mods) {
// since zero represents the return type and we're
// interested only in checking the function arguments,