Revert "Remove function declaration from coverage"

This reverts commit bf7f837727aaa9d8da386e9bc0e357109484da0c.
Add exclude function declarations option