This is an archive of the discontinued LLVM Phabricator instance.

Moving FileManager::removeDotPaths to llvm::sys::path::remove_dots
ClosedPublic

Authored by aizatsky on Nov 5 2015, 2:01 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

aizatsky updated this revision to Diff 39413.Nov 5 2015, 2:01 PM
aizatsky retitled this revision from to Moving FileManager::removeDotPaths to llvm::sys::path::remove_dots.
aizatsky updated this object.Nov 5 2015, 2:41 PM
aizatsky updated this object.Nov 5 2015, 2:45 PM
aizatsky updated this revision to Diff 39428.Nov 5 2015, 3:34 PM
  • reformat
  • fixes
aizatsky added a reviewer: kcc.Nov 5 2015, 3:35 PM
aizatsky added a subscriber: llvm-commits.
aizatsky updated this revision to Diff 39432.Nov 5 2015, 3:46 PM
  • test fix
kcc edited edge metadata.Nov 5 2015, 6:12 PM

I would probably leave remove_leading_dotslash intact, ant that should eliminate the need to change the test.

test/Frontend/dependency-gen.c
19 ↗(On Diff #39432)

This is an intended change, right? Why?

I would probably leave remove_leading_dotslash intact, ant that should eliminate the need to change the test.

I disagree. The old function is much more limited - it stripped "./" only at the beginning. Plus it would result in two very similar functions. I think having only one is better.

test/Frontend/dependency-gen.c
19 ↗(On Diff #39432)

Because new function also removes /./ in the middle. It used to be a/b/./x.h and it is now a/b/x.h

silvas added a subscriber: silvas.Nov 5 2015, 7:46 PM
silvas added inline comments.
test/Frontend/dependency-gen.c
19 ↗(On Diff #39432)

To keep this change mechanical, let's just not touch remove_leading_dotslash in this patch.

aizatsky updated this revision to Diff 39560.Nov 6 2015, 10:54 AM
aizatsky marked an inline comment as done.
aizatsky edited edge metadata.

review

Please take another look.

kcc accepted this revision.Nov 6 2015, 11:21 AM
kcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Nov 6 2015, 11:21 AM
silvas accepted this revision.Nov 6 2015, 7:11 PM
silvas added a reviewer: silvas.

LGTM

This revision was automatically updated to reflect the committed changes.