labath accepted this revision. labath added inline comments.
================ Comment at: unittests/Utility/FileSpecTest.cpp:342 + EXPECT_FALSE(fs_posix_relative.RemoveLastPathComponent()); + EXPECT_STREQ("foo", fs_posix_relative.GetCString()); + ---------------- JDevlieghere wrote: > labath wrote: > > Is this the behavior you want here? I was thinking we could fold this all > > the way to "." (arguably "." is a parent of "foo", though I can see how > > that may be thought to be too magical) > I like this approach it doesn't consider `.` to be a special case and > therefore things are consistent and straightforward. My worry is that if we > add special cases, we risk ending up with missing edge cases (like the > previous implementation). Ok, if that works for your use case (as far as path remappings go, "." is a more generic mapping than "foo"), then that's fine by me. I like how you were able to concisely describe the new semantics of this function. https://reviews.llvm.org/D47495 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits