Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: zdena on December 18, 2019, 07:30:37 pm

Title: Multiline Build messages
Post by: zdena on December 18, 2019, 07:30:37 pm
Hello,
my compiler (Arduino) makes warnings and errors in Build log in this way:

D:\KomplexCB\_Vysilani_100\Komplex00\Komplex00.ino:1030:31: warning: unused parameter 'timer' [-Wunused-parameter]
 int JeLetniCas(const time_t * timer, int32_t * z) {
                               ^


This is transfered to the Build messages as:

FileLineMessage
D:\KomplexCB\_Vysilani_100\Komplex00\Komplex00.ino 1030 warning: unused parameter 'timer' [-Wunused-parameter]


Is there a way to get something like this?

FileLineMessage
D:\KomplexCB\_Vysilani_100\Komplex00\Komplex00.ino 1030 warning: unused parameter 'timer' [-Wunused-parameter]
int JeLetniCas(const time_t * timer, int32_t * z) {
                              ^

Title: Re: Multiline Build messages
Post by: oBFusCATed on December 19, 2019, 09:44:38 am
Not yet, as far as I know. But we'll have to do something about these. GCC 9 is even more bonkers about the messages.
Title: Re: Multiline Build messages
Post by: zdena on December 19, 2019, 09:43:52 pm
Thanks for info.
Title: Re: Multiline Build messages
Post by: zdena on March 05, 2020, 11:04:20 pm
Not perfect but fairly well works Output parsing regex:
Code
(^[ \t]+.+)

The line with code and the line with the arrow are indented with spaces (usually) and the messages from builder (compiler) start immediately.