Author Topic: Regex output parsing for clang fails with cmake makefile generator?  (Read 1371 times)

Offline gabyx

  • Single posting newcomer
  • *
  • Posts: 3
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 :-)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6661
    • My Best Post
Re: Regex output parsing for clang fails with cmake makefile generator?
« Reply #1 on: June 24, 2015, 03:56:55 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org