#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
usingnamespaceclang;
usingnamespaceento;
namespace {
class StringChecker : public Checker<check::PreCall> { … };
bool StringChecker::isCharToStringCtor(const CallEvent &Call,
const ASTContext &ACtx) const { … }
void StringChecker::checkPreCall(const CallEvent &Call,
CheckerContext &C) const { … }
}
void ento::registerStringChecker(CheckerManager &Mgr) { … }
bool ento::shouldRegisterStringChecker(const CheckerManager &) { … }