brintos

brintos / llvm-project-archived public Read only

0
0
Text · 839 B · 6a4043c Raw
28 lines · plain
1.. title:: clang-tidy - google-objc-function-naming2 3google-objc-function-naming4===========================5 6Finds function declarations in Objective-C files that do not follow the pattern7described 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-names11 12All function names should be in Pascal case. Functions whose storage class is13not static should have an appropriate prefix.14 15The following code sample does not follow this pattern:16 17.. code-block:: objc18 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:: objc25 26  static bool IsPositive(int i) { return i > 0; }27  bool *ABCIsNegative(int i) { return i < 0; }28