1// RUN: %check_clang_tidy %s google-objc-function-naming %t
2
3void printSomething() {}
4// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: function in global namespace named
5// 'printSomething' must have an appropriate prefix followed by Pascal case as
6// required by Google Objective-C style guide
7
8void PrintSomething() {}
9// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: function in global namespace named
10// 'PrintSomething' must have an appropriate prefix followed by Pascal case as
11// required by Google Objective-C style guide
12
13void ABCBad_Name() {}
14// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: function in global namespace named
15// 'ABCBad_Name' must have an appropriate prefix followed by Pascal case as
16// required by Google Objective-C style guide
17
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

source code of clang-tools-extra/test/clang-tidy/checkers/google/objc-function-naming.mm