#include "RedundantStringInitCheck.h"
#include "../utils/Matchers.h"
#include "../utils/OptionsUtils.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include <optional>
usingnamespaceclang::ast_matchers;
usingnamespaceclang::tidy::matchers;
namespace clang::tidy::readability {
const char DefaultStringNames[] = …;
static std::vector<StringRef> removeNamespaces(ArrayRef<StringRef> Names) { … }
static const CXXConstructExpr *
getConstructExpr(const CXXCtorInitializer &CtorInit) { … }
static std::optional<SourceRange>
getConstructExprArgRange(const CXXConstructExpr &Construct) { … }
RedundantStringInitCheck::RedundantStringInitCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
void RedundantStringInitCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void RedundantStringInitCheck::registerMatchers(MatchFinder *Finder) { … }
void RedundantStringInitCheck::check(const MatchFinder::MatchResult &Result) { … }
}