SourceRange R = E->getArgumentExpr()->getSourceRange();
BR.EmitBasicReport("Potential unintended use of sizeof() on pointer type",
"Logic",
- "The code calls sizeof() on a pointer type. This can produce an unexpected result.",
+ "The code calls sizeof() on a pointer type. "
+ "This can produce an unexpected result.",
E->getLocStart(), &R, 1);
}
}
if (ExplodedNode *N = C.GenerateNode(B)) {
if (!BT)
BT = new BuiltinBug("Use fixed address",
- "Using a fixed address is not portable because that address will probably not be valid in all environments or platforms.");
+ "Using a fixed address is not portable because that "
+ "address will probably not be valid in all "
+ "environments or platforms.");
RangedBugReport *R = new RangedBugReport(*BT, BT->getDescription().c_str(),
N);
R->addRange(B->getRHS()->getSourceRange());
if (ExplodedNode *N = C.GenerateNode(B)) {
if (!BT)
BT = new BuiltinBug("Pointer subtraction",
- "Subtraction of two pointers that do not point to the same memory chunk may cause incorrect result.");
+ "Subtraction of two pointers that do not point to "
+ "the same memory chunk may cause incorrect result.");
RangedBugReport *R = new RangedBugReport(*BT, BT->getDescription().c_str(),
N);
R->addRange(B->getSourceRange());