Adding LINT

Post here any ideas/problems/suggestions you have regarding CodeLite's ExternalTools plugin

Adding LINT

Postby Joash29 on Fri Mar 05, 2010 9:40 pm

Hi

I've been testing out a few IDEs lately and have settled on CodeLite..it has everything :) ..i just need to integrate LINT now..Has anybody done it before?
Joash29
 
Posts: 3
Joined: Fri Mar 05, 2010 9:28 pm

Re: Adding LINT

Postby eranif on Sat Mar 06, 2010 7:58 am

Forgive my ignorance, but what does LINT does?
How do you invoke it?

If you could tell some details here, I will be able to help you out.

Eran
User avatar
eranif
Site Admin
 
Posts: 1876
Joined: Wed Feb 06, 2008 7:29 pm

Re: Adding LINT

Postby Joash29 on Sat Mar 06, 2010 9:39 pm

http://en.wikipedia.org/wiki/PC-Lint
PC Lint is commercial software that we use at work to check source code for discrepancies, basically a static code analyzer. Its been setup a long time ago and I've been through the manual but I cant make head or tail of it at the moment. Ive managed to setup the tool to lint a single file, but that means every function defined outside that c file throws an error. Is there an open source alternative?

Thanks for you time
Joash29
 
Posts: 3
Joined: Fri Mar 05, 2010 9:28 pm

Re: Adding LINT

Postby eranif on Sun Mar 07, 2010 8:11 am

You could try and run 'CppCheck'.
codelite has a plugin for it, and it should work out of the box.

Right click on your workspace / project and select -> 'CppCheck -> Run CppCheck'

This will perform a static code analyze of your workspace/project

Also, using the 'External Tools' plugin, you may consider the macros:

$(ProjectFiles) and $(ProjectFilesAbs) - the first one expands to a relative path and the later to absolute path

Those 2 macro will expand to a full space delimited list of the project files (the active project)

Eran
User avatar
eranif
Site Admin
 
Posts: 1876
Joined: Wed Feb 06, 2008 7:29 pm

Re: Adding LINT

Postby Joash29 on Mon Mar 08, 2010 2:17 pm

Thanks :D ..CppCheck is helpful..
Joash29
 
Posts: 3
Joined: Fri Mar 05, 2010 9:28 pm


Return to External Tools

Who is online

Users browsing this forum: No registered users and 1 guest