[Insight-developers] KWStyle -- "Template definition doesn't match regular expression" warning
Luis Ibanez
luis.ibanez at kitware.com
Fri Jun 11 12:01:00 EDT 2010
Hi Kent,
Could you please share:
A) The exact error message that you get from KWStyle
and
B) The exact text of the line in which the error message
is reported (including a couple of lines above and
below will also be helpful).
Thanks
Luis
--------------------------------
On Fri, Jun 11, 2010 at 10:15 AM, kent williams <norman-k-williams at uiowa.edu
> wrote:
> We're trying to re-format a bunch of the Iowa BRAINS code to conform to the
> ITK Coding style, so I'm running KWStyle on it all. I found the error
> message in the subject line almost comically baffling.
>
> What regular expression are template definitions supposed to match? Even
> when I looked at the source code, it doesn't actually use regcomp/regexec,
> it has some ad hoc parsing code that doesn't readily reveal to the casual
> reader what it is trying to match.
>
> Not only that, but the error message is associated with this template
> definition:
>
> template <class TransformType, unsigned int ImageDimension>
>
> which seems straightforward to me.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100611/1ab10e02/attachment.htm>
More information about the Insight-developers
mailing list