Lines Matching refs:Check

766   bool MatchFullLinesHere = Req.MatchFullLines && CheckTy != Check::CheckNot;  in parsePattern()
776 if (PatternStr.empty() && CheckTy != Check::CheckEmpty) { in parsePattern()
782 if (!PatternStr.empty() && CheckTy == Check::CheckEmpty) { in parsePattern()
790 if (CheckTy == Check::CheckEmpty) { in parsePattern()
1080 if (CheckTy == Check::CheckEOF) in match()
1165 size_t MatchStartSkip = CheckTy == Check::CheckEmpty; in match()
1294 Check::FileCheckType CheckTy, in ProcessMatchResult()
1458 const Check::FileCheckType &CheckTy, in FileCheckDiag()
1474 Check::FileCheckType &Check::FileCheckType::setCount(int C) { in setCount()
1482 std::string Check::FileCheckType::getModifiersDescription() const { in getModifiersDescription()
1494 std::string Check::FileCheckType::getDescription(StringRef Prefix) const { in getDescription()
1501 case Check::CheckNone: in getDescription()
1503 case Check::CheckMisspelled: in getDescription()
1505 case Check::CheckPlain: in getDescription()
1509 case Check::CheckNext: in getDescription()
1511 case Check::CheckSame: in getDescription()
1513 case Check::CheckNot: in getDescription()
1515 case Check::CheckDAG: in getDescription()
1517 case Check::CheckLabel: in getDescription()
1519 case Check::CheckEmpty: in getDescription()
1521 case Check::CheckComment: in getDescription()
1523 case Check::CheckEOF: in getDescription()
1525 case Check::CheckBadNot: in getDescription()
1527 case Check::CheckBadCount: in getDescription()
1533 static std::pair<Check::FileCheckType, StringRef>
1537 return {Check::CheckNone, StringRef()}; in FindCheckType()
1543 return {Check::CheckComment, Rest}; in FindCheckType()
1545 return {Check::CheckNone, StringRef()}; in FindCheckType()
1548 auto ConsumeModifiers = [&](Check::FileCheckType Ret) in FindCheckType()
1549 -> std::pair<Check::FileCheckType, StringRef> { in FindCheckType()
1553 return {Check::CheckNone, StringRef()}; in FindCheckType()
1562 return {Check::CheckNone, Rest}; in FindCheckType()
1567 return {Check::CheckNone, Rest}; in FindCheckType()
1573 return {Check::CheckPlain, Rest}; in FindCheckType()
1575 return ConsumeModifiers(Check::CheckPlain); in FindCheckType()
1580 return {Check::CheckNone, StringRef()}; in FindCheckType()
1586 return {Check::CheckBadCount, Rest}; in FindCheckType()
1588 return {Check::CheckBadCount, Rest}; in FindCheckType()
1590 return {Check::CheckBadCount, Rest}; in FindCheckType()
1592 Check::FileCheckType(Check::CheckPlain).setCount(Count)); in FindCheckType()
1600 return {Check::CheckBadNot, Rest}; in FindCheckType()
1603 return ConsumeModifiers(Check::CheckNext); in FindCheckType()
1606 return ConsumeModifiers(Check::CheckSame); in FindCheckType()
1609 return ConsumeModifiers(Check::CheckNot); in FindCheckType()
1612 return ConsumeModifiers(Check::CheckDAG); in FindCheckType()
1615 return ConsumeModifiers(Check::CheckLabel); in FindCheckType()
1618 return ConsumeModifiers(Check::CheckEmpty); in FindCheckType()
1620 return {Check::CheckNone, Rest}; in FindCheckType()
1623 static std::pair<Check::FileCheckType, StringRef>
1627 if (Res.first != Check::CheckNone && Misspelled) in FindCheckType()
1628 return {Check::CheckMisspelled, Res.second}; in FindCheckType()
1719 Check::FileCheckType &CheckTy) { in FindFirstMatchingPrefix()
1746 if (CheckTy != Check::CheckNone) in FindFirstMatchingPrefix()
1813 Pattern(Check::CheckNot, PatternContext.get()), in readCheckFile()
1831 Check::FileCheckType CheckTy; in readCheckFile()
1840 if (CheckTy != Check::CheckComment) in readCheckFile()
1859 if (CheckTy == Check::CheckMisspelled) { in readCheckFile()
1869 if (CheckTy == Check::CheckBadNot) { in readCheckFile()
1876 if (CheckTy == Check::CheckBadCount) { in readCheckFile()
1899 if (CheckTy == Check::CheckComment) in readCheckFile()
1908 if ((CheckTy == Check::CheckLabel) && P.hasVariable()) { in readCheckFile()
1917 if ((CheckTy == Check::CheckNext || CheckTy == Check::CheckSame || in readCheckFile()
1918 CheckTy == Check::CheckEmpty) && in readCheckFile()
1920 StringRef Type = CheckTy == Check::CheckNext in readCheckFile()
1922 : CheckTy == Check::CheckEmpty ? "EMPTY" : "SAME"; in readCheckFile()
1931 if (CheckTy == Check::CheckDAG || CheckTy == Check::CheckNot) { in readCheckFile()
1966 Pattern(Check::CheckEOF, PatternContext.get(), LineNumber + 1), in readCheckFile()
1988 if (!Req.VerboseVerbose && Pat.getCheckTy() == Check::CheckEOF) in printMatch()
2166 size_t FileCheckString::Check(const SourceMgr &SM, StringRef Buffer, in Check() function in FileCheckString
2248 if (Pat.getCheckTy() != Check::CheckNext && in CheckNext()
2249 Pat.getCheckTy() != Check::CheckEmpty) in CheckNext()
2254 Twine(Pat.getCheckTy() == Check::CheckEmpty ? "-EMPTY" : "-NEXT"); in CheckNext()
2287 if (Pat.getCheckTy() != Check::CheckSame) in CheckSame()
2314 assert((NotInfo->DagNotPat.getCheckTy() == Check::CheckNot) && in CheckNot()
2355 assert((Pat.getCheckTy() == Check::CheckDAG || in CheckDag()
2356 Pat.getCheckTy() == Check::CheckNot) && in CheckDag()
2359 if (Pat.getCheckTy() == Check::CheckNot) { in CheckDag()
2364 assert((Pat.getCheckTy() == Check::CheckDAG) && "Expect CHECK-DAG!"); in CheckDag()
2446 std::next(PatItr)->DagNotPat.getCheckTy() == Check::CheckNot) { in CheckDag()
2686 if (CheckLabelStr.Pat.getCheckTy() != Check::CheckLabel) { in checkInput()
2694 CheckLabelStr.Check(SM, Buffer, true, MatchLabelLen, Req, Diags); in checkInput()
2717 CheckStr.Check(SM, CheckRegion, false, MatchLen, Req, Diags); in checkInput()