• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/llvmCore-3425.0.33/utils/FileCheck/

Lines Matching defs:SM

82   bool ParsePattern(StringRef PatternStr, SourceMgr &SM);
95 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
100 bool AddRegExToRegEx(StringRef RegExStr, unsigned &CurParen, SourceMgr &SM);
110 bool Pattern::ParsePattern(StringRef PatternStr, SourceMgr &SM) {
120 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error,
147 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()),
160 if (AddRegExToRegEx(PatternStr.substr(2, End-2), CurParen, SM))
177 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()),
191 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error,
199 SM.PrintMessage(SMLoc::getFromPointer(Name.data()+i),
206 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error,
222 if (AddRegExToRegEx(MatchStr.substr(NameEnd+1), CurParen, SM))
268 SourceMgr &SM) {
272 SM.PrintMessage(SMLoc::getFromPointer(RegexStr.data()), SourceMgr::DK_Error,
368 void Pattern::PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
389 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
427 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + Best),
497 static bool ReadCheckFile(SourceMgr &SM,
514 SM.AddNewSourceBuffer(F, SMLoc());
563 if (P.ParsePattern(Buffer.substr(0, EOL), SM))
571 SM.PrintMessage(SMLoc::getFromPointer(CheckPrefixStart),
610 static void PrintCheckFailed(const SourceMgr &SM, const CheckString &CheckStr,
614 SM.PrintMessage(CheckStr.Loc, SourceMgr::DK_Error,
621 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
625 CheckStr.Pat.PrintFailureInfo(SM, Buffer, VariableTable);
653 SourceMgr SM;
657 if (ReadCheckFile(SM, CheckStrings))
679 SM.AddNewSourceBuffer(F, SMLoc());
702 PrintCheckFailed(SM, CheckStr, SearchFrom, VariableTable);
717 SM.PrintMessage(CheckStr.Loc, SourceMgr::DK_Error,
719 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()),
721 SM.PrintMessage(SMLoc::getFromPointer(LastMatch), SourceMgr::DK_Note,
727 SM.PrintMessage(CheckStr.Loc, SourceMgr::DK_Error, CheckPrefix+
729 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()),
731 SM.PrintMessage(SMLoc::getFromPointer(LastMatch), SourceMgr::DK_Note,
747 SM.PrintMessage(SMLoc::getFromPointer(LastMatch+Pos), SourceMgr::DK_Error,
749 SM.PrintMessage(CheckStr.NotStrings[ChunkNo].first, SourceMgr::DK_Note,