Lines Matching defs:InDiag
55 /// InDiag - The note to emit if there is a jump into this scope.
56 unsigned InDiag;
66 GotoScope(unsigned parentScope, unsigned InDiag, unsigned OutDiag,
68 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {}
145 unsigned InDiag = 0;
149 InDiag = diag::note_protected_by_vla;
199 InDiag = diag::note_protected_by_variable_init;
209 InDiag = diag::note_protected_by_variable_nontriv_destructor;
211 InDiag = diag::note_protected_by_variable_non_pod;
213 InDiag = 0;
218 return ScopePair(InDiag, OutDiag);
294 unsigned InDiag = diag::note_enters_compound_literal_scope;
296 Scopes.push_back(GotoScope(ParentScope, InDiag, OutDiag, CLE->getExprLoc()));
737 /// A path in is trivial if none of the entered scopes have an InDiag.
807 if (Scopes[Min].InDiag) break;
883 if (Scopes[ToScopes[I]].InDiag)
884 S.Diag(Scopes[ToScopes[I]].Loc, Scopes[ToScopes[I]].InDiag);
908 if (IsCXX98CompatWarning(S, Scopes[I].InDiag))
910 else if (Scopes[I].InDiag) {
912 S.Diag(Scopes[I].Loc, Scopes[I].InDiag);
948 if (Scopes[I].InDiag == diag::note_protected_by_seh_finally) {
951 } else if (Scopes[I].InDiag ==
956 } else if (Scopes[I].InDiag ==
976 IsMicrosoftJumpWarning(JumpDiagError, Scopes[I].InDiag))
978 else if (IsCXX98CompatWarning(S, Scopes[I].InDiag))
980 else if (Scopes[I].InDiag)