[PATCH] D12774: createUniqueFile() is documented to create the file in the temporary directory unless it's supplied an absolute path.Make sure the output filepath supplied to createUniqueFile() in HTMLDiagnostics::ReportDiag() is absolute.

Cameron Esfahani via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 21 14:56:27 PDT 2015


dirty added a comment.

Are you suggesting I change the code to something like the following:

  if (std::error_code EC =
      llvm::sys::fs::make_absolute(Model)) {
      llvm::errs() << "warning: could not make '" << Model
                   << "' absolute: " << EC.message() << '\n';
    return;
  }


http://reviews.llvm.org/D12774





More information about the cfe-commits mailing list