This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Simplify diagnostics for UniqueptrResetRelease check
ClosedPublic

Authored by njames93 on Feb 28 2021, 9:27 AM.

Details

Summary

Tweak the diagnostics to create small replacements rather than grabbing source text from the lexer.
Also simplified the diagnostic message.

Diff Detail

Event Timeline

njames93 created this revision.Feb 28 2021, 9:27 AM
njames93 requested review of this revision.Feb 28 2021, 9:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2021, 9:27 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Mar 1 2021, 10:19 AM

LGTM aside from a nit with the diagnostic wording.

clang-tools-extra/clang-tidy/misc/UniqueptrResetReleaseCheck.cpp
115
This revision is now accepted and ready to land.Mar 1 2021, 10:19 AM