Author Topic: Clang Build Messages  (Read 4145 times)

Offline Long Face

  • Single posting newcomer
  • *
  • Posts: 2
Clang Build Messages
« 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?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Clang Build Messages
« Reply #1 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.

Offline Long Face

  • Single posting newcomer
  • *
  • Posts: 2
Re: Clang Build Messages
« Reply #2 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]+.*)
« Last Edit: June 01, 2010, 08:17:18 pm by Long Face »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Clang Build Messages
« Reply #3 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]+.*)(\^~+)
(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!]