#include "StringFindStrContainsCheck.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Tooling/Transformer/RewriteRule.h"
#include "clang/Tooling/Transformer/Stencil.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::abseil {
addInclude;
applyFirst;
cat;
changeTo;
makeRule;
node;
RewriteRuleWith;
AST_MATCHER(Type, isCharType) { … }
static const char DefaultStringLikeClasses[] = …;
static const char DefaultAbseilStringsMatchHeader[] = …;
static transformer::RewriteRuleWith<std::string>
makeRewriteRule(ArrayRef<StringRef> StringLikeClassNames,
StringRef AbseilStringsMatchHeader) { … }
StringFindStrContainsCheck::StringFindStrContainsCheck(
StringRef Name, ClangTidyContext *Context)
: … { … }
bool StringFindStrContainsCheck::isLanguageVersionSupported(
const LangOptions &LangOpts) const { … }
void StringFindStrContainsCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
}