I run diff with the -p option so the output will include the name of the function where each change occurred. Is there an analogous option for
diff
-p
You could write a script that grep -vs into a temporary file and then diff -ps that with the original. That way diff would find the lines that grep removed (i.e. the lines that you want), and you would get the exact same function matching.
grep -v
diff -p
grep