[Lldb-commits] [PATCH] D20041: File path comparisons should be case-insensitive on OS X

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 5 08:31:56 PDT 2016


Assert probably

On Mon, Sep 5, 2016 at 4:04 AM Pavel Labath <labath at google.com> wrote:

> labath added a subscriber: labath.
> labath added a comment.
>
>
>
>
> ================
> Comment at: include/lldb/Host/FileSpec.h:712
> @@ +711,3 @@
> +             PathSyntax syntax = ePathSyntaxHostNative,
> +             llvm::Triple *triple = nullptr);
> +
> ----------------
> I don't think the default-null parameter here is a good idea. This means
> some of your file-specs will be case-sensitive and some will not (depending
> on whether the the person who created the FileSpec remembered to pass in
> the triple).
>
> If it were up to me, I wouldn't even make case-sensitivity a property of
> the file spec. I think it should be a property of the comparison between
> them. Otherwise, what are you going to do when someone asks you to compare
> a case-insensitive "/foo/bar" with a case-sensitive "/Foo/Bar" ?
>
>
> https://reviews.llvm.org/D20041
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160905/5fa34082/attachment.html>


More information about the lldb-commits mailing list