public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/19165] New: (Natural) language independent error / warning classification
@ 2004-12-27 14:22 walles at mailblocks dot com
2004-12-27 14:29 ` [Bug other/19165] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: walles at mailblocks dot com @ 2004-12-27 14:22 UTC (permalink / raw)
To: gcc-bugs
I've started looking at using the Eclipse CDT for my C development. One thing
the CDT does is parse the diagnostic messages printed by gcc.
To determine whether a message is an error or a warning, the CDT checks whether
the message starts with "warning:". If it does, it is considered a warning,
otherwise an error.
However, since I'm using a Swedish locale, my warning messages start with
"varning:" rather than "warning:", making the CDT heuristic fail.
I would like gcc to mark warnings and errors in a non-locale dependent way,
easily parseable by frontends such as the CDT.
I did read
http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/Language-Independent-Options.html
and AFAICT there isn't currently any switch for making gcc classify its
diagnostic messages this way.
--
Summary: (Natural) language independent error / warning
classification
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: walles at mailblocks dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19165
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/19165] (Natural) language independent error / warning classification
2004-12-27 14:22 [Bug other/19165] New: (Natural) language independent error / warning classification walles at mailblocks dot com
@ 2004-12-27 14:29 ` pinskia at gcc dot gnu dot org
2004-12-27 17:51 ` walles at mailblocks dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-27 14:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-27 14:29 -------
I don't think we should do this because the warnings are for people not for IDEs. Maybe the IDEs
should use the translated message instead aka use the .pot file from gcc to do the parsing :).
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Priority|P2 |P3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19165
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/19165] (Natural) language independent error / warning classification
2004-12-27 14:22 [Bug other/19165] New: (Natural) language independent error / warning classification walles at mailblocks dot com
2004-12-27 14:29 ` [Bug other/19165] " pinskia at gcc dot gnu dot org
@ 2004-12-27 17:51 ` walles at mailblocks dot com
2005-03-29 1:46 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: walles at mailblocks dot com @ 2004-12-27 17:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From walles at mailblocks dot com 2004-12-27 17:51 -------
The IDE wants to present gcc's messages to people, so it's not as if the IDE
wants to understand the messages themselves (except whether they are warnings or
errors). Now that I read what I wrote again I can see how it sounded as if the
CDT tries to do more than that, but it doesn't. It just wants to do
errors-vs-warnings classification.
The reason it wants to be able to tell errors from warnings is that it wants to
highlight the errors more than the warnings. Unforturnately no sane way of
doing that seems to exist currently :-(.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19165
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/19165] (Natural) language independent error / warning classification
2004-12-27 14:22 [Bug other/19165] New: (Natural) language independent error / warning classification walles at mailblocks dot com
2004-12-27 14:29 ` [Bug other/19165] " pinskia at gcc dot gnu dot org
2004-12-27 17:51 ` walles at mailblocks dot com
@ 2005-03-29 1:46 ` pinskia at gcc dot gnu dot org
2005-03-29 8:04 ` walles at mailblocks dot com
2005-07-15 21:22 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-29 1:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-29 01:46 -------
What about changing the IDEs so they understand the natural language warning/error/note
classification instead?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19165
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/19165] (Natural) language independent error / warning classification
2004-12-27 14:22 [Bug other/19165] New: (Natural) language independent error / warning classification walles at mailblocks dot com
` (2 preceding siblings ...)
2005-03-29 1:46 ` pinskia at gcc dot gnu dot org
@ 2005-03-29 8:04 ` walles at mailblocks dot com
2005-07-15 21:22 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: walles at mailblocks dot com @ 2005-03-29 8:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From walles at mailblocks dot com 2005-03-29 08:04 -------
That's what they are doing currently, but it works only for English :-(.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19165
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/19165] (Natural) language independent error / warning classification
2004-12-27 14:22 [Bug other/19165] New: (Natural) language independent error / warning classification walles at mailblocks dot com
` (3 preceding siblings ...)
2005-03-29 8:04 ` walles at mailblocks dot com
@ 2005-07-15 21:22 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-15 21:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-15 21:20 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-07-15 21:20:47
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19165
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-07-15 21:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-27 14:22 [Bug other/19165] New: (Natural) language independent error / warning classification walles at mailblocks dot com
2004-12-27 14:29 ` [Bug other/19165] " pinskia at gcc dot gnu dot org
2004-12-27 17:51 ` walles at mailblocks dot com
2005-03-29 1:46 ` pinskia at gcc dot gnu dot org
2005-03-29 8:04 ` walles at mailblocks dot com
2005-07-15 21:22 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).