clang-tools 22.0.0git
|
Finds unnecessary calls to std::string::c_str(). More...
#include <RedundantStringCStrCheck.h>
Public Member Functions | |
RedundantStringCStrCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds unnecessary calls to std::string::c_str().
Definition at line 17 of file RedundantStringCStrCheck.h.
clang::tidy::readability::RedundantStringCStrCheck::RedundantStringCStrCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 32 of file RedundantStringCStrCheck.cpp.
|
override |
Definition at line 170 of file RedundantStringCStrCheck.cpp.
References clang::tidy::utils::fixit::formatDereference().
|
inlineoverride |
Definition at line 20 of file RedundantStringCStrCheck.h.
|
override |
Definition at line 43 of file RedundantStringCStrCheck.cpp.
References clang::tidy::matchers::matchesAnyListedName().