arocc icon indicating copy to clipboard operation
arocc copied to clipboard

Issue a warning when a variable is used to initialize itself

Open ehaas opened this issue 4 years ago • 1 comments

.uninitialized_in_own_init should be issued if a variable is used in its own initializer (there are some caveats, see the lines marked with -Wuninitialized in the initializers.c test case)

ehaas avatar Dec 09 '21 08:12 ehaas

The same mechanism should also be able to detect use of uninitialized variables in general (in the limited scope of per function static analysis).

Vexu avatar Dec 09 '21 08:12 Vexu