bnbarham added a comment.

In D121733#3393546 <https://reviews.llvm.org/D121733#3393546>, @rnk wrote:

> I've been somewhat afraid to touch this code because of symlinks. Is that 
> something we need to worry about? Consider this path: root/symlink/../foo.h. 
> remove_dots will turn this into root/foo.h, but if symlink points to some 
> unrelated directory, the .. directory entry points to something other than 
> root. I can't imagine that people rely on this behavior often, but I could be 
> wrong.

`remove_dots` doesn't remove `..` by default, it needs to be passed `true` to 
do that. This is only removing `.`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121733/new/

https://reviews.llvm.org/D121733

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to