aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/outputparser_test.cpp
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2021-05-06 16:42:56 +0200
committerAndré Hartmann <aha_1980@gmx.de>2021-05-10 13:49:28 +0000
commit6bbe508e38ee6ea764db203f6dfee5d71a662804 (patch)
tree4aa27ffa1a8c72de2c32e14c8be9ddfb088c4ad8 /src/plugins/projectexplorer/outputparser_test.cpp
parent7cc2b149b1105195701451ca39871c37083b4bd5 (diff)
Task: Add column information to compiler output tasks
Allows to directly jump to the problematic code location in the editor. Done for GCC and Clang which both use the format: file:line:column Not done for MSVC, as this compiler uses the format: file(line) and does not include column information. It seems like clang-cl does use the format: file(line,column) but the existing parsers were not prepared for that and were therefore left unchanged for now. Change-Id: I182634e1c5c941b19801ecafb69fa2b8f91f9d7a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/outputparser_test.cpp')
-rw-r--r--src/plugins/projectexplorer/outputparser_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/outputparser_test.cpp b/src/plugins/projectexplorer/outputparser_test.cpp
index 18e3a7ae19..8cbfb4108a 100644
--- a/src/plugins/projectexplorer/outputparser_test.cpp
+++ b/src/plugins/projectexplorer/outputparser_test.cpp
@@ -91,6 +91,7 @@ void OutputParserTester::testParsing(const QString &lines,
QVERIFY2(m_receivedTasks.at(i).file == tasks.at(i).file,
msgFileComparisonFail(m_receivedTasks.at(i).file, tasks.at(i).file));
QCOMPARE(m_receivedTasks.at(i).line, tasks.at(i).line);
+ QCOMPARE(m_receivedTasks.at(i).column, tasks.at(i).column);
QCOMPARE(static_cast<int>(m_receivedTasks.at(i).type), static_cast<int>(tasks.at(i).type));
// Skip formats check if we haven't specified expected
if (tasks.at(i).formats.size() == 0)