Kitware / KWStyle

Kitware Style Checker
Other
53 stars 30 forks source link

BUG: KWStyle mishandles template<unsigned> #106

Open Leengit opened 2 years ago

Leengit commented 2 years ago

Description

If

   template <unsigned int>
   struct Dispatch : public DispatchBase
   {};

is replaced with

   template <unsigned>
   struct Dispatch : public DispatchBase
   {};

then KWStyle gives the error:

Modules/Core/Common/include/itkBSplineDerivativeKernelFunction.h:93: error: Template definition (unsigned) doesn't match regular expression

Expected behavior

KWStyle should permit unsigned in this context of an unsigned template parameter that is unnamed.

Actual behavior

KWStyle gives the error:

Modules/Core/Common/include/itkBSplineDerivativeKernelFunction.h:93: error: Template definition (unsigned) doesn't match regular expression

Reproducibility

100%

Versions

ITK commit ae8cd2588968b1f9680fd3f981a3139e433babc9

Environment