[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recent const churn
From: |
Eric Blake |
Subject: |
Re: recent const churn |
Date: |
Tue, 17 Jun 2008 14:42:30 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Jim Meyering <jim <at> meyering.net> writes:
> However, rather than changing sc_const_long_option to avoid
> sc_redundant_const triggering on it's regexp, I've chosen to use
> a stricter regexp in the new rule so we don't have to twist the
> other rule:
>
> grep -E '\bconst\b[[:space:][:alnum:]]{2,}\bconst\b' ...
Nice. But that lets "static const const int" fall through the cracks. Why not
use + instead of {2,}?
--
Eric Blake