|
clang-tools 23.0.0git
|
Finds and removes redundant conversions from std::string_view to std::string in call expressions expecting std::string_view. More...
#include <StringViewConversionsCheck.h>
Public Member Functions | |
| StringViewConversionsCheck (StringRef Name, ClangTidyContext *Context) | |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Finds and removes redundant conversions from std::string_view to std::string in call expressions expecting std::string_view.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/performance/string-view-conversions.html
Definition at line 21 of file StringViewConversionsCheck.h.
|
inline |
Definition at line 23 of file StringViewConversionsCheck.h.
|
override |
Definition at line 86 of file StringViewConversionsCheck.cpp.
|
inlineoverride |
Definition at line 27 of file StringViewConversionsCheck.h.
|
override |
Definition at line 22 of file StringViewConversionsCheck.cpp.
References clang::tidy::performance::getStringTypeMatcher().