#include "clang/Basic/Builtins.h"
#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "clang/StaticAnalyzer/Core/CheckerManager.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/DynamicExtent.h"
usingnamespaceclang;
usingnamespaceento;
namespace {
class BuiltinFunctionChecker : public Checker<eval::Call> { … };
}
bool BuiltinFunctionChecker::isBuiltinLikeFunction(
const CallEvent &Call) const { … }
bool BuiltinFunctionChecker::evalCall(const CallEvent &Call,
CheckerContext &C) const { … }
void ento::registerBuiltinFunctionChecker(CheckerManager &mgr) { … }
bool ento::shouldRegisterBuiltinFunctionChecker(const CheckerManager &mgr) { … }