This is an archive of the discontinued LLVM Phabricator instance.

Added llvm-string-referencing check
Needs ReviewPublic

Authored by bogser01 on Sep 25 2020, 8:35 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Clang-tidy pass detecting the use of const std::string& references.

Use of llvm::StringRef is recommended in the LLVM Programmer's Manual instead:
https://llvm.org/docs/ProgrammersManual.html#the-stringref-class

Diff Detail

Event Timeline

bogser01 created this revision.Sep 25 2020, 8:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 25 2020, 8:35 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
bogser01 requested review of this revision.Sep 25 2020, 8:35 AM
bogser01 updated this revision to Diff 294331.Sep 25 2020, 8:46 AM

Changed upstream