Lines Matching refs:CaseInfo
41 struct CaseInfo { struct
50 CaseInfo() : SC(nullptr), State(St_Unchecked) {} in CaseInfo() argument
51 CaseInfo(SwitchCase *S, SourceRange Range) in CaseInfo() function
57 SmallVectorImpl<CaseInfo> &Cases;
60 CaseCollector(ParentMap &PMap, SmallVectorImpl<CaseInfo> &Cases) in CaseCollector()
81 CaseInfo(Curr, SourceRange(Curr->getBeginLoc(), NextLoc))); in VisitSwitchStmt()
99 SmallVector<CaseInfo, 16> Cases;
151 CaseInfo &info = Cases[i]; in handleProtectedNote()
154 if (info.State == CaseInfo::St_Unchecked) in handleProtectedNote()
156 assert(info.State != CaseInfo::St_Unchecked); in handleProtectedNote()
158 if (info.State == CaseInfo::St_Fixed) { in handleProtectedNote()
169 void tryFixing(CaseInfo &info) { in tryFixing()
170 assert(info.State == CaseInfo::St_Unchecked); in tryFixing()
172 info.State = CaseInfo::St_CannotFix; in tryFixing()
178 info.State = CaseInfo::St_Fixed; in tryFixing()
181 bool hasVarReferencedOutside(CaseInfo &info) { in hasVarReferencedOutside()