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
Unit TestsFailed
Revision Contents
Diff 294331 clang-tools-extra/clang-tidy/llvm/CMakeLists.txt
clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp
clang-tools-extra/clang-tidy/llvm/StringReferencingCheck.h
clang-tools-extra/clang-tidy/llvm/StringReferencingCheck.cpp
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
|
clang-tidy: warning: header guard does not follow preferred style [llvm-header-guard]
not useful