clang-tools 22.0.0git
|
Finds unnecessary string initializations. More...
#include <RedundantStringInitCheck.h>
Public Member Functions | |
RedundantStringInitCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds unnecessary string initializations.
Definition at line 19 of file RedundantStringInitCheck.h.
clang::tidy::readability::RedundantStringInitCheck::RedundantStringInitCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 56 of file RedundantStringInitCheck.cpp.
References clang::tidy::readability::DefaultStringNames.
|
override |
Definition at line 124 of file RedundantStringInitCheck.cpp.
References clang::tidy::readability::getConstructExpr(), and clang::tidy::readability::getConstructExprArgRange().
|
inlineoverride |
Definition at line 22 of file RedundantStringInitCheck.h.
|
override |
Definition at line 66 of file RedundantStringInitCheck.cpp.
References clang::tidy::readability::removeNamespaces().
|
override |
Definition at line 62 of file RedundantStringInitCheck.cpp.
References clang::tidy::readability::DefaultStringNames.