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

readability-identifier-naming doesn't ignore auto constructor parameters with deduction guides #56464

Open
philnik777 opened this issue Jul 10, 2022 · 1 comment

Comments

@philnik777
Copy link
Contributor

philnik777 commented Jul 10, 2022

clang-tidy currently diagnoses

template<class>
struct subrange {
subrange(auto __iter);
};

template<class _Iter>
subrange(_Iter) -> subrange<_Iter>;

with

[warning: invalid case style for type template parameter '__iter:auto' [readability-identifier-naming]
subrange(auto __iter);
         ~~~~ ^~~~~~
         _AutoAutoO _AutoAutoO

This is the configuration:

{Checks: 'readability-identifier-naming',
 CheckOptions: {readability-identifier-naming.TypeTemplateParameterCase: CamelCase,
                readability-identifier-naming.TypeTemplateParameterPrefix: _}}

https://godbolt.org/z/KPfMcYae5

@llvmbot
Copy link
Member

llvmbot commented Jul 10, 2022

@llvm/issue-subscribers-clang-tidy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants