#
2f096097 |
| 24-Jan-2017 |
Pavel Labath <labath@google.com> |
[Support] Add sys::fs::set_current_path() (aka chdir)
Summary: This adds a cross-platform way of setting the current working directory analogous to the existing current_path() function used for retr
[Support] Add sys::fs::set_current_path() (aka chdir)
Summary: This adds a cross-platform way of setting the current working directory analogous to the existing current_path() function used for retrieving it. The function will be used in lldb.
Reviewers: rafael, silvas, zturner
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D29035
llvm-svn: 292907
show more ...
|
Revision tags: llvmorg-4.0.0-rc1, llvmorg-3.9.1, llvmorg-3.9.1-rc3, llvmorg-3.9.1-rc2, llvmorg-3.9.1-rc1 |
|
#
eb100b6a |
| 17-Oct-2016 |
Benjamin Kramer <benny.kra@googlemail.com> |
[Support] remove_dots: Remove windows test.
Windows doesn't have roots, so I think this test doesn't make sense there.
llvm-svn: 284386
|
#
937dd7af |
| 17-Oct-2016 |
Benjamin Kramer <benny.kra@googlemail.com> |
[Support] remove_dots: Remove .. from absolute paths.
/../foo is still a proper path after removing the dotdot. This should now finally match https://9p.io/sys/doc/lexnames.html [Cleaning names].
l
[Support] remove_dots: Remove .. from absolute paths.
/../foo is still a proper path after removing the dotdot. This should now finally match https://9p.io/sys/doc/lexnames.html [Cleaning names].
llvm-svn: 284384
show more ...
|
#
0db71d9e |
| 16-Oct-2016 |
Justin Bogner <mail@justinbogner.com> |
unittests: Explicitly ignore some return values in crash tests
Ideally these would actually check that the results are reasonable, but given that we're looping over so many different kinds of path t
unittests: Explicitly ignore some return values in crash tests
Ideally these would actually check that the results are reasonable, but given that we're looping over so many different kinds of path that isn't really practical.
llvm-svn: 284350
show more ...
|
#
af5a28fe |
| 13-Oct-2016 |
Eric Liu <ioeric@google.com> |
Do not delete leading ../ in remove_dots.
Reviewers: bkramer
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D25561
llvm-svn: 284129
|
#
1a4398a1 |
| 02-Sep-2016 |
Reid Kleckner <rnk@google.com> |
Fix a real temp file leak in FileOutputBuffer
If we failed to commit the buffer but did not die to a signal, the temp file would remain on disk on Windows. Having an open file mapping and file handl
Fix a real temp file leak in FileOutputBuffer
If we failed to commit the buffer but did not die to a signal, the temp file would remain on disk on Windows. Having an open file mapping and file handle prevents the file from being deleted. I am choosing not to add an assertion of success on the temp file removal, since virus scanners and other environmental things can often cause removal to fail in real world tools.
Also fix more temp file leaks in unit tests.
llvm-svn: 280445
show more ...
|
#
75e557f1 |
| 02-Sep-2016 |
Reid Kleckner <rnk@google.com> |
Try to fix some temp file leaks in SupportTests, PR18335
llvm-svn: 280443
|
Revision tags: llvmorg-3.9.0, llvmorg-3.9.0-rc3, llvmorg-3.9.0-rc2 |
|
#
0d955d0b |
| 11-Aug-2016 |
David Majnemer <david.majnemer@gmail.com> |
Use the range variant of find instead of unpacking begin/end
If the result of the find is only used to compare against end(), just use is_contained instead.
No functionality change is intended.
ll
Use the range variant of find instead of unpacking begin/end
If the result of the find is only used to compare against end(), just use is_contained instead.
No functionality change is intended.
llvm-svn: 278433
show more ...
|
Revision tags: llvmorg-3.9.0-rc1 |
|
#
0ad00462 |
| 21-Jun-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Switch to using an API that handles non-ASCII paths appropriately on Windows.
llvm-svn: 273262
|
#
3dd74b8e |
| 20-Jun-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Fix a relatively nasty bug with fs::getPathFromOpenFD() on Windows. The GetFinalPathNameByHandle API does not behave as documented; if given a buffer that has enough space for the path but not the nu
Fix a relatively nasty bug with fs::getPathFromOpenFD() on Windows. The GetFinalPathNameByHandle API does not behave as documented; if given a buffer that has enough space for the path but not the null terminator, the call will return the number of characters required *without* the null terminator (despite being documented otherwise) and it will not set GetLastError(). The result was that this function would return a bogus path and no error. Instead, ensure there is sufficient space for a null terminator (we already strip it off manually for compatibility with older versions of Windows).
llvm-svn: 273195
show more ...
|
#
d9153272 |
| 13-Jun-2016 |
Taewook Oh <twoh@fb.com> |
In openFileForRead, attempt to fetch the actual name of the file on disk -- including case -- so that clang can later warn about non-portable #include and #import directives.
Differential Revision:
In openFileForRead, attempt to fetch the actual name of the file on disk -- including case -- so that clang can later warn about non-portable #include and #import directives.
Differential Revision: http://reviews.llvm.org/D19842 Corresponding clang patch: http://reviews.llvm.org/D19843
Re-commit after addressing issues with of generating too many warnings for Windows and asan test failures
Patch by Eric Niebler
llvm-svn: 272555
show more ...
|
Revision tags: llvmorg-3.8.1, llvmorg-3.8.1-rc1 |
|
#
99497fde |
| 04-Jun-2016 |
Taewook Oh <twoh@fb.com> |
Revert commit r271704, a patch that enables warnings for non-portable #include and #import paths (Corresponding clang patch has been reverted by r271761). Patches are reverted because they generate l
Revert commit r271704, a patch that enables warnings for non-portable #include and #import paths (Corresponding clang patch has been reverted by r271761). Patches are reverted because they generate lots of unadressable warnings for windows and fail tests under ASAN.
llvm-svn: 271764
show more ...
|
#
dfec58e8 |
| 03-Jun-2016 |
Taewook Oh <twoh@fb.com> |
In openFileForRead, attempt to fetch the actual name of the file on disk -- including case -- so that clang can later warn about non-portable #include and #import directives.
Differential Revision:
In openFileForRead, attempt to fetch the actual name of the file on disk -- including case -- so that clang can later warn about non-portable #include and #import directives.
Differential Revision: http://reviews.llvm.org/D19842
Patch by Eric Niebler
llvm-svn: 271704
show more ...
|
#
bbd10b45 |
| 17-May-2016 |
Teresa Johnson <tejohnson@google.com> |
[ThinLTO] Option to control path of distributed backend files
Summary: Add support to control where files for a distributed backend (the individual index files and optional imports files) are create
[ThinLTO] Option to control path of distributed backend files
Summary: Add support to control where files for a distributed backend (the individual index files and optional imports files) are created.
This is invoked with a new thinlto-prefix-replace option in the gold plugin and llvm-lto. If specified, expects a string of the form "oldprefix:newprefix", and instead of generating these files in the same directory path as the corresponding bitcode file, will use a path formed by replacing the bitcode file's path prefix matching oldprefix with newprefix.
Also add a new replace_path_prefix helper to Path.h in libSupport.
Depends on D19636.
Reviewers: joker.eph
Subscribers: llvm-commits, joker.eph
Differential Revision: http://reviews.llvm.org/D19644
llvm-svn: 269771
show more ...
|
#
ead771cb |
| 13-May-2016 |
Bruno Cardoso Lopes <bruno.cardoso@gmail.com> |
[Support][Unittests] Add unittest for recursive_directory_iterator::level()
llvm-svn: 269488
|
#
dd2ca837 |
| 18-Apr-2016 |
Nico Weber <nicolasweber@gmx.de> |
Unbreak building unit tests on Windows after r266595.
llvm-svn: 266614
|
#
1562f69f |
| 05-Apr-2016 |
Etienne Bergeron <etienneb@google.com> |
[Support] Fix an invalid character escaping in string literal (unittest).
Summary: A character within a string literal is not escaped correctly. In this case, there is no semantic change because the
[Support] Fix an invalid character escaping in string literal (unittest).
Summary: A character within a string literal is not escaped correctly. In this case, there is no semantic change because the invalid character turn out to be NUL anyway.
note: "\0x12" is equivalent to {0, 'x', '1', '2'} and not { 12 }.
This issue was found by clang-tidy.
Reviewers: rnk
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D18747
llvm-svn: 265376
show more ...
|
Revision tags: llvmorg-3.8.0, llvmorg-3.8.0-rc3 |
|
#
88e9ff62 |
| 10-Feb-2016 |
Reid Kleckner <rnk@google.com> |
Fix a -Wsign-compare in Support Path unittests
llvm-svn: 260418
|
Revision tags: llvmorg-3.8.0-rc2 |
|
#
87c85b7e |
| 26-Jan-2016 |
Kevin Enderby <enderby@apple.com> |
Fix identify_magic() to check that a file that starts with MH_MAGIC is at least as big as the mach header to be identified as a Mach-O file and make sure smaller files are not identified as a Mach-O
Fix identify_magic() to check that a file that starts with MH_MAGIC is at least as big as the mach header to be identified as a Mach-O file and make sure smaller files are not identified as a Mach-O files but as unknown files. Also fix identify_magic() so it looks at all 4 bytes of the filetype field when determining the type of the Mach-O file. Then fix the macho-invalid-header test case to check that it is an unknown file and make sure it does not get the error for object_error::parse_failed. And also update the unit tests.
llvm-svn: 258883
show more ...
|
Revision tags: llvmorg-3.8.0-rc1, llvmorg-3.7.1, llvmorg-3.7.1-rc2 |
|
#
06d5618c |
| 17-Nov-2015 |
David Blaikie <dblaikie@gmail.com> |
Fix -Wunused-function in a non-Win32 build
llvm-svn: 253373
|
#
a90e7451 |
| 17-Nov-2015 |
Pawel Bylica <chfast@gmail.com> |
[Support] Tweak path::system_temp_directory() on Windows.
Summary: This patch changes the behavior of path::system_temp_directory() on Windows to be closer to GetTempPath Windows API call. Enforces
[Support] Tweak path::system_temp_directory() on Windows.
Summary: This patch changes the behavior of path::system_temp_directory() on Windows to be closer to GetTempPath Windows API call. Enforces path separator to be the native one, makes path absolute, etc. GetTempPath is not used directly because of limitations/implementation bugs on Windows 7.
Windows specific unit tests are added. Most of them runs in separated process with modified environment variables.
This change fixes FileSystemTest.CreateDir unittest that had been failing when run from Unix-like shell on Windows (Unix-like path separator (/) used in env variables).
Reviewers: chapuni, rafael, aaron.ballman
Subscribers: rafael, llvm-commits
Differential Revision: http://reviews.llvm.org/D14231
llvm-svn: 253345
show more ...
|
Revision tags: llvmorg-3.7.1-rc1 |
|
#
f8cf7133 |
| 09-Nov-2015 |
Mike Aizatsky <aizatsky@chromium.org> |
Windows-specific test for sys::path::remove_dots.
Differential Revision: http://reviews.llvm.org/D14503
llvm-svn: 252504
|
#
662b4fd3 |
| 09-Nov-2015 |
Mike Aizatsky <aizatsky@chromium.org> |
Moving FileManager::removeDotPaths to llvm::sys::path::remove_dots
Differential Revision: http://reviews.llvm.org/D14393
llvm-svn: 252499
|
#
6e680b2b |
| 06-Nov-2015 |
Pawel Bylica <chfast@gmail.com> |
Revert r252366: [Support] Use GetTempDir to get the temporary dir path on Windows.
llvm-svn: 252367
|
#
b4322143 |
| 06-Nov-2015 |
Pawel Bylica <chfast@gmail.com> |
[Support] Use GetTempDir to get the temporary dir path on Windows.
Summary: In general GetTempDir follows the same logic as the replaced code: checks env variables TMP, TEMP, USERPROFILE in order. H
[Support] Use GetTempDir to get the temporary dir path on Windows.
Summary: In general GetTempDir follows the same logic as the replaced code: checks env variables TMP, TEMP, USERPROFILE in order. However, it also perform other checks like making separators native (\), making the path absolute, etc.
This change fixes FileSystemTest.CreateDir unittest that had been failing when run from Unix-like shell on Windows (Unix-like path separator (/) used in env variables).
Reviewers: chapuni, rafael, aaron.ballman
Subscribers: rafael, llvm-commits
Differential Revision: http://reviews.llvm.org/D14231
llvm-svn: 252366
show more ...
|