I’m grep’ping through WP core, attempting to write a grep statement that will find all PHP functions, while excluding any class methods or Javascript functions.
This is what I have now:
grep -r --include=*.php 'function [A-Za-z_]+(.+)' .
This is returning both polluted functions from class methods and JS functions.
You might probably want to try http://phpxref.sourceforge.net/ I passed the entire WordPress code into PHPXref a couple of years back and was able to get the complete list of functions, classes etc.