News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Clang Build Messages

Started by Long Face, June 01, 2010, 07:37:01 AM

Previous topic - Next topic

Long Face

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?

Jenna

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.

Long Face

#2
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:


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]+.*)

oBFusCATed

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)

([^\(]+)\(([0-9]+)\)[ \t]+:[ \t]+(error:[ \t]+.*)(\^~+)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]