[Lldb-commits] [PATCH] D18044: Fix a couple of cornercases in FileSpec + tests
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 10 07:03:08 PST 2016
labath created this revision.
labath added reviewers: clayborg, zturner.
labath added a subscriber: lldb-commits.
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".
http://reviews.llvm.org/D18044
Files:
source/Host/common/FileSpec.cpp
unittests/Host/CMakeLists.txt
unittests/Host/FileSpecTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18044.50275.patch
Type: text/x-patch
Size: 7574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160310/531ffe99/attachment.bin>
More information about the lldb-commits
mailing list