views:

112

answers:

4

I want that whatever code style i defined in eclipse editor ..should be followed by coders, so can i enforce it as program will not even build without satisfying all the rules???

A: 

any body has any idea...?

rupali
A: 

It think that's not possible out of the box with Eclipse. There are two problems to solve:

Check the source code for satifying the rules.

There is no support for this in CDT, but there seem to be other tools (see discussion A free tool to check C/C++ source code against a set of coding standards?).

Integrate the check into the build process.

To catch all possible build chains (Internal CDT Build, Makefiles,...), you need to hook into the build process with your own builder which is executed before the CDT build. This requires a plugin to be written. If your build is using makefiles, it should be rather easy to integrate such a tool into the build process.

jopa
A: 

Thank you so much for your answer ... i will check plug-ins or tools in the link provided by you

rupali
A: 

thx jopa...m back after some time ..as i was thinking about second solution suggested by you.. m new to eclipse...is there any open source plug in available for such a problem? if any plz provide me some more information..thx u

rupali