Skip to content

clang-tidy warning due to readability-identifier-naming #111

@avitase

Description

@avitase

I have created a new project called foo of type "static/shared". During building the project for the first time an error is thrown by clang-tidy due to "invalid case style for type template parameter", although there are no template parameters in the generated example!?

$ cmake --preset=dev && cmake --build --preset=dev
[ 16%] Building CXX object CMakeFiles/foo_foo.dir/source/foo.cpp.o
warning: invalid case style for type template parameter 'expr-type' [readability-identifier-naming]
[ 33%] Linking CXX static library libfoo.a
[ 33%] Built target foo_foo
[ 50%] Building CXX object example/CMakeFiles/empty_example.dir/empty_example.cpp.o
[ 66%] Building CXX object test/CMakeFiles/foo_test.dir/source/foo_test.cpp.o
[ 83%] Linking CXX executable empty_example
[ 83%] Built target empty_example
warning: invalid case style for type template parameter 'expr-type' [readability-identifier-naming]
[100%] Linking CXX executable foo_test
[100%] Built target foo_test

Changing the values of readability-identifier-naming.TemplateParameterCase and readability-identifier-naming.TypeTemplateParameterCase to aNy_CasE fixes this issue but obviously this shouldn't be the solution... Any idea what actually triggers this warning?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions