llvm-project/lldb/source/Host
Pavel Labath cc0e87cdae Fix a couple of cornercases in FileSpec + tests
Summary:
This fixes a couple of corner cases in FileSpec, related to AppendPathComponent and
handling of root directory (/) file spec. I add a bunch of unit tests for the new behavior.

Summary of changes:
FileSpec("/bar").GetCString(): before "//bar", after "/bar".
FileSpec("/").CopyByAppendingPathComponent("bar").GetCString(): before "//bar", after "/bar".
FileSpec("C:", ePathSyntaxWindows).CopyByAppendingPathComponent("bar").GetCString(): before "C:/bar", after "C:\bar".

Reviewers: clayborg, zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D18044

llvm-svn: 263207
2016-03-11 08:44:44 +00:00
..
android [linux] Remove all traces of signalfd(2) 2016-02-23 12:26:08 +00:00
common Fix a couple of cornercases in FileSpec + tests 2016-03-11 08:44:44 +00:00
freebsd Make lldb::endian::InlHostByteOrder() private. 2015-11-07 04:40:13 +00:00
linux Add support for abstract domain sockets. 2015-10-22 17:50:33 +00:00
macosx Make HostThread SetName work on OS X. GetName doesn't currently work, the code that was in 2016-02-04 19:42:32 +00:00
netbsd Remove autoconf support from source directories. 2016-01-28 22:05:24 +00:00
posix Fix all of the unannotated switch cases to annotate the fall through or do the right thing and break. 2016-02-26 01:20:20 +00:00
windows Add support for reading line tables from PDB files. 2016-03-02 22:05:52 +00:00
CMakeLists.txt Added real editline tests. 2015-10-30 02:54:52 +00:00