// RUN: %check_clang_tidy %s readability-identifier-naming %t -std=c++20 \ // RUN: --config='{CheckOptions: { \ // RUN: readability-identifier-naming.MethodCase: CamelCase, \ // RUN: }}' namespace SomeNamespace { namespace Inner { class SomeClass { public: template int someMethod(); // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: invalid case style for method 'someMethod' [readability-identifier-naming] // CHECK-FIXES: int SomeMethod(); }; template int SomeClass::someMethod() { // CHECK-FIXES: int SomeClass::SomeMethod() { return 5; } } // namespace Inner void someFunc() { Inner::SomeClass S; S.someMethod(); // CHECK-FIXES: S.SomeMethod(); } } // namespace SomeNamespace