"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:
fb781ab02888bf063a8bee4fc5e5b900 lwlint_20050427.tar.gz