I have a .clang-tidy file which includes
CheckOptions:
- { key: readability-identifier-naming.ClassMethodCase, value: CamelCase }
- { key: readability-identifier-naming.FunctionCase, value: aNy_CasE }
and a test file with this content
test.hpp
class TestClass {
int myMethod();
};
I would expect the method myMethod to trigger the ClassMethodCase warning, but its not
clang-tidy test.hpp
reports nothing
If I set the FunctionCase option to CamelCase, then it triggers warning.
Why is clang-tidy considering myMethod is a function? Is this a bug or am I misunderstanding something?