how to set clang in Linux and dubegger works with templates?
Hi, I want to know how to set clang in linux?
Simply add in CMAKE_CXX_COMPILER /usr/bin/clang? And save it?
Furthermore, it is possible that the debug not work with templates?
I noticed that sometimes does not perform the "step into".
Have you any suggestions?
Thanks!
Please sign in to leave a comment.
Hi Alberto.
As for the Clang compiler: to set it up you need to put path to clang into CMAKE_C_COMPILER/CMAKE_CXX_COMPILER variables. This can be done either in CMakeLists.txt, or by providing command line options in CLion's CMake settings.
As for debugging templates:
Could you please send us a short example to reproduce the case? (you can post it here or send to us via support mail clion-support@jetbrains.com) On our side we've tried the following sample and it worked for us:
Hi, I solved. I use the linux distrubution Manjaro and I solved the problem of debugging by setting gdb of my system manually. ( Settings->Build...->ToolChains->Use specified: /usr/bin/gdb )
While clang through the first suggestion.
Thanks for your software really well done. I hope that soon is implemented support to valgrind.
Hi Alberto.
We already have an issue about valgrind in our tracker:
https://youtrack.jetbrains.com/issue/CPP-548
Feel free to comment or upvote. Follow to get the updates.