llvm-project
llvm-project copied to clipboard
Infer word boundaries in lowercase function names for Pascal case fixits
| Bugzilla Link | 39941 |
| Version | unspecified |
| OS | All |
Extended Description
The google-objc-function-naming currently treats contiguous alphanumeric sequences as one word when recommending a Pascal case function name. We could update the check to infer word boundaries using things like the return type and common function name prefixes.
For example, if a function name begins with "is" or "has" and the function has a boolean return type, there may be a high probability that the first word in the function name is "is" or "has".
Inferring word boundaries could improve the quality of fixit suggestions.