reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
// RUN: %check_clang_tidy %s google-objc-function-naming %t

void printSomething() {}
// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: function in global namespace named
// 'printSomething' must have an appropriate prefix followed by Pascal case as
// required by Google Objective-C style guide

void PrintSomething() {}
// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: function in global namespace named
// 'PrintSomething' must have an appropriate prefix followed by Pascal case as
// required by Google Objective-C style guide

void ABCBad_Name() {}
// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: function in global namespace named
// 'ABCBad_Name' must have an appropriate prefix followed by Pascal case as
// required by Google Objective-C style guide

namespace {

int foo() { return 0; }

}

namespace bar {

int convert() { return 0; }

}

class Baz {
public:
  int value() { return 0; }
};