This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix readability-identifer-naming duplicating prefix or suffix for replacements.
ClosedPublic

Authored by njames93 on Mar 12 2021, 9:30 AM.

Details

Summary

If a identifier has a correct prefix/suffix but a bad case, the fix won't strip them when computing the correct case, leading to duplication when the are added back.

Diff Detail

Event Timeline

njames93 created this revision.Mar 12 2021, 9:30 AM
njames93 requested review of this revision.Mar 12 2021, 9:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2021, 9:30 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
njames93 added a project: Restricted Project.Mar 12 2021, 9:35 AM
aaron.ballman accepted this revision.Mar 15 2021, 5:40 AM

Good catch, LGTM!

This revision is now accepted and ready to land.Mar 15 2021, 5:40 AM