25class FixedAddressChecker
26 :
public Checker< check::PreStmt<BinaryOperator> > {
27 const BugType BT{
this,
"Use fixed address"};
53 constexpr llvm::StringLiteral Msg =
54 "Using a fixed address is not portable because that address will "
55 "probably not be valid in all environments or platforms.";
56 auto R = std::make_unique<PathSensitiveBugReport>(BT, Msg, N);
58 C.emitReport(std::move(R));
66bool 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
The JSON file list parser is used to communicate input to InstallAPI.
const FunctionProtoType * T