News:

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

Main Menu

Regex output parsing for clang fails with cmake makefile generator?

Started by gnuetzi@gmail.com, June 24, 2015, 02:26:35 PM

Previous topic - Next topic

gnuetzi@gmail.com

I have the built svn 10234  (from jenslody https://apt.jenslody.de/)

my workflow, I generate with cmake a codeblocks project, compiler is set to clang++, then in codeblocks I set  the compiler to clang (build options -> target -> compiler), then I compile, and the output  seems not to be parsed correctly (compiler notes are wrongly parsed for exmaple)

Which regex parsing rules are used when configuring a Makefile project with cmake for codeblocks?

it seems that the regex parsing stuff for the clang compiler is not correct:

in codeblocks/options/options_clang.xml  which refers to the codeblocks/options/options_common_re.xml)

for example the compiler notes are not parsed correctly :

clang uses some special syntax:
for example:

/usr/local/include/meta/meta.hpp:1627:9: note

is not parsed correctly


Is there some up to date parsing rules for the clang compiler?
or what do I need to do to succesfully parse clang output in codeblocks with my cmake setup


Thanks a lot :-)

stahta01

Settings -> Compiler
Select the correct compiler

Tab on far right named "Other Settings"
Click on "Advanced options.."
Tab "Output Parsing" is likely what you want to change.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]