Lines Matching refs:SourceMgr
28 #include "llvm/Support/SourceMgr.h"
122 /// which prefix is being matched, SM provides the SourceMgr used for error
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,
187 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error,
214 SourceMgr::DK_Error,
246 SourceMgr::DK_Error,
259 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error,
272 SourceMgr::DK_Error,
282 SourceMgr::DK_Error, "invalid name in named regex");
289 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error,
302 SourceMgr::DK_Error,
336 SourceMgr &SM) {
340 SM.PrintMessage(SMLoc::getFromPointer(RS.data()), SourceMgr::DK_Error,
466 void Pattern::PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
499 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
538 SourceMgr::DK_Note, "possible intended match here");
545 size_t Pattern::FindRegexVarEnd(StringRef Str, SourceMgr &SM) {
568 SourceMgr::DK_Error,
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,
919 SourceMgr::DK_Error,
932 SourceMgr::DK_Error,
978 static void PrintCheckFailed(const SourceMgr &SM, SMLoc Loc,
982 SM.PrintMessage(Loc, SourceMgr::DK_Error,
989 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
996 static void PrintCheckFailed(const SourceMgr &SM, const CheckString &CheckStr,
1026 size_t CheckString::Check(const SourceMgr &SM, StringRef Buffer,
1075 bool CheckString::CheckNext(const SourceMgr &SM, StringRef Buffer) const {
1090 SM.PrintMessage(Loc, SourceMgr::DK_Error, Prefix +
1093 SourceMgr::DK_Note, "'next' match was here");
1094 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
1100 SM.PrintMessage(Loc, SourceMgr::DK_Error, Prefix +
1103 SourceMgr::DK_Note, "'next' match was here");
1104 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
1106 SM.PrintMessage(SMLoc::getFromPointer(FirstNewLine), SourceMgr::DK_Note,
1114 bool CheckString::CheckSame(const SourceMgr &SM, StringRef Buffer) const {
1129 SM.PrintMessage(Loc, SourceMgr::DK_Error,
1132 SM.PrintMessage(SMLoc::getFromPointer(Buffer.end()), SourceMgr::DK_Note,
1134 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
1142 bool CheckString::CheckNot(const SourceMgr &SM, StringRef Buffer,
1154 SourceMgr::DK_Error,
1156 SM.PrintMessage(Pat->getLoc(), SourceMgr::DK_Note,
1164 size_t CheckString::CheckDag(const SourceMgr &SM, StringRef Buffer,
1203 SourceMgr::DK_Error,
1207 SourceMgr::DK_Note,
1210 SM.PrintMessage(NotStrings[0]->getLoc(), SourceMgr::DK_Note,
1213 SM.PrintMessage(Pat.getLoc(), SourceMgr::DK_Note,
1283 SourceMgr SM;
1290 // Open the file to check and add it to SourceMgr.