From 987b5d06c5e1a30f250f52179de3a2c3dd969352 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 21 Apr 2010 21:11:05 +0200 Subject: warn about using non-lowercased replace $$function()s planning to kill off that (mis-)feature at some point. Reviewed-by: joerg --- qmake/project.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 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); -- cgit v0.12