Lines Matching refs:SourceMgr
128 SourceMgr &SM,
142 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
151 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM);
169 size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM);
175 SourceMgr &SM, in ParsePattern()
187 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error, in ParsePattern()
214 SourceMgr::DK_Error, in ParsePattern()
246 SourceMgr::DK_Error, in ParsePattern()
259 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error, in ParsePattern()
272 SourceMgr::DK_Error, in ParsePattern()
282 SourceMgr::DK_Error, "invalid name in named regex"); in ParsePattern()
289 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error, in ParsePattern()
302 SourceMgr::DK_Error, in ParsePattern()
336 SourceMgr &SM) { in AddRegExToRegEx()
340 SM.PrintMessage(SMLoc::getFromPointer(RS.data()), SourceMgr::DK_Error, in AddRegExToRegEx()
466 void Pattern::PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, in PrintFailureInfo()
499 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note, in PrintFailureInfo()
538 SourceMgr::DK_Note, "possible intended match here"); in PrintFailureInfo()
545 size_t Pattern::FindRegexVarEnd(StringRef Str, SourceMgr &SM) { in FindRegexVarEnd()
568 SourceMgr::DK_Error, in FindRegexVarEnd()
616 size_t Check(const SourceMgr &SM, StringRef Buffer, bool IsLabelScanMode,
620 bool CheckNext(const SourceMgr &SM, StringRef Buffer) const;
623 bool CheckSame(const SourceMgr &SM, StringRef Buffer) const;
626 bool CheckNot(const SourceMgr &SM, StringRef Buffer,
631 size_t CheckDag(const SourceMgr &SM, StringRef Buffer,
836 static bool ReadCheckFile(SourceMgr &SM, in ReadCheckFile()
919 SourceMgr::DK_Error, in ReadCheckFile()
932 SourceMgr::DK_Error, in ReadCheckFile()
978 static void PrintCheckFailed(const SourceMgr &SM, SMLoc Loc, in PrintCheckFailed()
982 SM.PrintMessage(Loc, SourceMgr::DK_Error, in PrintCheckFailed()
989 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note, in PrintCheckFailed()
996 static void PrintCheckFailed(const SourceMgr &SM, const CheckString &CheckStr, in PrintCheckFailed()
1026 size_t CheckString::Check(const SourceMgr &SM, StringRef Buffer, in Check()
1075 bool CheckString::CheckNext(const SourceMgr &SM, StringRef Buffer) const { in CheckNext()
1090 SM.PrintMessage(Loc, SourceMgr::DK_Error, Prefix + in CheckNext()
1093 SourceMgr::DK_Note, "'next' match was here"); in CheckNext()
1094 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note, in CheckNext()
1100 SM.PrintMessage(Loc, SourceMgr::DK_Error, Prefix + in CheckNext()
1103 SourceMgr::DK_Note, "'next' match was here"); in CheckNext()
1104 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note, in CheckNext()
1106 SM.PrintMessage(SMLoc::getFromPointer(FirstNewLine), SourceMgr::DK_Note, in CheckNext()
1114 bool CheckString::CheckSame(const SourceMgr &SM, StringRef Buffer) const { in CheckSame()
1129 SM.PrintMessage(Loc, SourceMgr::DK_Error, in CheckSame()
1132 SM.PrintMessage(SMLoc::getFromPointer(Buffer.end()), SourceMgr::DK_Note, in CheckSame()
1134 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note, in CheckSame()
1142 bool CheckString::CheckNot(const SourceMgr &SM, StringRef Buffer, in CheckNot()
1154 SourceMgr::DK_Error, in CheckNot()
1156 SM.PrintMessage(Pat->getLoc(), SourceMgr::DK_Note, in CheckNot()
1164 size_t CheckString::CheckDag(const SourceMgr &SM, StringRef Buffer, in CheckDag()
1203 SourceMgr::DK_Error, in CheckDag()
1207 SourceMgr::DK_Note, in CheckDag()
1210 SM.PrintMessage(NotStrings[0]->getLoc(), SourceMgr::DK_Note, in CheckDag()
1213 SM.PrintMessage(Pat.getLoc(), SourceMgr::DK_Note, in CheckDag()
1283 SourceMgr SM; in main()