lkml.org 
[lkml]   [2008]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] checkpatch.pl: recognize the #elif preprocessor directive
    On Tue, Jan 01, 2008 at 12:12:22PM +0200, Benny Halevy wrote:
    > checkpatch.pl does not recognize #elif as a preprocessor directive
    > causing it to print bogus errors for, e.g.:
    > ERROR: need consistent spacing around '&' (ctx:WxV)
    > when the operator is not recognized as unary in this context.
    >
    > for example:
    >
    > void foo(void)
    > {
    > int x, y, z;
    > void *p[1] = {
    > #if defined(X)
    > &x
    > #elif defined(Y)
    > &y
    > #else
    > &z
    > #endif
    > };
    > }
    >
    > Signed-off-by: Benny Halevy <bhalevy@panasas.com>

    Yes, thanks; good catch. Commited this and added tests for it.
    Will be in 0.13 which is imminent.

    -apw


    \
     
     \ /
      Last update: 2008-01-02 10:53    [W:3.823 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site