diff options
author | Kristof Umann <kristof.umann@ericsson.com> | 2019-09-12 19:09:24 +0000 |
---|---|---|
committer | Kristof Umann <kristof.umann@ericsson.com> | 2019-09-12 19:09:24 +0000 |
commit | 72649423c043341c770516cd73aecde281730260 (patch) | |
tree | 9dc15e1f887b38ebfb964737cba930ec5e80c141 /clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp | |
parent | 456bfdf5154b05b3b7aefbe8bd360d673feb6a82 (diff) | |
download | bcm5719-llvm-72649423c043341c770516cd73aecde281730260.tar.gz bcm5719-llvm-72649423c043341c770516cd73aecde281730260.zip |
[analyzer][NFC] Fix inconsistent references to checkers as "checks"
Traditionally, clang-tidy uses the term check, and the analyzer uses checker,
but in the very early years, this wasn't the case, and code originating from the
early 2010's still incorrectly refer to checkers as checks.
This patch attempts to hunt down most of these, aiming to refer to checkers as
checkers, but preserve references to callback functions (like checkPreCall) as
checks.
Differential Revision: https://reviews.llvm.org/D67140
llvm-svn: 371760
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp index 0cd1c3f16fd..2f075eaeb03 100644 --- a/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp @@ -52,7 +52,7 @@ UndefinedArraySubscriptChecker::checkPreStmt(const ArraySubscriptExpr *A, BT.reset(new BuiltinBug(this, "Array subscript is undefined")); // Generate a report for this bug. - auto R = std::make_unique<PathSensitiveBugReport>(*BT, BT->getName(), N); + auto R = std::make_unique<PathSensitiveBugReport>(*BT, BT->getDescription(), N); R->addRange(A->getIdx()->getSourceRange()); bugreporter::trackExpressionValue(N, A->getIdx(), *R); C.emitReport(std::move(R)); |