forked from OSchip/llvm-project
parent
f4b34ba326
commit
3aff920676
|
@ -51,7 +51,7 @@ public:
|
|||
NSErrorCheck(const Decl &D, bool isNSError, GRExprEngine& eng)
|
||||
: BugType(isNSError ? "NSError** null dereference"
|
||||
: "CFErrorRef* null dereference",
|
||||
"Coding Conventions (Apple)"),
|
||||
"Coding conventions (Apple)"),
|
||||
CodeDecl(D),
|
||||
isNSErrorWarning(isNSError),
|
||||
II(&eng.getContext().Idents.get(isNSErrorWarning ? "NSError":"CFErrorRef")),
|
||||
|
|
|
@ -659,7 +659,7 @@ void CheckUndefinedArg::PreVisitCallExpr(CheckerContext &C, const CallExpr *CE){
|
|||
if (C.getState()->getSVal(*I).isUndef()) {
|
||||
if (ExplodedNode *ErrorNode = C.generateNode(CE, C.getState(), true)) {
|
||||
if (!BT)
|
||||
BT = new BugType("Uninitialized argument.", "Logic Errors.");
|
||||
BT = new BugType("Uninitialized argument.", "Logic errors");
|
||||
// Generate a report for this bug.
|
||||
ArgReport *Report = new ArgReport(*BT,
|
||||
"Pass-by-value argument in function call is undefined.",
|
||||
|
|
Loading…
Reference in New Issue