This is an archive of the discontinued LLVM Phabricator instance.

Use in-tree clang-format-diff.py as Arcanist linter
ClosedPublic

Authored by scott.linder on Apr 3 2020, 12:52 PM.

Details

Summary

The only guarantee there seems to be in the clang-format packaging is
that an executable called clang-format is in the PATH. Use the
in-tree clang-format-diff.py to avoid assuming anything else.

Also remove dead code for SVN repo.

Diff Detail

Event Timeline

scott.linder created this revision.Apr 3 2020, 12:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2020, 12:52 PM

Switch to git diff-index plumbing command

mehdi_amini accepted this revision.Apr 3 2020, 5:50 PM

Thanks, it seems to work for me

This revision is now accepted and ready to land.Apr 3 2020, 5:50 PM
vitalybuka accepted this revision.Apr 4 2020, 2:12 AM

I'm going to commit this, as I think it is not a regression from what we already have, but I think the suggestion in another review that Python would be the more portable approach is a reasonable one. If I have some time I may attempt it myself.

This revision was automatically updated to reflect the committed changes.