#include "StrToNumCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/FormatString.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "llvm/ADT/StringSwitch.h"
#include <cassert>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::cert {
void StrToNumCheck::registerMatchers(MatchFinder *Finder) { … }
namespace {
enum class ConversionKind { … };
ConversionKind classifyConversionFunc(const FunctionDecl *FD) { … }
ConversionKind classifyFormatString(StringRef Fmt, const LangOptions &LO,
const TargetInfo &TI) { … }
StringRef classifyConversionType(ConversionKind K) { … }
StringRef classifyReplacement(ConversionKind K) { … }
}
void StrToNumCheck::check(const MatchFinder::MatchResult &Result) { … }
}