User forums > General (but related to Code::Blocks)
Clang Build Messages
(1/1)
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:
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() );
^~~~~~~~~~~~~~~~~~~~~~
--- End code ---
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)
--- Code: ---([^\(]+)\(([0-9]+)\)[ \t]+:[ \t]+(error:[ \t]+.*)(\^~+)
--- End code ---
Navigation
[0] Message Index
Go to full version