[PATCH] D13801: [Support] Extend sys::path with user_cache_directory function.

Paweł Bylica via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 05:17:53 PDT 2015


chfast created this revision.
chfast added a subscriber: llvm-commits.

The new function sys::path::user_cache_directory tries to discover
a directory suitable for cache storage for current system user.

On Windows and Darwin it returns a path to system-specific user cache directory.

On Linux it follows XDG Base Directory Specification, what is:
- use non-empty $XDG_CACHE_HOME env var,
- use $HOME/.cache.

http://reviews.llvm.org/D13801

Files:
  include/llvm/Support/Path.h
  lib/Support/Unix/Path.inc
  lib/Support/Windows/Path.inc
  unittests/Support/Path.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13801.37571.patch
Type: text/x-patch
Size: 4369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151016/5f953545/attachment.bin>


More information about the llvm-commits mailing list