Currently the value is only used when calling F->viewCFG() which is missing out on its potential and usefulness.
So I added the check to the printer passes as well.
You may document the effect of -cfg-func-name in docs/Passes.rst
The most common style is ; RUN
Add a comment, e.g. ;; Both f and func are dumped because their names contain the pattern f` as a substring.`
It will be robust to rm -f %t.other.dot first before testing this.
A stale (e.g. when testing the feature) %t.other.dot file could cause the test to fail.
Delete trailing blank lines