Warning when C++ globals are not explicitly initialized?

Viewed 105

Say I have a global (or namespace-scoped) variable like:

int *Pointer;

This is, of course, zero initialized, but is there a way in Clang (or with Clang's static analysis tools) to warn about Pointer not being explicitly initialized? I have searched and been unable to find anything.

1 Answers
Related