[PATCH] D88311: Added llvm-string-referencing check

Bogdan Serea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 25 08:35:34 PDT 2020


bogser01 created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
bogser01 requested review of this revision.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88311

Files:
  .gitignore
  clang-tools-extra/clang-tidy/llvm/StringReferencingCheck.cpp
  clang-tools-extra/clang-tidy/llvm/StringReferencingCheck.h
  clang-tools-extra/test/clang-tidy/checkers/llvm-string-referencing.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88311.294327.patch
Type: text/x-patch
Size: 8424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200925/d8608f87/attachment.bin>


More information about the cfe-commits mailing list