Lines Matching defs:SM
36 YAMLParseError::YAMLParseError(StringRef Msg, SourceMgr &SM,
45 auto OldDiagHandler = SM.getDiagHandler();
46 auto OldDiagCtx = SM.getDiagContext();
47 SM.setDiagHandler(handleDiagnostic, &Message);
50 SM.setDiagHandler(OldDiagHandler, OldDiagCtx);
54 SourceMgr SM;
55 SM.setDiagHandler(handleDiagnostic, &LastErrorMessage);
56 return SM;
176 SM(setupSM(LastErrorMessage)), Stream(Buf, SM), YAMLIt(Stream.begin()) {}
179 return make_error<YAMLParseError>(Message, SM, Stream, Node);