Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Automatic code guideline checking in CDT possible?
Automatic code guideline checking in CDT possible? [message #157255] Thu, 03 November 2005 14:34
Michael Luber is currently offline Michael LuberFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

when you write java-code with Eclipse, you can use a plugin called
"checkstyle"
(http://eclipse-cs.sourceforge.net/) to check your code for compliance with
some low-level coding conventions, like:
- only one statement per line
- line length may not exceed a certain value
- classname must begin with a capital letter (you can enter regexp's
that must be matched)
- indentation with 2 spaces, not TAB (configurable)
- etc.
The plugin generates warnings in the corresponding code lines right after
you save a source file.

I'm looking for a way to do something like this with C-Code.
(e.g. as add-on for the CDT plugin)

I googled after eclipse/plugin/CDT/check/code and so on, but I came up
with nothing.
I also checked http://www.eclipse-plugins.info, no result for C-Code.
As a last resort, I could use some standalone lint-like program (e.g.
splint; http://www.splint.org/)
and write an error parser for it. But splint doesn't exactly meet my needs
for code checking.

Could anyone give me a hint, is there a plugin out there that I have
missed ?

Many thanks,
--
Michael
Previous Topic:Project refereces & Managed Make
Next Topic:Debuging
Goto Forum:
  


Current Time: Thu Dec 26 19:40:07 GMT 2024

Powered by FUDForum. Page generated in 0.02801 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top