This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy][run-clang-tidy.py] Fix typo in new -config-file option
ClosedPublic

Authored by AaronSiddharthaMondal on Apr 4 2022, 1:36 PM.

Details

Summary

The new -config-file option introduced by 9e1f4f1 was accidentally referenced
as args.config_path on the python side. This patch renames args.config_path
to args.config_file.

To avoid confusion with python file objects, the input argument for
get_tidy_invocation has been renamed from config_path to config_file_path.

See GitHub issue #54728 for a discussion.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2022, 1:36 PM
AaronSiddharthaMondal requested review of this revision.Apr 4 2022, 1:36 PM
aaron.ballman accepted this revision.Apr 5 2022, 11:54 AM

LGTM, thank you for the fix!

This revision is now accepted and ready to land.Apr 5 2022, 11:54 AM

LGTM, thank you for the fix!

If you need me to commit on your behalf, what name and email address would you like me to use for patch attribution?

AaronSiddharthaMondal added a comment.EditedApr 5 2022, 1:13 PM

LGTM, thank you for the fix!

If you need me to commit on your behalf, what name and email address would you like me to use for patch attribution?

Thanks, yes that would be nice :)

Name is Aaron Siddhartha Mondal. Email <aaron@eomii.org>.
On GitHub its aaronmondal. I created the issue with another account.

keith accepted this revision.Apr 5 2022, 1:26 PM
aaron.ballman closed this revision.Apr 5 2022, 1:29 PM

LGTM, thank you for the fix!

If you need me to commit on your behalf, what name and email address would you like me to use for patch attribution?

Thanks, yes that would be nice :)

Name is Aaron Siddhartha Mondal. Email <aaron@eomii.org>.
On GitHub its aaronmondal. I created the issue with another account.

Thank you for the fix! I've commit on your behalf in 04b42c99f62216263662d1033fa9b3e12c65563e.

@aaron.ballman There may have been something wrong with the commit. On GitHub it does not link to my user account. Would it be possible to change that?
The github name is aaronmondal.

@aaron.ballman There may have been something wrong with the commit. On GitHub it does not link to my user account. Would it be possible to change that?
The github name is aaronmondal.

Sorry for the trouble -- the option to land with attribution takes name <email@address> form, not a GitHub username.

I can reland with different attribution, but that churns the git history and makes git blame harder for code archeology, so it's nice to avoid if possible. I think adding your secondary email address to your GitHub account should also address the issue (https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/adding-an-email-address-to-your-github-account). But if it doesn't and you'd still like the attribution changed, I can revert and recommit (probably tomorrow at this point, I'm just about done for the day today).

Ahh I didn't know that. After fixing my settings it is now linked correctly. No need to revert.

Thanks a lot for the help!

Ahh I didn't know that. After fixing my settings it is now linked correctly. No need to revert.

I'm glad that worked for you!

Thanks a lot for the help!

Any time, thank you so much for the fix!