[llvm] r252265 - NFC: Update documentation for createUniqueFile() to explain that models without an absolute path will be created in the current directory.

Cameron Esfahani via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 5 17:45:30 PST 2015


Author: dirty
Date: Thu Nov  5 19:45:30 2015
New Revision: 252265

URL: http://llvm.org/viewvc/llvm-project?rev=252265&view=rev
Log:
NFC: Update documentation for createUniqueFile() to explain that models without an absolute path will be created in the current directory.

Modified:
    llvm/trunk/include/llvm/Support/FileSystem.h

Modified: llvm/trunk/include/llvm/Support/FileSystem.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FileSystem.h?rev=252265&r1=252264&r2=252265&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/FileSystem.h (original)
+++ llvm/trunk/include/llvm/Support/FileSystem.h Thu Nov  5 19:45:30 2015
@@ -546,15 +546,15 @@ std::error_code status_known(const Twine
 ///
 /// Generates a unique path suitable for a temporary file and then opens it as a
 /// file. The name is based on \a model with '%' replaced by a random char in
-/// [0-9a-f]. If \a model is not an absolute path, a suitable temporary
-/// directory will be prepended.
+/// [0-9a-f]. If \a model is not an absolute path, the temporary file will be
+/// created in the current directory.
 ///
 /// Example: clang-%%-%%-%%-%%-%%.s => clang-a0-b1-c2-d3-e4.s
 ///
 /// This is an atomic operation. Either the file is created and opened, or the
 /// file system is left untouched.
 ///
-/// The intendend use is for files that are to be kept, possibly after
+/// The intended use is for files that are to be kept, possibly after
 /// renaming them. For example, when running 'clang -c foo.o', the file can
 /// be first created as foo-abc123.o and then renamed.
 ///




More information about the llvm-commits mailing list