CLion ignores gradle script macros in highlighting and code completion

Hey,

I'm using gradle as a build environment for C++ in CLion. However macros defined in the scripts are ignored in highlighting and code completion.

compileTask.get().macros["BUILD_VERSION"] = "\"1.0.0\""

BUILD_VERSION in the c++ files is now marked red as unknown, but it compiles correctly and can be used as a string. It's the same for #ifdef #endif sections etc.

0

Hello!

Is your project based on cpp-application or cpp-library plugins?

0

It is based on cpp-library. Do you need any more info?

0

请先登录再写评论。