forked from qt-creator/qt-creator
introduce PROEVALUATOR_FULL #define
if this is enabled, the evaluator implements all functionality necessary for qmake. without it, functionality which is unnecessary or outright dangerous in qt creator or lupdate context is omitted. Change-Id: I233cfa6daf2e4451f9f1d3d14711be2a7cfe4293 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -1044,8 +1044,10 @@ QMakeEvaluator::VisitReturn QMakeEvaluator::evaluateConditionalFunction(
|
||||
// ### Consider real termination in non-cumulative mode
|
||||
return returnBool(function != QLatin1String("error"));
|
||||
}
|
||||
#if 0 // Way too dangerous to enable.
|
||||
#ifdef PROEVALUATOR_FULL
|
||||
case T_SYSTEM: {
|
||||
if (m_cumulative) // Anything else would be insanity
|
||||
return ReturnFalse;
|
||||
if (args.count() != 1) {
|
||||
evalError(fL1S("system(exec) requires one argument."));
|
||||
return ReturnFalse;
|
||||
|
||||
Reference in New Issue
Block a user