Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Long Face on June 01, 2010, 07:37:01 am

Title: Clang Build Messages
Post by: Long Face on June 01, 2010, 07:37:01 am
I recently started using Clang in Code::Blocks and unfortunately the "Build Messages" tab does not seem to include errors! All I see are warnings and notes (I.E. Instantiated from:). I can, of course, see everything via the Build Log tab, but it is an annoyance none-the-less. Has anyone done any work toward getting this to work as expected?
Title: Re: Clang Build Messages
Post by: Jenna on June 01, 2010, 10:31:00 am
The errors and warnings are filter out with regexes.
Please have a look at "Settings -> Compiler and debugger... -> General compiler settings -> [the compiler you use] -> Other settings (rightmost tab) -> Advanced options... -> Output parsing".

By the way the same thing can happen, if you use a "standard" compiler with non-english locale.
Title: Re: Clang Build Messages
Post by: Long Face on June 01, 2010, 08:15:33 pm
Ah, thanks. Forgive me if this isn't the best forum to ask, but I don't generally use regular expressions. I'm trying to set it up to match Clang errors but it's not working as I expect.

Here is a snippet from a log:

Code
In file included from F:\meta\include/meta/value.hpp:429:
F:\meta\include/meta/domain.hpp(61) :  error: invalid use of incomplete type 'meta::metafunction_context'
  return eval( metafunction_, metafunction_context() );
                              ^~~~~~~~~~~~~~~~~~~~~~

And here is the regular expression I'm using (unsuccessfully):

([^\(]+)\(([0-9]+)\)[ \t]+:[ \t]+(error:[ \t]+.*)
Title: Re: Clang Build Messages
Post by: oBFusCATed on June 01, 2010, 09:10:14 pm
Do you know about the regex testbed plugin? It is great for debugging your regex-es :)

You can start it with: Plugins->Regular expression testbed

My try (don't know what is the expected result from the matching)
Code
([^\(]+)\(([0-9]+)\)[ \t]+:[ \t]+(error:[ \t]+.*)(\^~+)