Hi, I want to know is there any free Coding Standard Enforcement (CSE) tools for C/C++? Please give me a address.
- posted
14 years ago
Hi, I want to know is there any free Coding Standard Enforcement (CSE) tools for C/C++? Please give me a address.
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]:
astyle is also pretty good.
-- Grant Edwards grante Yow! I want a VEGETARIAN at BURRITO to go ... with
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
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 /\/\/\/\/
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.