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: (^[ \t]+.+)

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