I have a quite large C++ header file that requires cleanup. The file mainly contains enums and some defines. What I would like is to run "Find All References" (from within the VS right click context menu) on each define and enum element, and delete (or mark in some way) the lines where there are no more than 1 reference. Is there any tool that can help me automate this process?
The idea of using Find All References comes from this answer: https://stackoverflow.com/a/2380203/3790395