• Home
  • Raw
  • Download

Lines Matching refs:SM

141                     SourceMgr &SM,
155 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
164 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM);
182 size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM);
188 SourceMgr &SM, in ParsePattern() argument
202 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error, in ParsePattern()
234 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern()
247 if (AddRegExToRegEx(PatternStr.substr(2, End-2), CurParen, SM)) in ParsePattern()
263 size_t End = FindRegexVarEnd(PatternStr.substr(2), SM); in ParsePattern()
266 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern()
280 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error, in ParsePattern()
292 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), in ParsePattern()
302 SM.PrintMessage(SMLoc::getFromPointer(Name.data()+i), in ParsePattern()
310 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error, in ParsePattern()
322 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), in ParsePattern()
339 if (AddRegExToRegEx(MatchStr.substr(NameEnd+1), CurParen, SM)) in ParsePattern()
363 SourceMgr &SM) { in AddRegExToRegEx() argument
367 SM.PrintMessage(SMLoc::getFromPointer(RS.data()), SourceMgr::DK_Error, in AddRegExToRegEx()
493 void Pattern::PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, in PrintFailureInfo() argument
526 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note, in PrintFailureInfo()
564 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + Best), in PrintFailureInfo()
572 size_t Pattern::FindRegexVarEnd(StringRef Str, SourceMgr &SM) { in FindRegexVarEnd() argument
594 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), in FindRegexVarEnd()
639 size_t Check(const SourceMgr &SM, StringRef Buffer, bool IsLabelScanMode,
643 bool CheckNext(const SourceMgr &SM, StringRef Buffer) const;
646 bool CheckSame(const SourceMgr &SM, StringRef Buffer) const;
649 bool CheckNot(const SourceMgr &SM, StringRef Buffer,
654 size_t CheckDag(const SourceMgr &SM, StringRef Buffer,
866 static bool ReadCheckFile(SourceMgr &SM, in ReadCheckFile() argument
884 SM.AddNewSourceBuffer(std::move(F), SMLoc()); in ReadCheckFile()
897 SM.AddNewSourceBuffer(std::move(CmdLine), SMLoc()); in ReadCheckFile()
901 "IMPLICIT-CHECK", SM, 0); in ReadCheckFile()
933 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), in ReadCheckFile()
951 if (P.ParsePattern(Buffer.substr(0, EOL), UsedPrefix, SM, LineNumber)) in ReadCheckFile()
956 SM.PrintMessage(SMLoc::getFromPointer(UsedPrefixStart), in ReadCheckFile()
969 SM.PrintMessage(SMLoc::getFromPointer(UsedPrefixStart), in ReadCheckFile()
1015 static void PrintCheckFailed(const SourceMgr &SM, SMLoc Loc, in PrintCheckFailed() argument
1019 SM.PrintMessage(Loc, SourceMgr::DK_Error, in PrintCheckFailed()
1026 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note, in PrintCheckFailed()
1030 Pat.PrintFailureInfo(SM, Buffer, VariableTable); in PrintCheckFailed()
1033 static void PrintCheckFailed(const SourceMgr &SM, const CheckString &CheckStr, in PrintCheckFailed() argument
1036 PrintCheckFailed(SM, CheckStr.Loc, CheckStr.Pat, Buffer, VariableTable); in PrintCheckFailed()
1063 size_t CheckString::Check(const SourceMgr &SM, StringRef Buffer, in Check() argument
1075 LastPos = CheckDag(SM, Buffer, NotStrings, VariableTable); in Check()
1084 PrintCheckFailed(SM, *this, MatchBuffer, VariableTable); in Check()
1095 if (CheckNext(SM, SkippedRegion)) in Check()
1100 if (CheckSame(SM, SkippedRegion)) in Check()
1105 if (CheckNot(SM, SkippedRegion, NotStrings, VariableTable)) in Check()
1112 bool CheckString::CheckNext(const SourceMgr &SM, StringRef Buffer) const { in CheckNext() argument
1118 SM.getMemoryBuffer( in CheckNext()
1119 SM.FindBufferContainingLoc( in CheckNext()
1127 SM.PrintMessage(Loc, SourceMgr::DK_Error, Prefix + in CheckNext()
1129 SM.PrintMessage(SMLoc::getFromPointer(Buffer.end()), in CheckNext()
1131 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note, in CheckNext()
1137 SM.PrintMessage(Loc, SourceMgr::DK_Error, Prefix + in CheckNext()
1139 SM.PrintMessage(SMLoc::getFromPointer(Buffer.end()), in CheckNext()
1141 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note, in CheckNext()
1143 SM.PrintMessage(SMLoc::getFromPointer(FirstNewLine), SourceMgr::DK_Note, in CheckNext()
1151 bool CheckString::CheckSame(const SourceMgr &SM, StringRef Buffer) const { in CheckSame() argument
1157 SM.getMemoryBuffer(SM.FindBufferContainingLoc( in CheckSame()
1166 SM.PrintMessage(Loc, SourceMgr::DK_Error, in CheckSame()
1169 SM.PrintMessage(SMLoc::getFromPointer(Buffer.end()), SourceMgr::DK_Note, in CheckSame()
1171 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note, in CheckSame()
1179 bool CheckString::CheckNot(const SourceMgr &SM, StringRef Buffer, in CheckNot() argument
1190 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()+Pos), in CheckNot()
1193 SM.PrintMessage(Pat->getLoc(), SourceMgr::DK_Note, in CheckNot()
1201 size_t CheckString::CheckDag(const SourceMgr &SM, StringRef Buffer, in CheckDag() argument
1230 PrintCheckFailed(SM, Pat.getLoc(), Pat, MatchBuffer, VariableTable); in CheckDag()
1239 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + MatchPos), in CheckDag()
1243 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + LastPos), in CheckDag()
1247 SM.PrintMessage(NotStrings[0]->getLoc(), SourceMgr::DK_Note, in CheckDag()
1250 SM.PrintMessage(Pat.getLoc(), SourceMgr::DK_Note, in CheckDag()
1262 if (CheckNot(SM, SkippedRegion, NotStrings, VariableTable)) in CheckDag()
1327 SourceMgr SM; in main() local
1331 if (ReadCheckFile(SM, CheckStrings)) in main()
1359 SM.AddNewSourceBuffer(std::move(F), SMLoc()); in main()
1381 size_t MatchLabelPos = CheckLabelStr.Check(SM, Buffer, true, in main()
1399 size_t MatchPos = CheckStr.Check(SM, CheckRegion, false, MatchLen, in main()