34 lines · plain
1// RUN: %check_clang_tidy %s google-objc-function-naming %t2 3void printSomething() {}4// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: function in global namespace named5// 'printSomething' must have an appropriate prefix followed by Pascal case as6// required by Google Objective-C style guide7 8void PrintSomething() {}9// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: function in global namespace named10// 'PrintSomething' must have an appropriate prefix followed by Pascal case as11// required by Google Objective-C style guide12 13void ABCBad_Name() {}14// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: function in global namespace named15// 'ABCBad_Name' must have an appropriate prefix followed by Pascal case as16// required by Google Objective-C style guide17 18namespace {19 20int foo() { return 0; }21 22}23 24namespace bar {25 26int convert() { return 0; }27 28}29 30class Baz {31public:32 int value() { return 0; }33};34