#include "UseStartsEndsWithCheck.h"
#include "../utils/ASTUtils.h"
#include "../utils/OptionsUtils.h"
#include "clang/Lex/Lexer.h"
#include <string>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::modernize {
struct NotLengthExprForStringNode { … };
AST_MATCHER_P(Expr, lengthExprForStringNode, std::string, ID) { … }
UseStartsEndsWithCheck::UseStartsEndsWithCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
void UseStartsEndsWithCheck::registerMatchers(MatchFinder *Finder) { … }
void UseStartsEndsWithCheck::check(const MatchFinder::MatchResult &Result) { … }
}