This is an archive of the discontinued LLVM Phabricator instance.

Allow manual specification of the binary directory in check_clang_tidy.py
Needs RevisionPublic

Authored by zturner on Aug 12 2016, 4:47 PM.

Details

Summary

When you run the script from lit it starts in the right directory so it can find FileCheck and clang-tidy, but when you manually run check-clang-tidy.py from a command line it doesn't work unless you put yourself in the bin directory beforehand. This isn't always convenient, so allow specifying the bin directory as an option to check_clang_tidy.py

Diff Detail

Event Timeline

zturner updated this revision to Diff 67939.Aug 12 2016, 4:47 PM
zturner retitled this revision from to Allow manual specification of the binary directory in check_clang_tidy.py.
zturner updated this object.
zturner added reviewers: alexfh, djasper.
zturner added a subscriber: cfe-commits.
alexfh edited edge metadata.Aug 13 2016, 10:27 AM

Why is this change needed? What exactly doesn't work without it? I think, lit should take care of setting paths or changing directories appropriately.

alexfh requested changes to this revision.Aug 16 2016, 7:25 AM
alexfh edited edge metadata.
This revision now requires changes to proceed.Aug 16 2016, 7:25 AM
MyDeveloperDay added a project: Restricted Project.Feb 17 2019, 1:56 AM