#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
#include "Iterator.h"
usingnamespaceclang;
usingnamespaceento;
usingnamespaceiterator;
namespace {
class DebugContainerModeling
: public Checker<eval::Call> { … };
}
bool DebugContainerModeling::evalCall(const CallEvent &Call,
CheckerContext &C) const { … }
template <typename Getter>
void DebugContainerModeling::analyzerContainerDataField(const CallExpr *CE,
CheckerContext &C,
Getter get) const { … }
void DebugContainerModeling::analyzerContainerBegin(const CallExpr *CE,
CheckerContext &C) const { … }
void DebugContainerModeling::analyzerContainerEnd(const CallExpr *CE,
CheckerContext &C) const { … }
ExplodedNode *DebugContainerModeling::reportDebugMsg(llvm::StringRef Msg,
CheckerContext &C) const { … }
void ento::registerDebugContainerModeling(CheckerManager &mgr) { … }
bool ento::shouldRegisterDebugContainerModeling(const CheckerManager &mgr) { … }