[ITK-dev] [ITK] New clang warnings: reserved-id-macro

Matt McCormick matt.mccormick at kitware.com
Thu Dec 11 15:19:20 EST 2014


Hi Sean,

Thanks for working on this!

The KWStyle configuration can be updated here:

  http://itk.org/gitweb?p=ITK.git;a=blob;f=Utilities/KWStyle/ITK.kws.xml;h=34569cf363cf65a2f7936d564d09793dca95006f;hb=HEAD#l14

Thanks,
Matt

On Thu, Dec 11, 2014 at 3:15 PM, Sean McBride <sean at rogue-research.com> wrote:
> On Thu, 11 Dec 2014 12:32:49 -0500, Bradley Lowekamp said:
>
>>warning: reserved identifier is used as macro name [-Wreserved-id-macro]
>>#define __itkMacro_h
>
> So I did some find/replace, but when I try to commit, I get:
>
> ---------------------------
> Examples/IO/XML/itkParticleSwarmOptimizerDOMReader.h:29: error: itkParticleSwarmOptimizerDOMReader_h v.s. __itkParticleSwarmOptimizerDOMReader_h
> pre-commit hook failure
> -----------------------
>
> KWStyle check failed.
>
> Line numbers in the errors shown refer to the file:
> Examples/IO/XML/itkParticleSwarmOptimizerDOMReader.h.kws
> ---------------------------
>
> Is there a style check that's checking for a header guard format?!
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
> _______________________________________________
> 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.php
>
> 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://public.kitware.com/mailman/listinfo/insight-developers
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community


More information about the Insight-developers mailing list