This is the mail archive of the gcc-patches@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]

Re: Warn if `#' is preceded by whitespace?


On Wed, Feb 16, 2000 at 04:47:54AM -0200, Alexandre Oliva wrote:
> Wouldn't it be a good idea to emit a warning when the `#' of a CPP
> directive is not in the beginning of the line?

Certainly not with no way to turn it off!  It's explicitly permitted
by C89, and I've seen it used deliberately to hide directives from K+R
preprocessors. 

I'd suggest -Wtraditional only (which cpp doesn't know about right
now, but that can easily change).

zw

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