[analyzer] Rename addTrackNullOrUndefValueVisitor to trackNullOrUndefValue.
This helper function (in the clang::ento::bugreporter namespace) may add more than one visitor, but conceptually it's tracking a single use of a null or undefined value and should do so as best it can. Also, the BugReport parameter has been made a reference to underscore that it is non-optional. llvm-svn: 162720
This commit is contained in:
@@ -42,7 +42,7 @@ UndefinedArraySubscriptChecker::checkPreStmt(const ArraySubscriptExpr *A,
|
||||
// Generate a report for this bug.
|
||||
BugReport *R = new BugReport(*BT, BT->getName(), N);
|
||||
R->addRange(A->getIdx()->getSourceRange());
|
||||
bugreporter::addTrackNullOrUndefValueVisitor(N, A->getIdx(), R);
|
||||
bugreporter::trackNullOrUndefValue(N, A->getIdx(), *R);
|
||||
C.EmitReport(R);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user