Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
ca73b6b9
Commit
ca73b6b9
authored
Jan 20, 2011
by
Tobias Hunger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parser: Handle changed moc error reporting
parent
8ab27353
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/plugins/qt4projectmanager/qtparser.cpp
src/plugins/qt4projectmanager/qtparser.cpp
+11
-2
No files found.
src/plugins/qt4projectmanager/qtparser.cpp
View file @
ca73b6b9
...
...
@@ -44,13 +44,13 @@ using ProjectExplorer::Task;
namespace
{
// opt. drive letter + filename: (2 brackets)
const
char
*
const
FILE_PATTERN
=
"^(([A-Za-z]:)?[^:]+
\\
.[^:]+)
:
"
;
const
char
*
const
FILE_PATTERN
=
"^(([A-Za-z]:)?[^:]+
\\
.[^:]+)"
;
}
QtParser
::
QtParser
()
{
setObjectName
(
QLatin1String
(
"QtParser"
));
m_mocRegExp
.
setPattern
(
QString
::
fromLatin1
(
FILE_PATTERN
)
+
"(
\\
d+):
\\
s(Warning|Error):
\\
s(.+)$"
);
m_mocRegExp
.
setPattern
(
QString
::
fromLatin1
(
FILE_PATTERN
)
+
"
[:
\\
(]
(
\\
d+)
\\
)?
:
\\
s(Warning|Error):
\\
s(.+)$"
);
m_mocRegExp
.
setMinimal
(
true
);
}
...
...
@@ -131,6 +131,15 @@ void Qt4ProjectManagerPlugin::testQtOutputParser_data()
QLatin1String
(
"..
\\
untitled
\\
errorfile.h"
),
0
,
ProjectExplorer
::
Constants
::
TASK_CATEGORY_COMPILE
))
<<
QString
();
QTest
::
newRow
(
"moc warning 2"
)
<<
QString
::
fromLatin1
(
"c:
\\
code
\\
test.h(96): Warning: Property declaration ) has no READ accessor function. The property will be invalid."
)
<<
OutputParserTester
::
STDERR
<<
QString
()
<<
QString
()
<<
(
QList
<
ProjectExplorer
::
Task
>
()
<<
Task
(
Task
::
Warning
,
QLatin1String
(
"Property declaration ) has no READ accessor function. The property will be invalid."
),
QLatin1String
(
"c:
\\
code
\\
test.h"
),
96
,
ProjectExplorer
::
Constants
::
TASK_CATEGORY_COMPILE
))
<<
QString
();
}
void
Qt4ProjectManagerPlugin
::
testQtOutputParser
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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