This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] `performance-faster-string-find` generates incorrect fixes for single quote character literals
ClosedPublic

Authored by fwolff on Aug 8 2023, 1:22 PM.

Details

Diff Detail

Event Timeline

fwolff created this revision.Aug 8 2023, 1:22 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: xazax.hun. · View Herald Transcript
fwolff requested review of this revision.Aug 8 2023, 1:22 PM
PiotrZSL added inline comments.Aug 8 2023, 1:31 PM
clang-tools-extra/clang-tidy/performance/FasterStringFindCheck.cpp
40
clang-tools-extra/docs/ReleaseNotes.rst
199–201

And put it before performanc-noexcept-swap, other alternative would be to call it "Improve XYZ check to properly escape single quote characters. or something like that

fwolff updated this revision to Diff 548347.Aug 8 2023, 1:58 PM
fwolff marked 2 inline comments as done.
PiotrZSL accepted this revision.Aug 8 2023, 2:07 PM

LGTM

This revision is now accepted and ready to land.Aug 8 2023, 2:07 PM
This revision was landed with ongoing or failed builds.Aug 8 2023, 4:00 PM
This revision was automatically updated to reflect the committed changes.