using GCC as a lint-like tool, for C++

Eljay Love-Jensen eljay@adobe.com
Thu Oct 23 13:01:00 GMT 2003


Hi everyone,

Anyone else using GCC (3.3.x) as a lint-like tool?

(I'm interested in C++.  Not so interested in C code lint checking, thus the absence of C-specific flags.)

I'm using these flags:
* -ansi
* -pedantic
* -Wall
** -W
** -Wendif
** -Wcast-qual
** -Wwrite-strings
** -Wcast-align
** -Wpointer-arith
** -Wconversion
*** -Wredundant-decls
*** -Wunreachable-code
*** -Winline
*** -Wlarger-than-256

Paranoia rating
---------------------
* paranoid
** super paranoid
*** really super-duper paranoid

Anyone else doing this?  Any hints, tips, tricks, techniques?

Thanks,
--Eljay




More information about the Gcc-help mailing list