This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Support relative paths in run-clang-tidy.py
ClosedPublic

Authored by xazax.hun on Nov 3 2017, 10:05 AM.

Details

Summary

Currently, relative paths aren't supported by run-clang-tidy.py

I added the support, however, I did not find any existing tests. Is it ok for this to land without a test or should I introduce one?

Diff Detail

Repository
rL LLVM

Event Timeline

xazax.hun created this revision.Nov 3 2017, 10:05 AM
xazax.hun edited the summary of this revision. (Show Details)Nov 3 2017, 10:05 AM
hokein accepted this revision.Nov 6 2017, 12:59 AM

The code looks good to me.

I did not find any existing tests.

Yeah, we don't have good test strategy for these py files. We normally verify them by running them locally. I think we can land it as long as you test it locally (would be better to describe how you test it in the commit message).

clang-tidy/tool/run-clang-tidy.py
232 ↗(On Diff #121498)

nit: the code indention seems wrong here.

This revision is now accepted and ready to land.Nov 6 2017, 12:59 AM
This revision was automatically updated to reflect the committed changes.