#include "SuspiciousStringviewDataUsageCheck.h"
#include "../utils/Matchers.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::bugprone {
SuspiciousStringviewDataUsageCheck::SuspiciousStringviewDataUsageCheck(
StringRef Name, ClangTidyContext *Context)
: … { … }
void SuspiciousStringviewDataUsageCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
bool SuspiciousStringviewDataUsageCheck::isLanguageVersionSupported(
const LangOptions &LangOpts) const { … }
std::optional<TraversalKind>
SuspiciousStringviewDataUsageCheck::getCheckTraversalKind() const { … }
void SuspiciousStringviewDataUsageCheck::registerMatchers(MatchFinder *Finder) { … }
void SuspiciousStringviewDataUsageCheck::check(
const MatchFinder::MatchResult &Result) { … }
}