summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-11 17:22:42 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:08 -0300
commit900370cf73a8ad8bd2b61285123ddc0089452089 (patch)
tree5409fd1b5925ddbe270081d71eb84125d878b260
parent243d81b4f730d4f939603aa1c5f8d60423c2c4d0 (diff)
Detect operator() as operator overload.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--abstractmetalang.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index 49789c03..df26dda9 100644
--- a/abstractmetalang.cpp
+++ b/abstractmetalang.cpp
@@ -761,6 +761,7 @@ bool AbstractMetaFunction::isOperatorOverload(QString funcName)
QRegExp opRegEx("^operator([+\\-\\*/%=&\\|\\^\\<>!][=]?"
"|\\+\\+|\\-\\-|&&|\\|\\||<<[=]?|>>[=]?|~"
"|\\[\\]|\\s+delete\\[?\\]?"
+ "|\\(\\)"
"|\\s+new\\[?\\]?)$");
return opRegEx.indexIn(funcName) > -1;
}