summaryrefslogtreecommitdiffstats
path: root/qmake/project.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-04-21 19:11:05 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-04-30 15:01:59 (GMT)
commit987b5d06c5e1a30f250f52179de3a2c3dd969352 (patch)
tree7adea91b1e8002ed499dd8cce564b35ca4616a63 /qmake/project.cpp
parent71c670a65ae538dea7bde388fcc138060767cb31 (diff)
downloadQt-987b5d06c5e1a30f250f52179de3a2c3dd969352.zip
Qt-987b5d06c5e1a30f250f52179de3a2c3dd969352.tar.gz
Qt-987b5d06c5e1a30f250f52179de3a2c3dd969352.tar.bz2
warn about using non-lowercased replace $$function()s
planning to kill off that (mis-)feature at some point. Reviewed-by: joerg
Diffstat (limited to 'qmake/project.cpp')
-rw-r--r--qmake/project.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/qmake/project.cpp b/qmake/project.cpp
index ee6e7df..15286ec 100644
--- a/qmake/project.cpp
+++ b/qmake/project.cpp
@@ -1836,7 +1836,11 @@ QMakeProject::doProjectExpand(QString func, QList<QStringList> args_list,
for(int i = 0; i < args_list.size(); ++i)
args += args_list[i].join(QString(Option::field_sep));
- ExpandFunc func_t = qmake_expandFunctions().value(func.toLower());
+ QString lfunc = func.toLower();
+ if (!lfunc.isSharedWith(func))
+ warn_msg(WarnDeprecated, "%s:%d: Using uppercased builtin functions is deprecated.",
+ parser.file.toLatin1().constData(), parser.line_no);
+ ExpandFunc func_t = qmake_expandFunctions().value(lfunc);
debug_msg(1, "Running project expand: %s(%s) [%d]",
func.toLatin1().constData(), args.join("::").toLatin1().constData(), func_t);