forked from qt-creator/qt-creator
complain about missing input file
the parser explicitly excludes complaints about missing files (because they are pretty common in cumulative mode), so we need to do it ourselves. Change-Id: I3c36819ab7b26152271e4557b67fb36b0a595b60 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -82,8 +82,13 @@ static int evaluate(const QString &fileName, const QString &in_pwd, const QStrin
|
|||||||
visitor.setOutputDir(out_pwd);
|
visitor.setOutputDir(out_pwd);
|
||||||
|
|
||||||
ProFile *pro;
|
ProFile *pro;
|
||||||
if (!(pro = parser->parsedProFile(fileName)))
|
if (!(pro = parser->parsedProFile(fileName))) {
|
||||||
|
if (!QFile::exists(fileName)) {
|
||||||
|
qCritical("Input file %s does not exist.", qPrintable(fileName));
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
return 2;
|
return 2;
|
||||||
|
}
|
||||||
if (!visitor.accept(pro)) {
|
if (!visitor.accept(pro)) {
|
||||||
pro->deref();
|
pro->deref();
|
||||||
return 2;
|
return 2;
|
||||||
|
Reference in New Issue
Block a user