| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
This patch tries to avoid unrelated changes other than fixing a few
hyphen-related ambiguities and contractions in nearby lines.
llvm-svn: 196471
|
|
|
|
|
|
| |
Patch by Robin Hahling.
llvm-svn: 193750
|
|
|
|
|
|
|
| |
Some users (clang, libTooling) require this. After this patch we can remove
the calls to getenv("PWD") from clang.
llvm-svn: 188125
|
|
|
|
| |
llvm-svn: 187383
|
|
|
|
|
|
| |
This will let us use getUniqueID instead of st_dev directly on clang.
llvm-svn: 187378
|
|
|
|
|
|
|
|
|
|
| |
On Windows, this improves clean cmake configuration time on my
workstation from 1m58s to 1m32s, which is pretty significant. There's
probably more that can be done here, but this is the low hanging fruit.
Eric volunteered to regenerate ./configure for me.
llvm-svn: 187209
|
|
|
|
|
|
| |
It is similar to 186511, but for creating files for writing.
llvm-svn: 186679
|
|
|
|
| |
llvm-svn: 186561
|
|
|
|
|
|
|
|
|
|
|
| |
This has some advantages:
* Lets us use native, utf16 windows functions.
* Easy to produce good errors on windows about trying to use a
directory when we want a file.
* Simplifies the unix version a bit.
llvm-svn: 186511
|
|
|
|
|
|
|
|
|
| |
Rename's documentation says "Files are renamed as if by POSIX rename()". and it
is used for atomically updating output files from a temporary. Having rename
fallback to a non atomic copy has the potential to hide bugs, like using
a temporary file in /tmp instead of a unique name next to the final destination.
llvm-svn: 186483
|
|
|
|
| |
llvm-svn: 186378
|
|
|
|
|
|
|
| |
This opens the way of having static helpers in the .inc files that can
construct a file_status.
llvm-svn: 186376
|
|
|
|
|
|
|
|
|
|
| |
The status function is already using a syscall that returns the file size.
Remember it and implement file_size as a simple wrapper.
No functionally change, but clients that already use status now can avoid
calling file_size.
llvm-svn: 186016
|
|
|
|
| |
llvm-svn: 185834
|
|
|
|
| |
llvm-svn: 185605
|
|
|
|
| |
llvm-svn: 185603
|
|
|
|
|
|
| |
Patch by pashev.igor.
llvm-svn: 185601
|
|
|
|
| |
llvm-svn: 185136
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Don't try to create parent directories in unique_file. It had two problem:
* It violates the contract that it is atomic. If the directory creation
success and the file creation fails, we would return an error but the
file system was modified.
* When creating a temporary file clang would have to first check if the
parent directory existed or not to avoid creating one when it was not
supposed to.
* More efficient implementations of createUniqueDirectory and the unique_file
that produces only the file name. Now all 3 just call into a static
function passing what they want (name, file or directory).
Clang also has to be updated, so tests might fail if a bot picks up this commit
and not the corresponding clang one.
llvm-svn: 185126
|
|
|
|
| |
llvm-svn: 185015
|
|
|
|
| |
llvm-svn: 184960
|
|
|
|
| |
llvm-svn: 184916
|
|
|
|
| |
llvm-svn: 184910
|
|
|
|
| |
llvm-svn: 184853
|
|
|
|
| |
llvm-svn: 184852
|
|
|
|
| |
llvm-svn: 184311
|
|
|
|
| |
llvm-svn: 184298
|
|
|
|
| |
llvm-svn: 184235
|
|
|
|
| |
llvm-svn: 184229
|
|
|
|
| |
llvm-svn: 184219
|
|
|
|
|
|
|
|
| |
It looks like clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp
depends on the behaviour of the old one on Windows. Maybe a difference
between GetCurrentDirectoryA and GetCurrentDirectoryW?
llvm-svn: 184009
|
|
|
|
|
|
| |
GetCurrentDirectory is now unused. Remove it.
llvm-svn: 184003
|
|
|
|
| |
llvm-svn: 183839
|
|
|
|
| |
llvm-svn: 183836
|
|
|
|
| |
llvm-svn: 183835
|
|
|
|
| |
llvm-svn: 183833
|
|
|
|
| |
llvm-svn: 183831
|
|
|
|
| |
llvm-svn: 183828
|
|
|
|
| |
llvm-svn: 183827
|
|
|
|
| |
llvm-svn: 183826
|
|
|
|
| |
llvm-svn: 183780
|
|
|
|
| |
llvm-svn: 183779
|
|
|
|
| |
llvm-svn: 183778
|
|
|
|
| |
llvm-svn: 183775
|
|
|
|
| |
llvm-svn: 183773
|
|
|
|
| |
llvm-svn: 183770
|
|
|
|
| |
llvm-svn: 183765
|
|
|
|
|
|
|
|
|
|
|
| |
For example, under a Linux chroot, /proc/ might not be mounted.
Therefor, we test if this file exist. If it is the case, use it (the current
behavior). Otherwise, we fall back to the detection used by *BSD.
The issue has been reported initially on the Debian bug tracker:
http://bugs.debian.org/674588
llvm-svn: 164676
|
|
|
|
|
|
| |
Patch by David Hill.
llvm-svn: 161344
|
|
|
|
| |
llvm-svn: 160142
|