Skip to content
GitLab
Menu
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
cd3022dc
Commit
cd3022dc
authored
Jun 04, 2009
by
Roberto Raggi
Browse files
Show all the warn messages.
parent
f55d5500
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/CppDocument.cpp
View file @
cd3022dc
...
...
@@ -55,7 +55,8 @@ class DocumentDiagnosticClient : public DiagnosticClient
public:
DocumentDiagnosticClient
(
Document
*
doc
,
QList
<
Document
::
DiagnosticMessage
>
*
messages
)
:
doc
(
doc
),
messages
(
messages
)
messages
(
messages
),
errorCount
(
0
)
{
}
virtual
void
report
(
int
level
,
...
...
@@ -63,8 +64,12 @@ public:
unsigned
line
,
unsigned
column
,
const
char
*
format
,
va_list
ap
)
{
if
(
messages
->
count
()
==
MAX_MESSAGE_COUNT
)
return
;
if
(
level
==
Error
)
{
++
errorCount
;
if
(
errorCount
>=
MAX_MESSAGE_COUNT
)
return
;
// ignore the error
}
const
QString
fileName
=
QString
::
fromUtf8
(
fileId
->
chars
(),
fileId
->
size
());
...
...
@@ -88,8 +93,10 @@ public:
}
}
private:
Document
*
doc
;
QList
<
Document
::
DiagnosticMessage
>
*
messages
;
int
errorCount
;
};
}
// anonymous namespace
...
...
src/plugins/cpptools/cppmodelmanager.cpp
View file @
cd3022dc
...
...
@@ -379,7 +379,7 @@ protected:
}
Overview
oo
;
translationUnit
()
->
warning
(
ast
->
firstToken
(),
"`%s' is not a type
-
name"
,
translationUnit
()
->
warning
(
ast
->
firstToken
(),
"`%s' is not a type
name"
,
qPrintable
(
oo
(
ast
->
name
->
name
)));
}
}
...
...
Write
Preview
Supports
Markdown
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