This is an archive of the discontinued LLVM Phabricator instance.

[YAMLVFSWriter] Fix directory handling
ClosedPublic

Authored by jkorous on May 6 2020, 10:04 PM.

Details

Summary

For empty directories (except the first one) we've been adding a file with the same name as the directory to the result VFS mapping.

Diff Detail

Event Timeline

jkorous created this revision.May 6 2020, 10:04 PM

Small nit but otherwise this LGTM. Thanks for fixing this!

llvm/unittests/Support/VirtualFileSystemTest.cpp
2244

I don't have a really strong opinion about this, but I think it'd be nice to be consistent with the other tests and use a, b and c.

This revision was not accepted when it landed; it landed in state Needs Review.May 7 2020, 11:21 AM
This revision was automatically updated to reflect the committed changes.