flymake-create-master-file

flymake-create-master-file is a compiled Lisp function in `flymake.el'.

(flymake-create-master-file SOURCE-FILE-NAME PATCHED-SOURCE-FILE-NAME GET-INCL-DIRS-F CREATE-TEMP-F MASKS INCLUDE-REGEXP)

Save SOURCE-FILE-NAME with a different name.
Find master file, patch and save it.