summaryrefslogtreecommitdiff
path: root/unittests/StaticAnalyzer
diff options
context:
space:
mode:
authorKristof Umann <kristof.umann@ericsson.com>2019-09-12 19:09:24 +0000
committerKristof Umann <kristof.umann@ericsson.com>2019-09-12 19:09:24 +0000
commit692350b3324af16d1007a41089b9e5d684230ca3 (patch)
tree733a3089ae794fff900f1a6d01a1001c6e9a041d /unittests/StaticAnalyzer
parent2be1e8b8eeb9b906693e023618716e48d7ff30c0 (diff)
downloadclang-692350b3324af16d1007a41089b9e5d684230ca3.tar.gz
[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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/StaticAnalyzer')
-rw-r--r--unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp b/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
index 4773852866..4f504d2384 100644
--- a/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
+++ b/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
@@ -30,7 +30,7 @@ class TestAction : public ASTFrontendAction {
void FlushDiagnosticsImpl(std::vector<const PathDiagnostic *> &Diags,
FilesMade *filesMade) override {
for (const auto *PD : Diags)
- Output << PD->getCheckName() << ":" << PD->getShortDescription();
+ Output << PD->getCheckerName() << ":" << PD->getShortDescription();
}
StringRef getName() const override { return "Test"; }