KWStyle icon indicating copy to clipboard operation
KWStyle copied to clipboard

BUG: KWStyle mishandles template<unsigned>

Open Leengit opened this issue 2 years ago • 0 comments

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

  • Linux 5.13.0-27-generic #29~20.04.1-Ubuntu SMP Fri Jan 14 00:32:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
  • clang-format version 8.0.0 (tags/RELEASE_800/final)
  • Python 3.8.10

Leengit avatar Jan 26 '22 14:01 Leengit