Hi, I want to know is there any free Coding Standard Enforcement (CSE) tools for C/C++? Please give me a address.
Want some tools.
Nov 19, 2008
9 Replies
What kind of standard are you really looking for?
Style of code? Check for cb (C beautifier) and similar programs. Lots of editors/IDEs have this feature too.
Otherwise I cannot understand what you want.
What did Google turn up?
I searched the Coding Standard Enforcement (CSE) tools on Google, but I do not find any one is free.
Why do you need them "free"?
Is this for a hobby project or a commercial one?
Search on "C beautifier"
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Look for "indent". Available free from GNU. For C, not C++.
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]:
Try the download section.
astyle is also pretty good.
Grant Edwards grante Yow! I want a VEGETARIAN
at BURRITO to go ... with
visi.com EXTRA MSG!!
The first question is if the OP wants a tool for cleaning up the code, or a tool for nagging about badly written code.
cb does not nag.
Tauno Voipio
tauno voipio (at) iki fi
If you want "nagging", then running the file through cb and diff'ing the "beautified" version with the original file is easy enough.
Grant Edwards grante Yow! I'm a nuclear
at submarine under the
visi.com polar ice cap and I need
a Kleenex!
That will only check that your code is laid out sensibly (consistent indentation, brackets, etc.). While that's a worthy goal if the OP is incapable of writing well laid out code in the first place, it won't do any coding standards checking.
Lint
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required