Lines Matching refs:CaseInfo
41 struct CaseInfo { struct
50 CaseInfo() : SC(nullptr), State(St_Unchecked) {} in CaseInfo() function
51 CaseInfo(SwitchCase *S, SourceRange Range) in CaseInfo() argument
57 SmallVectorImpl<CaseInfo> &Cases;
60 CaseCollector(ParentMap &PMap, SmallVectorImpl<CaseInfo> &Cases) in CaseCollector()
80 Cases.push_back(CaseInfo(Curr,SourceRange(Curr->getLocStart(), NextLoc))); in VisitSwitchStmt()
98 SmallVector<CaseInfo, 16> Cases;
150 CaseInfo &info = Cases[i]; in handleProtectedNote()
153 if (info.State == CaseInfo::St_Unchecked) in handleProtectedNote()
155 assert(info.State != CaseInfo::St_Unchecked); in handleProtectedNote()
157 if (info.State == CaseInfo::St_Fixed) { in handleProtectedNote()
168 void tryFixing(CaseInfo &info) { in tryFixing()
169 assert(info.State == CaseInfo::St_Unchecked); in tryFixing()
171 info.State = CaseInfo::St_CannotFix; in tryFixing()
177 info.State = CaseInfo::St_Fixed; in tryFixing()
180 bool hasVarReferencedOutside(CaseInfo &info) { in hasVarReferencedOutside()