Skip to content

Commit 8459b2f

Browse files
committed
Use class name as tag description of checker family
1 parent 23d128c commit 8459b2f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

clang/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ class DivZeroChecker : public CheckerFamily<check::PreStmt<BinaryOperator>> {
3939

4040
void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const;
4141

42-
/// Identifies this checker family for debugging purposes. For backwards
43-
/// compatibility, this is the name of the older sub-checker.
44-
StringRef getTagDescription() const override { return "core.DivideZero"; }
42+
/// Identifies this checker family for debugging purposes.
43+
StringRef getTagDescription() const override { return "DivZeroChecker"; }
4544
};
4645
} // end anonymous namespace
4746

clang/test/Analysis/ftime-trace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
// Finally, each checker call back is also present:
4141
//
42-
// CHECK: "name": "Total Stmt:core.DivideZero",
42+
// CHECK: "name": "Total Stmt:DivZeroChecker",
4343
// CHECK-NEXT: "args": {
4444
// CHECK-NEXT: "count": {{[0-9]+}},
4545
// CHECK-NEXT: "avg ms": {{[0-9]+}}

0 commit comments

Comments
 (0)