#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "clang/StaticAnalyzer/Core/CheckerManager.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
usingnamespaceclang;
usingnamespaceento;
namespace {
class CastToStructVisitor : public RecursiveASTVisitor<CastToStructVisitor> { … };
}
bool CastToStructVisitor::VisitCastExpr(const CastExpr *CE) { … }
namespace {
class CastToStructChecker : public Checker<check::ASTCodeBody> { … };
}
void ento::registerCastToStructChecker(CheckerManager &mgr) { … }
bool ento::shouldRegisterCastToStructChecker(const CheckerManager &mgr) { … }