Suppose we have some named enums:
enum MyEnum { FOO, BAR = 0x50 };
What I googled for is a script (any language) that scans all
That's pretty much the only way it can be done (an array of string could work also).
The problem is, once a C program is compiled, the binary value of the enum is all that is used, and the name is gone.