Syntax highlighting on included files
已回答
Hi
I am working on a project where we use unity builds but i am having trouble setting up CLion with that.
The unity build tool basically makes a cpp file, and includes all the project cpp files in that cpp file... for example:
your project consists of: Source1.cpp, Source1.h, Source2.cpp
The tool will generate Unity.cpp and the content will look like this:
/*--------------Unity.cpp -----------*/
#include Source1.cpp // <--- has '#include Source1.h'
#include Source2.cpp // <--- meaning here you dont need to add '#include Source1.h' even if you use source1, it still compiles
-------------------------------------
It only builds 'Unity.cpp'
I can add all the other source files in the CMake, but it will not recognize it is building in this manner so i get errors all over the place where it 'should' need an include file (even-though it successfully compiles)
Is there a way to still resolve this?
请先登录再写评论。
We have a related issue in the tracker already: https://youtrack.jetbrains.com/issue/CPP-4406. Please comment or upvote.