llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Make google-objc-function-naming recommend converting from global to static when appropriate

Open stephanemoore opened this issue 7 years ago • 2 comments

Bugzilla Link 39945
Version unspecified
OS All

Extended Description

If a global function's definition, declaration, or both are in the same implementation file and the global function is missing an appropriate prefix, it is probably reasonable to convert the function to a static function rather than require prefixing appropriate for a global function.

stephanemoore avatar Dec 11 '18 00:12 stephanemoore

To correct my previous description: The function definition and declaration (if it exists) need to be in the same implementation file in order for conversion to static to be appropriate.

stephanemoore avatar Dec 11 '18 00:12 stephanemoore

assigned to @stephanemoore

stephanemoore avatar Dec 11 '18 00:12 stephanemoore