James Vega wrote:
> On Fri, May 15, 2009 at 08:37:07PM +0200, Bram Moolenaar wrote: > > > > > > Jan Larres wrote: > > > > > * Bram Moolenaar ([email protected]) wrote: > > > > Does someone know a better lint than splint? Unfortunately the lint I > > > > was using on FreeBSD doesn't appear to be available for Linux. It > > > > wasn't great but I least I could use it for some basic sanity checking. > > > > > > There's also cppcheck: > > > http://cppcheck.wiki.sourceforge.net/ > > > > > > I haven't tried it so I can't comment on the quality, but it might be > > > worth a try. > > > > A quick search doesn't show much positive comments about cppcheck. It > > does locate unused functions, that might be useful as gcc doesn't find > > these. > > You mean -Wunused-function? That only works for static functions. Gcc looks at one file at a time thus it can't warn for a function that is defined globally but not used by files it's linked with. -- JOHN CLEESE PLAYED: SECOND SOLDIER WITH A KEEN INTEREST IN BIRDS, LARGE MAN WITH DEAD BODY, BLACK KNIGHT, MR NEWT (A VILLAGE BLACKSMITH INTERESTED IN BURNING WITCHES), A QUITE EXTRAORDINARILY RUDE FRENCHMAN, TIM THE WIZARD, SIR LAUNCELOT "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
