Implement a diagnostic in Clang to identify global variable definitions that are only used within a single local scope (e.g. function scope, local block scope, etc.) and suggest moving them into the appropriate scope instead.