This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] support --load in clang-tidy-diff.py/run-clang-tidy.py
ClosedPublic

Authored by bernhardmgruber on Apr 4 2022, 12:45 PM.

Details

Reviewers
aaron.ballman
Summary

Support for loading shared objects as plugins into clang-tidy was added in https://reviews.llvm.org/D111100. Unfortunately, the utility scripts clang-tidy-diff.py and run-clang-tidy.py did not receive corresponding arguments to forward such plugins to clang-tidy. This diff adds a -load=plugin option to both scripts.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2022, 12:45 PM
bernhardmgruber requested review of this revision.Apr 4 2022, 12:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2022, 12:45 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

I did not base this revision on my latest main (422d05e792dbd6a97f5afd4cdd5e8aa677e97444) since I could not run the python scripts with the changes introduced in 9e1f4f13984186984ba37513372c1b7e0c4ba4fd.

aaron.ballman accepted this revision.Apr 5 2022, 12:54 PM

I did not base this revision on my latest main (422d05e792dbd6a97f5afd4cdd5e8aa677e97444) since I could not run the python scripts with the changes introduced in 9e1f4f13984186984ba37513372c1b7e0c4ba4fd.

Can you try with https://reviews.llvm.org/D123074 applied, just to double-check my LG? :-)

The changes here LGTM otherwise (very minor nit with the help text wording, feel free to ignore if you disagree with the rewording), thank you for the fix!

clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py
165
clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
277
This revision is now accepted and ready to land.Apr 5 2022, 12:54 PM

Rebased on main and applied review comments.

Added missing '.' in helptext.

bernhardmgruber marked 2 inline comments as done.Apr 8 2022, 5:45 AM

Ping.

Can someone merge this please for me? Thank you!

Ping.

Can someone merge this please for me? Thank you!

Yes, sure, just please specify what user.name and user.email would you like to be associated with the commit's author?

Yes, sure, just please specify what user.name and user.email would you like to be associated with the commit's author?

user.name: Bernhard Manfred Gruber
user.email: bernhardmgruber@gmail.com

Thanks a lot!

D'oh! I made a mistake when copying the URL and accidentally associated the commit with D12306 instead of D123065... Anyhow, this was committed in rGb1f1688e90b22dedc829f5abc9a912f18c034fbc.

whisperity closed this revision.Apr 28 2022, 4:53 AM