We are using CMake to manage our builds and have a rather large project consisting of pretty much everything that is needed to build the software base for our embedded platforms save for the toolchain. When building a CDT project with CMake it puts everything into one large project rather than splitting it into individual projects based on the CMake specification.
Our problem is that we have both C and C++ code in the project and we have different code styles for these languages. I have not been able to find out how to tell Eclipse to select a code style based on the file type rather than the project and this makes it very hard to use Eclipse for us since you have to remember to manually switch the style for the entire project if you want to switch from working on a C- to a C++-project or vice versa.
Is it at all possible to set the code style based on the file type rather than just for an entire project?