llvm.org GIT mirror llvm / d26d6b6
Update the comment for system_temp_directory() to indicate when it will ignore the erasedOnReboot option, and properly escape the backslash in "C:\TEMP". Thanks to Aaron and Francois. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139755 91177308-0d34-0410-b5e6-96231b3b80d8 Douglas Gregor 8 years ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
267267 /// "/var/tmp" or "C:/TEMP"
268268 ///
269269 /// @param erasedOnReboot Whether to favor a path that is erased on reboot
270 /// rather than one that potentially persists longer.
270 /// rather than one that potentially persists longer. This parameter will be
271 /// ignored if the user or system has set the typical environment variable
272 /// (e.g., TEMP on Windows, TMPDIR on *nix) to specify a temporary directory.
273 ///
271274 /// @param Result Holds the resulting path name.
272275 void system_temp_directory(bool erasedOnReboot, SmallVectorImpl &result);
273276
509509 const char *DefaultResult;
510510 #ifdef LLVM_ON_WIN32
511511 (void)erasedOnReboot;
512 DefaultResult = "C:\TEMP";
512 DefaultResult = "C:\\TEMP";
513513 #else
514514 if (erasedOnReboot)
515515 DefaultResult = "/tmp";