@@ -1403,6 +1403,16 @@ void NullabilityChecker::printState(raw_ostream &Out, ProgramStateRef State,
1403
1403
}
1404
1404
}
1405
1405
1406
+ // The checker group "nullability" consists of the checkers that are
1407
+ // implemented as the parts of the checker class `NullabilityChecker`. These
1408
+ // checkers share a checker option "nullability:NoDiagnoseCallsToSystemHeaders"
1409
+ // which semantically belongs to the whole group and not just one checker from
1410
+ // it. As this is a unique situation (I don't know about any other similar
1411
+ // group-level option) there is no mechanism to inject this group name from
1412
+ // e.g. Checkers.td, so I'm just hardcoding it here. (These are old stable
1413
+ // checkers, I don't think that their name will change.)
1414
+ #define CHECKER_GROUP_NAME " nullability"
1415
+
1406
1416
#define REGISTER_CHECKER (Part, TrackingRequired ) \
1407
1417
void ento::register ##Part##Checker(CheckerManager &Mgr) { \
1408
1418
auto *Checker = Mgr.registerChecker <NullabilityChecker, \
@@ -1411,8 +1421,7 @@ void NullabilityChecker::printState(raw_ostream &Out, ProgramStateRef State,
1411
1421
Checker->NoDiagnoseCallsToSystemHeaders = \
1412
1422
Checker->NoDiagnoseCallsToSystemHeaders || \
1413
1423
Mgr.getAnalyzerOptions ().getCheckerBooleanOption ( \
1414
- Mgr.getCurrentCheckerName (), " NoDiagnoseCallsToSystemHeaders" , \
1415
- true ); \
1424
+ CHECKER_GROUP_NAME, " NoDiagnoseCallsToSystemHeaders" , true ); \
1416
1425
} \
1417
1426
\
1418
1427
bool ento::shouldRegister##Part##Checker(const CheckerManager &) { \
0 commit comments