public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* errors message groups id?
@ 2022-11-11 11:39 Michel
  0 siblings, 0 replies; only message in thread
From: Michel @ 2022-11-11 11:39 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 944 bytes --]

Hello all,

GCC error/warning messages often provide a lot of extra information, which
is great.
It is done on a multiline way, like in:

foo.h:123:22: <context>
... etc
bar.h:234:12: error: <some error>
qwr.h:456:8: <additional context information / possible diagnostics>
.. etc

Nevertheless this has some drawbacks:

- Parallel compilation can mess up mixin lines from sep compilations
- Often one may want to reorder or deduplicate or archive errors, but
associated context lines are not attached to the main error line

Is there a compile option to ask GCC to emit some uuid with every
errors/context lines, so that an automated system may group them and manage
them at once? something like this:

foo.h:123:22:uuid1: <context>
... etc
bar.h:234:12:uuid1: error: <some error>
qwr.h:456:8:uuid1: <additional context information / possible diagnostics>
.. etc

Seems quite an easy feature to support, if it does not exist already.

Regards.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-11 11:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11 11:39 errors message groups id? Michel

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).