lclint-interest message 16

Date: 09 Nov 94 13:11:58 EST
From: "JR (John Rogers)" <72634.2402@compuserve.com>
To: LCLint interest list 
Subject: Ifdef C code for LCLint checking?

Hi!  I was wondering if there is some standard way to #ifdef out code that
is going to be checked by LCLint.  For instance, the UNIX lint command
predefines 'lint'.  Newer versions of PC-lint predefine '_lint' instead.
So, a common idiom is something like this:

   #if ! (defined(lint) || defined(_lint))
   static char * Copyright = "stuff";
   #endif

This avoids complaints about Copyright being defined but never used.
Is there an equivalent predefined name for LCLint?  (Yes, I know I
can use '-Dfoo' on the LCLint command line to predefine 'foo'.)  I'm
hoping there is a standard name, perhaps '_lclint', that everyone
can use.

Thanks in advance...
--JR (John Rogers)
Internet: 72634.2402@CompuServe.com

Previous Message Next Message Archive Summary LCLint Home Page David Evans
University of Virginia, Computer Science
evans@cs.virginia.edu