This is an archive of the discontinued LLVM Phabricator instance.

Fix a buglet in remove_dots().
ClosedPublic

Authored by ppluzhnikov on May 25 2022, 1:08 PM.

Details

Summary

The function promises to canonicalize the path, but neglected to do so
for the root component.

For example, calling remove_dots("/tmp/foo.c", Style::windows_backslash)
resulted in "/tmp\foo.c". Now it produces "\tmp\foo.c".

Also fix FIXME in the corresponding test.

Diff Detail

Event Timeline

ppluzhnikov created this revision.May 25 2022, 1:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2022, 1:08 PM
Herald added a subscriber: hiraditya. · View Herald Transcript

Fix failed tests.

Rebase to ToT.

Fix InMemoryFileSystemTest bug.

Fix ProxyFileSystemTest.Basic on Win/x64

One more ProxyFileSystemTest fixe.

Fix compile failure.

Fix formatting.

ppluzhnikov published this revision for review.May 27 2022, 1:22 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 27 2022, 1:22 PM
rnk accepted this revision.Jun 2 2022, 10:23 AM

lgtm, sorry for the delay, do you need someone to push this?

This revision is now accepted and ready to land.Jun 2 2022, 10:23 AM

do you need someone to push this?

Yes, please.
I do not have commit rights.

This revision was landed with ongoing or failed builds.Jun 2 2022, 11:08 AM
Closed by commit rG35ab2a11bb55: Fix a buglet in remove_dots(). (authored by ppluzhnikov, committed by rnk). · Explain Why
This revision was automatically updated to reflect the committed changes.