external preprocessor

Hello. Is there a way to use external preprocessor like that: in CLion edit files like xxx.cpp.in which translates to xxx.cpp by external preprocessor (filepp for me) and then build as usually. So CLion have to understand xxx.cpp.in files like source cpp files, but debugging process use xxx.cpp.

Is that possible?

P.S. filepp is very powerful preprocessor, which I have used many years with any programming and script languages. And I would be happy to use it with CLion.

1 comment
Comment actions Permalink

Hi Aleksejs.

You can set it up via CMake (see https://cmake.org/cmake/help/v3.0/command/add_custom_command.html and https://cmake.org/cmake/help/v3.0/command/add_custom_target.html), but unfortunately CLion currently won't be able to perform any code analysis on source (.in) files, they will be treated as plain text. Feel free to submit a feature request in our tracker: https://youtrack.jetbrains.com/issues/CPP.

0

Please sign in to leave a comment.