Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
8540effe
Commit
8540effe
authored
Mar 22, 2010
by
Tobias Hunger
Browse files
Unit test and handle note-lines in gcc output.
parent
9e1125d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/gccparser.cpp
View file @
8540effe
...
...
@@ -42,7 +42,7 @@ namespace {
GccParser
::
GccParser
()
{
m_regExp
.
setPattern
(
QString
::
fromLatin1
(
FILE_PATTERN
)
+
QLatin1String
(
"(
\\
d+):(
\\
d+:)?
\\
s(#?(warning|error):?
\\
s)(.+)$"
));
m_regExp
.
setPattern
(
QString
::
fromLatin1
(
FILE_PATTERN
)
+
QLatin1String
(
"(
\\
d+):(
\\
d+:)?
\\
s(#?(warning|error
|note
):?
\\
s)(.+)$"
));
m_regExp
.
setMinimal
(
true
);
m_regExpIncluded
.
setPattern
(
"^.*from
\\
s([^:]+):(
\\
d+)(,|:)$"
);
...
...
@@ -375,7 +375,16 @@ void ProjectExplorerPlugin::testGccOutputParsers_data()
<<
QString
()
<<
QString
::
fromLatin1
(
"TeamBuilder Client:: error: could not find Scheduler, running Job locally..."
)
<<
QList
<
ProjectExplorer
::
Task
>
()
<<
QString
();
QTest
::
newRow
(
"note"
)
<<
QString
::
fromLatin1
(
"/home/dev/creator/share/qtcreator/gdbmacros/gdbmacros.cpp:1079: note: initialized from here"
)
<<
OutputParserTester
::
STDERR
<<
QString
()
<<
QString
()
<<
(
QList
<
ProjectExplorer
::
Task
>
()
<<
Task
(
Task
::
Unknown
,
QLatin1String
(
"initialized from here"
),
QString
::
fromLatin1
(
"/home/dev/creator/share/qtcreator/gdbmacros/gdbmacros.cpp"
),
1079
,
Constants
::
TASK_CATEGORY_COMPILE
))
<<
QString
();
}
void
ProjectExplorerPlugin
::
testGccOutputParsers
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment