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

Bogdan Serea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 25 09:09:04 PDT 2020


bogser01 created this revision.
Herald added subscribers: cfe-commits, mgorny.
Herald added a project: clang.
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/D88314

Files:
  clang-tools-extra/clang-tidy/llvm/CMakeLists.txt
  clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp
  clang-tools-extra/clang-tidy/llvm/StringReferencingCheck.cpp
  clang-tools-extra/clang-tidy/llvm/StringReferencingCheck.h
  clang-tools-extra/docs/clang-tidy/checks/list.rst
  clang-tools-extra/docs/clang-tidy/checks/llvm-string-referencing.rst
  clang-tools-extra/test/clang-tidy/checkers/llvm-string-referencing.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88314.294341.patch
Type: text/x-patch
Size: 10101 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200925/6503b65e/attachment-0001.bin>


More information about the cfe-commits mailing list