This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy][NFC] Tweak some generation of diag messages
ClosedPublic

Authored by njames93 on Feb 25 2021, 10:53 AM.

Details

Summary

Fix up cases where diag is called by piecing together a string in favour of placeholders.
Fix up cases where select could be used instead of duplicating the message for sake of 1 word difference.

Diff Detail

Event Timeline

njames93 created this revision.Feb 25 2021, 10:53 AM
njames93 requested review of this revision.Feb 25 2021, 10:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2021, 10:54 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
njames93 updated this revision to Diff 326540.Feb 25 2021, 3:51 PM

Fix up portability-simd-intrinsics diagnostic.

aaron.ballman accepted this revision.Feb 26 2021, 10:47 AM

LGTM! Thanks, these are really nice cleanups!

This revision is now accepted and ready to land.Feb 26 2021, 10:47 AM
This revision was automatically updated to reflect the committed changes.