@@ -277,7 +277,8 @@ void verilog_indexer_parsert::rDescription()
277
277
}
278
278
279
279
// / Covers the various 'definition-like' constructs in SystemVerilog, i.e.,
280
- // / modules, interfaces, classes, primitives, packages, configurations
280
+ // / modules, interfaces, classes, primitives, packages, configurations,
281
+ // / checkers
281
282
void verilog_indexer_parsert::rModule (
282
283
verilog_indexert::idt::kindt kind,
283
284
int end_token)
@@ -342,6 +343,8 @@ void verilog_indexer_parsert::rItem()
342
343
rModule (verilog_indexert::idt::INTERFACE, TOK_ENDINTERFACE);
343
344
else if (token == TOK_PACKAGE)
344
345
rModule (verilog_indexert::idt::PACKAGE, TOK_ENDPACKAGE);
346
+ else if (token == TOK_CHECKER)
347
+ rModule (verilog_indexert::idt::CHECKER, TOK_ENDCHECKER);
345
348
else if (token == TOK_CONFIG)
346
349
rModule (verilog_indexert::idt::CONFIG, TOK_CONFIG);
347
350
else if (token == TOK_PROPERTY)
@@ -1469,6 +1472,11 @@ int verilog_index(const cmdlinet &cmdline)
1469
1472
// Show the interfaces.
1470
1473
show_kind (verilog_indexert::idt::kindt::INTERFACE, indexer);
1471
1474
}
1475
+ else if (cmdline.isset (" checkers" ))
1476
+ {
1477
+ // Show the checker.
1478
+ show_kind (verilog_indexert::idt::kindt::CHECKER, indexer);
1479
+ }
1472
1480
else if (cmdline.isset (" classes" ))
1473
1481
{
1474
1482
// Show the interfaces.
@@ -1518,6 +1526,8 @@ int verilog_index(const cmdlinet &cmdline)
1518
1526
<< ' \n ' ;
1519
1527
std::cout << " Number of UDPs............: " << total_number_of[idt::UDP]
1520
1528
<< ' \n ' ;
1529
+ std::cout << " Number of checkers........: " << total_number_of[idt::CHECKER]
1530
+ << ' \n ' ;
1521
1531
std::cout << " Number of classes.........: " << total_number_of[idt::CLASS]
1522
1532
<< ' \n ' ;
1523
1533
std::cout << " Number of packages........: " << total_number_of[idt::PACKAGE]
0 commit comments