aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/gccparser.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-03-02 14:34:06 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-03-02 14:02:25 +0000
commit5a75b87b37a89b8ebec7b5507239204b51fe1c03 (patch)
tree6826905cf63abd54b7f1f81f915961ef8367a304 /src/plugins/projectexplorer/gccparser.cpp
parent8b0a07f657246363af430beb357e4c4cd7086600 (diff)
OutputParser: Treat ranlib warnings as warnings
Task-number: QTCREATORBUG-13111 Change-Id: Ifead2f7fa8d00eb044894b6d9ef0e7626e13f867 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/gccparser.cpp')
-rw-r--r--src/plugins/projectexplorer/gccparser.cpp30
1 files changed, 23 insertions, 7 deletions
diff --git a/src/plugins/projectexplorer/gccparser.cpp b/src/plugins/projectexplorer/gccparser.cpp
index c5eb12025c..61dadc7833 100644
--- a/src/plugins/projectexplorer/gccparser.cpp
+++ b/src/plugins/projectexplorer/gccparser.cpp
@@ -88,7 +88,6 @@ void GccParser::stdError(const QString &line)
}
QRegularExpressionMatch match = m_regExpGccNames.match(lne);
-
if (match.hasMatch()) {
QString description = lne.mid(match.capturedLength());
Task::TaskType type = Task::Error;
@@ -458,12 +457,6 @@ void ProjectExplorerPlugin::testGccOutputParsers_data()
<< QString() << QString::fromLatin1("rm: cannot remove `release/moc_mainwindow.cpp': No such file or directory\n")
<< QList<Task>()
<< QString();
- QTest::newRow("ranlib false positive")
- << QString::fromLatin1("ranlib: file: libSupport.a(HashTable.o) has no symbols")
- << OutputParserTester::STDERR
- << QString() << QString::fromLatin1("ranlib: file: libSupport.a(HashTable.o) has no symbols\n")
- << QList<Task>()
- << QString();
QTest::newRow("ld: missing library")
<< QString::fromLatin1("/usr/bin/ld: cannot find -ldoesnotexist")
<< OutputParserTester::STDERR
@@ -866,6 +859,29 @@ void ProjectExplorerPlugin::testGccOutputParsers_data()
categoryCompile)
)
<< QString();
+
+ QTest::newRow("Mac: ranlib warning")
+ << QString::fromLatin1("ranlib: file: lib/libtest.a(Test0.cpp.o) has no symbols")
+ << OutputParserTester::STDERR
+ << QString() << QString()
+ << (QList<Task>()
+ << Task(Task::Warning,
+ QLatin1String("file: lib/libtest.a(Test0.cpp.o) has no symbols"),
+ Utils::FileName(), -1,
+ categoryCompile)
+ )
+ << QString();
+ QTest::newRow("Mac: ranlib warning2")
+ << QString::fromLatin1("/path/to/XCode/and/ranlib: file: lib/libtest.a(Test0.cpp.o) has no symbols")
+ << OutputParserTester::STDERR
+ << QString() << QString()
+ << (QList<Task>()
+ << Task(Task::Warning,
+ QLatin1String("file: lib/libtest.a(Test0.cpp.o) has no symbols"),
+ Utils::FileName(), -1,
+ categoryCompile)
+ )
+ << QString();
}
void ProjectExplorerPlugin::testGccOutputParsers()