Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: KWStyle mishandles template<unsigned> #106

Open
Leengit opened this issue Jan 26, 2022 · 0 comments
Open

BUG: KWStyle mishandles template<unsigned> #106

Leengit opened this issue Jan 26, 2022 · 0 comments

Comments

@Leengit
Copy link

Leengit commented Jan 26, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant