Dump defines file when KDEV_CLANG_DISPLAY_DEFINES is set
We need to jump through some hoops here, since it's not easy
to rewind the temporary file itself to have it output its contents.
So instead, close the file and reopen it separate to read the
contents.