"lwlint" (light-weight lint) is a lint tool that catches some programming mistakes
in C/C++ (some of which gcc/g++ won't catch even with -Wall)
such as dangling "else", incorrect "else if" series, use of octal constants,
declaring pointers and non-pointers in one statement, etc.
Warnings can be selectively disabled by args and suppressed by special C comments.
C++ source files can be passed to lwlint but it doesn't yet check for any C++ specific lint.
The source code should compile on a system with GNU tools (make/gcc/flex/bison).
A heavy-weight (C-only) lint program is splint
download source code
MD5:
d42c04604f4bdc9f745e408a426a5803 lwlint_20091219.tar.bz2