25class FixedAddressChecker
26 :
public Checker< check::PreStmt<BinaryOperator> > {
27 mutable std::unique_ptr<BugType> BT;
54 BT.reset(
new BugType(
this,
"Use fixed address"));
55 constexpr llvm::StringLiteral Msg =
56 "Using a fixed address is not portable because that address will "
57 "probably not be valid in all environments or platforms.";
58 auto R = std::make_unique<PathSensitiveBugReport>(*BT, Msg, N);
60 C.emitReport(std::move(R));
68bool ento::shouldRegisterFixedAddressChecker(
const CheckerManager &mgr) {
A builtin binary operation expression such as "x + y" or "x <= y".
A (possibly-)qualified type.
SourceRange getSourceRange() const LLVM_READONLY
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpre...
bool isPointerType() const
CHECKER * registerChecker(AT &&... Args)
Used to register checkers.
SVal - This represents a symbolic expression, which can be either an L-value or an R-value.
bool isZeroConstant() const