#include "StringviewNullptrCheck.h"
#include "../utils/TransformerClangTidyCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/OperationKinds.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Tooling/Transformer/RangeSelector.h"
#include "clang/Tooling/Transformer/RewriteRule.h"
#include "clang/Tooling/Transformer/Stencil.h"
#include "llvm/ADT/StringRef.h"
namespace clang::tidy::bugprone {
usingnamespace::clang::ast_matchers;
usingnamespace::clang::transformer;
namespace {
AST_MATCHER_P(InitListExpr, initCountIs, unsigned, N) { … }
AST_MATCHER(clang::VarDecl, isDirectInitialization) { … }
}
RewriteRuleWith<std::string> StringviewNullptrCheckImpl() { … }
StringviewNullptrCheck::StringviewNullptrCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
}