diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-07-28 14:33:38 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-07-28 13:31:08 +0000 |
commit | dfe5eb3b11c66a88268fd5628e657ef7fb47376b (patch) | |
tree | 43fec657537708ca46fb925ca8bc6f4862654ada /src/plugins/projectexplorer/outputparser_test.cpp | |
parent | 0e5cc282e612d6fa9a35b019e3599cf68319fd9a (diff) |
GCC parser: Recognize messages referring to scope
... such as "foo.cpp: In member function 'bar': ...".
These weren't caught at all, because the file name has no line number.
They did show up in the issues pane, because the ld parser accidentally
caught them, but they were not properly merged with their context.
Change-Id: I29a757879c21a051cb31c65497b3ad2bfff2315e
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/outputparser_test.cpp')
-rw-r--r-- | src/plugins/projectexplorer/outputparser_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/outputparser_test.cpp b/src/plugins/projectexplorer/outputparser_test.cpp index 99d241bf13..d3a162d422 100644 --- a/src/plugins/projectexplorer/outputparser_test.cpp +++ b/src/plugins/projectexplorer/outputparser_test.cpp @@ -83,6 +83,10 @@ void OutputParserTester::testParsing(const QString &lines, if (m_receivedTasks.size() == tasks.size()) { for (int i = 0; i < tasks.size(); ++i) { QCOMPARE(m_receivedTasks.at(i).category, tasks.at(i).category); + if (m_receivedTasks.at(i).description() != tasks.at(i).description()) { + qDebug() << "---" << tasks.at(i).description(); + qDebug() << "+++" << m_receivedTasks.at(i).description(); + } QCOMPARE(m_receivedTasks.at(i).description(), tasks.at(i).description()); QVERIFY2(m_receivedTasks.at(i).file == tasks.at(i).file, msgFileComparisonFail(m_receivedTasks.at(i).file, tasks.at(i).file)); |