[PATCH] D139774: [libclang] Add API to set temporary directory location

Igor Kushnir via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 19 08:49:19 PST 2023


vedgy added a comment.

In D139774#4065753 <https://reviews.llvm.org/D139774#4065753>, @aaron.ballman wrote:

> I lean towards #2b over #2a due to wanting individual overrides rather than a blanket override (e.g., we should be able to put preamble files in a different location than we put, say, crash logs).

Crash logs don't really belong to a common temporary directory. Are they actually placed into a temporary directory erased on reboot? I'd prefer coarser categories, like temp dir erased-on-reboot and not-erased-on-reboot, similar to `void system_temp_directory(bool erasedOnReboot` in //Path.h//. This definitely makes more sense to the use case of removing these temporary files on next application start. Why would a libclang-using program care about categories of its internally-used temporary files?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139774/new/

https://reviews.llvm.org/D139774



More information about the cfe-commits mailing list