| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
| |
When using a //net/ path, we were transforming the trailing / into a '.'
when the path was just the root path and we were iterating backwards.
Forwards iteration and other kinds of root path (C:\, /) were already
correct.
llvm-svn: 202999
|
| |
|
|
|
|
| |
directly, and remove the macro.
llvm-svn: 202612
|
| |
|
|
| |
llvm-svn: 202583
|
| |
|
|
|
|
|
|
|
| |
After this I will set the default back to F_None. The advantage is that
before this patch forgetting to set F_Binary would corrupt a file on windows.
Forgetting to set F_Text produces one that cannot be read in notepad, which
is a better failure mode :-)
llvm-svn: 202052
|
| |
|
|
| |
llvm-svn: 202050
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before this patch they would take an boolean argument to say if the path
already existed. This was redundant with the returned error_code which is able
to represent that. This allowed for callers to incorrectly check only the
existed flag instead of first checking the error code.
Instead, pass in a boolean flag to say if the previous (non-)existence should be
an error or not.
Callers of the of the old simple versions are not affected. They still ignore
the previous (non-)existence as they did before.
llvm-svn: 201979
|
| |
|
|
|
|
|
|
|
| |
This will be used by the line editor library to derive a default path to
the history file.
Differential Revision: http://llvm-reviews.chandlerc.com/D2199
llvm-svn: 200594
|
| |
|
|
| |
llvm-svn: 198955
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Summary: Make identify_magic to recognize COFF import file.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2165
llvm-svn: 194852
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Some machine-type-neutral object files containing only undefined symbols
actually do exist in the Windows standard library. Need to recognize them
as COFF files.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2164
llvm-svn: 194734
|
| |
|
|
| |
llvm-svn: 194607
|
| |
|
|
| |
llvm-svn: 194605
|
| |
|
|
| |
llvm-svn: 193431
|
| |
|
|
|
|
|
|
|
| |
This fixes the incorrect implementation of iterating on file/directory
paths.
Differential Review: http://llvm-reviews.chandlerc.com/D1277
llvm-svn: 188183
|
| |
|
|
|
|
|
|
|
| |
The unix one was returning no_such_file_or_directory, but the windows one
was return success.
Update the one one caller that was depending on the old behavior.
llvm-svn: 187463
|
| |
|
|
| |
llvm-svn: 187441
|
| |
|
|
|
|
| |
This will let us use getUniqueID instead of st_dev directly on clang.
llvm-svn: 187378
|
| |
|
|
| |
llvm-svn: 187124
|
| |
|
|
| |
llvm-svn: 186676
|
| |
|
|
| |
llvm-svn: 186561
|
| |
|
|
|
|
|
| |
This centralizes the handling of O_BINARY and opens the way for hiding more
differences (like how open behaves with directories).
llvm-svn: 186447
|
| |
|
|
| |
llvm-svn: 185834
|
| |
|
|
| |
llvm-svn: 185730
|
| |
|
|
| |
llvm-svn: 185719
|
| |
|
|
|
|
|
|
|
|
|
| |
There are a few valid situation where we care about the structure inside a
directory, but not about the directory itself. A simple example is for unit
testing directory traversal.
PathV1 had a function like this, add one to V2 and port existing users of the
created temp file and delete it hack to using it.
llvm-svn: 185059
|
| |
|
|
| |
llvm-svn: 184431
|
| |
|
|
|
|
| |
actually finds a unique identifier for a file. Also adds unit tests for GetUniqueID.
llvm-svn: 184351
|
| |
|
|
|
|
|
| |
Most clients have already been moved from Path V1 to V2. The ones using V1
now include PathV1.h explicitly.
llvm-svn: 183801
|
| |
|
|
| |
llvm-svn: 178905
|
| |
|
|
|
|
| |
to Paul Robinson!
llvm-svn: 177223
|
| |
|
|
| |
llvm-svn: 176996
|
| |
|
|
| |
llvm-svn: 169250
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rationale:
1) This was the name in the comment block. ;]
2) It matches Clang's __has_feature naming convention.
3) It matches other compiler-feature-test conventions.
Sorry for the noise. =]
I've also switch the comment block to use a \brief tag and not duplicate
the name.
llvm-svn: 168996
|
| |
|
|
| |
llvm-svn: 161979
|
| |
|
|
| |
llvm-svn: 161976
|
| |
|
|
| |
llvm-svn: 159099
|
| |
|
|
| |
llvm-svn: 159098
|
| |
|
|
|
|
| |
and add unit test. Unix is implemented. Windows side needs to be implemented.
llvm-svn: 158770
|
| |
|
|
|
|
|
| |
Original commit message:
Support/FileSystem: Implement canonicalize.
llvm-svn: 146378
|
| |
|
|
| |
llvm-svn: 146364
|
| |
|
|
| |
llvm-svn: 146363
|
| |
|
|
|
|
|
| |
end iterator.
FIXME: It should be more robust.
llvm-svn: 146294
|
| |
|
|
|
|
| |
dontlookhere check must be after it.
llvm-svn: 146217
|
| |
|
|
|
|
|
| |
I have run these tests under many configurations on the exact same OS as
the failures, and I can't reproduce them :(.
llvm-svn: 146214
|
| |
|
|
|
|
| |
directory_iterator preserve InputIterator semantics on copy.
llvm-svn: 146200
|
| |
|
|
|
|
| |
on the host OS. Reviewed by dgregor.
llvm-svn: 125406
|
| |
|
|
| |
llvm-svn: 123546
|
| |
|
|
| |
llvm-svn: 122948
|
| |
|
|
| |
llvm-svn: 122947
|
| |
|
|
|
|
| |
code.
llvm-svn: 122885
|