void NullabilityChecker::printState(raw_ostream &Out, ProgramStateRef State, const char *NL, const char *Sep) const { NullabilityMapTy B = State->get<NullabilityMap>(); if (B.isEmpty()) return; Out << Sep << NL; for (NullabilityMapTy::iterator I = B.begin(), E = B.end(); I != E; ++I) { Out << I->first << " : "; I->second.print(Out); Out << NL; } }
void NullabilityChecker::printState(raw_ostream &Out, ProgramStateRef State, const char *NL, const char *Sep) const { NullabilityMapTy B = State->get<NullabilityMap>(); if (State->get<InvariantViolated>()) Out << Sep << NL << "Nullability invariant was violated, warnings suppressed." << NL; if (B.isEmpty()) return; if (!State->get<InvariantViolated>()) Out << Sep << NL; for (NullabilityMapTy::iterator I = B.begin(), E = B.end(); I != E; ++I) { Out << I->first << " : "; I->second.print(Out); Out << NL; } }