1.. title:: clang-tidy - google-objc-function-naming 2 3google-objc-function-naming 4=========================== 5 6Finds function declarations in Objective-C files that do not follow the pattern 7described in the Google Objective-C Style Guide. 8 9The corresponding style guide rule can be found here: 10https://google.github.io/styleguide/objcguide.html#function-names 11 12All function names should be in Pascal case. Functions whose storage class is 13not static should have an appropriate prefix. 14 15The following code sample does not follow this pattern: 16 17.. code-block:: objc 18 19 static bool is_positive(int i) { return i > 0; } 20 bool IsNegative(int i) { return i < 0; } 21 22The sample above might be corrected to the following code: 23 24.. code-block:: objc 25 26 static bool IsPositive(int i) { return i > 0; } 27 bool *ABCIsNegative(int i) { return i < 0; } 28