#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.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 STLAlgorithmModeling : public Checker<eval::Call> { … };
bool STLAlgorithmModeling::evalCall(const CallEvent &Call,
CheckerContext &C) const { … }
bool STLAlgorithmModeling::evalFind(CheckerContext &C,
const CallExpr *CE) const { … }
void STLAlgorithmModeling::Find(CheckerContext &C, const CallExpr *CE,
unsigned paramNum) const { … }
}
void ento::registerSTLAlgorithmModeling(CheckerManager &Mgr) { … }
bool ento::shouldRegisterSTLAlgorithmModeling(const CheckerManager &mgr) { … }