Closed FoxLightning closed 2 months ago
Clang is correctly rejecting the boost code. The template
keyword must be followed by a template-id (i.e. a name followed by template argument list), except when the name refers to a class or alias template (and this use is deprecated).
From a quick look at the code, the template
keyword simply should be removed.
I would suggest reporting the issue to boost/qvm.
Clang is correctly rejecting the boost code. The
template
keyword must be followed by a template-id (i.e. a name followed by template argument list), except when the name refers to a class or alias template (and this use is deprecated).From a quick look at the code, the
template
keyword simply should be removed.I would suggest reporting the issue to boost/qvm.
See also #94194.
If this is a normal situation, then why does clang compiler not produce this error? Why params -clang-diagnostic-missing-template-arg-list-after-template-kw and -Wno-missing-template-arg-list-after-template-kw in .clang-tidy dont work?
Perhaps you've configured clang-tidy incorrectly?
@llvm/issue-subscribers-c-1
Author: Bogdan (FoxLightning)
@llvm/issue-subscribers-clang-tidy
Author: Bogdan (FoxLightning)
Yes, indeed the problem was in the wrong arguments for the linter. I missed --extra-arg-before This helps me
--extra-arg-before=-Wno-missing-template-arg-list-after-template-kw
Thanks everyone for your help
boost/qvm/quat_traits.hpp:82:30: error: a template argument list is expected after a name prefixed by the template keyword [clang-diagnostic-missing-template-arg-list-after-template-kw] 82 | quat_traits
appear if use in cmake project with boost built from source v1.85 tried c++ standard 17 20 23 - same result
LLVM version 20.0.0git Optimized build. (on 18 was crash)
latest Mac OS cpu m1pro