Tools for helping migration to core profile

I need to check a larger application to evaluate feasibility of porting it to a core profile. This application is based on GLEW and I haven’t found a way yet to have headers included that only declare core profile features. The header file provided by the latest GLEW version contains everything unconditionally, deprecated or not, making it impossible to just define out the unwanted stuff for a quick check.

So I was wondering, are there any tools that can check the code for use of deprecated functionality?

There are other tools like the OpenGL Loader Generator where the actual loader is generated from a specification of required functionallity, or GL3W that focueses on core entry points only.

You might want to take a look at this listing here.