fixed format-cxx-file function