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
Paths
| Differential D88311
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
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:
Diff Detail
Revision Contents
Diff 294327 .gitignore
clang-tools-extra/clang-tidy/llvm/StringReferencingCheck.h
clang-tools-extra/clang-tidy/llvm/StringReferencingCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/llvm-string-referencing.cpp
|