-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[run-clang-tidy,clang-tidy-diff] Accept directory as value for -export-fixes #69453
[run-clang-tidy,clang-tidy-diff] Accept directory as value for -export-fixes #69453
Conversation
There is already --export_fixes that can be used in +- same way. |
fd908df
to
d63de8e
Compare
@PiotrZSL Thank you for your feedback. I implemented it the way you suggest. Feel free to leave comments. |
✅ With the latest revision this PR passed the Python code formatter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Release notes will be needed, in clang-tools-extra/docs/ReleaseNotes.rst.
Additionally probably similar change should be done to clang-tidy-diff.py
d63de8e
to
00b993e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Would be good to test if both scripts are working before merge.
00b993e
to
9544ce9
Compare
9544ce9
to
1001c25
Compare
I tested both scripts locally with both options (providing a yaml file and a directory) and both work on my machine. |
From my side it is ready to be merged. I don't have the access rights to do so. |
Hi @amgebauer, not sure if you got the notification, but your change seems to be causing a test failure on two build bots, any idea why? |
I have an idea about the reason. I will push a fix in a few moments. Thank you for the hint |
Adding an additional parameter to run_clang_tidy.py to accept a directory where the clang-tidy fixes are saved to. This directory can then be used to run
clang-apply-replacements
.Closes #69450