This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]