diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-04-21 19:11:05 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-04-30 15:01:59 (GMT) |
commit | 987b5d06c5e1a30f250f52179de3a2c3dd969352 (patch) | |
tree | 7adea91b1e8002ed499dd8cce564b35ca4616a63 /qmake | |
parent | 71c670a65ae538dea7bde388fcc138060767cb31 (diff) | |
download | Qt-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')
-rw-r--r-- | qmake/project.cpp | 6 |
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); |