#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/Analysis/AnalysisDeclContext.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/raw_ostream.h"
usingnamespaceclang;
usingnamespaceento;
namespace {
class WalkAST : public StmtVisitor<WalkAST> { … };
}
static StringRef getCalleeName(CallExpr *CE) { … }
void WalkAST::VisitCallExpr(CallExpr *CE) { … }
void WalkAST::VisitChildren(Stmt *S) { … }
namespace {
class ObjCContainersASTChecker : public Checker<check::ASTCodeBody> { … };
}
void ento::registerObjCContainersASTChecker(CheckerManager &mgr) { … }
bool ento::shouldRegisterObjCContainersASTChecker(const CheckerManager &mgr) { … }