Lines Matching refs:Check

918   bool MatchFullLinesHere = Req.MatchFullLines && CheckTy != Check::CheckNot;  in parsePattern()
930 if (PatternStr.empty() && CheckTy != Check::CheckEmpty) { in parsePattern()
936 if (!PatternStr.empty() && CheckTy == Check::CheckEmpty) { in parsePattern()
944 if (CheckTy == Check::CheckEmpty) { in parsePattern()
1226 if (CheckTy == Check::CheckEOF) in match()
1310 size_t MatchStartSkip = CheckTy == Check::CheckEmpty; in match()
1440 Check::FileCheckType CheckTy, in ProcessMatchResult()
1604 const Check::FileCheckType &CheckTy, in FileCheckDiag()
1620 Check::FileCheckType &Check::FileCheckType::setCount(int C) { in setCount()
1628 std::string Check::FileCheckType::getModifiersDescription() const { in getModifiersDescription()
1640 std::string Check::FileCheckType::getDescription(StringRef Prefix) const { in getDescription()
1647 case Check::CheckNone: in getDescription()
1649 case Check::CheckPlain: in getDescription()
1653 case Check::CheckNext: in getDescription()
1655 case Check::CheckSame: in getDescription()
1657 case Check::CheckNot: in getDescription()
1659 case Check::CheckDAG: in getDescription()
1661 case Check::CheckLabel: in getDescription()
1663 case Check::CheckEmpty: in getDescription()
1665 case Check::CheckComment: in getDescription()
1667 case Check::CheckEOF: in getDescription()
1669 case Check::CheckBadNot: in getDescription()
1671 case Check::CheckBadCount: in getDescription()
1677 static std::pair<Check::FileCheckType, StringRef>
1680 return {Check::CheckNone, StringRef()}; in FindCheckType()
1686 return {Check::CheckComment, Rest}; in FindCheckType()
1688 return {Check::CheckNone, StringRef()}; in FindCheckType()
1691 auto ConsumeModifiers = [&](Check::FileCheckType Ret) in FindCheckType()
1692 -> std::pair<Check::FileCheckType, StringRef> { in FindCheckType()
1696 return {Check::CheckNone, StringRef()}; in FindCheckType()
1705 return {Check::CheckNone, Rest}; in FindCheckType()
1710 return {Check::CheckNone, Rest}; in FindCheckType()
1716 return {Check::CheckPlain, Rest}; in FindCheckType()
1718 return ConsumeModifiers(Check::CheckPlain); in FindCheckType()
1721 return {Check::CheckNone, StringRef()}; in FindCheckType()
1727 return {Check::CheckBadCount, Rest}; in FindCheckType()
1729 return {Check::CheckBadCount, Rest}; in FindCheckType()
1731 return {Check::CheckBadCount, Rest}; in FindCheckType()
1733 Check::FileCheckType(Check::CheckPlain).setCount(Count)); in FindCheckType()
1741 return {Check::CheckBadNot, Rest}; in FindCheckType()
1744 return ConsumeModifiers(Check::CheckNext); in FindCheckType()
1747 return ConsumeModifiers(Check::CheckSame); in FindCheckType()
1750 return ConsumeModifiers(Check::CheckNot); in FindCheckType()
1753 return ConsumeModifiers(Check::CheckDAG); in FindCheckType()
1756 return ConsumeModifiers(Check::CheckLabel); in FindCheckType()
1759 return ConsumeModifiers(Check::CheckEmpty); in FindCheckType()
1761 return {Check::CheckNone, Rest}; in FindCheckType()
1797 Check::FileCheckType &CheckTy) { in FindFirstMatchingPrefix()
1828 if (CheckTy != Check::CheckNone) in FindFirstMatchingPrefix()
1895 Pattern(Check::CheckNot, PatternContext.get())); in readCheckFile()
1910 Check::FileCheckType CheckTy; in readCheckFile()
1919 if (CheckTy != Check::CheckComment) in readCheckFile()
1938 if (CheckTy == Check::CheckBadNot) { in readCheckFile()
1945 if (CheckTy == Check::CheckBadCount) { in readCheckFile()
1968 if (CheckTy == Check::CheckComment) in readCheckFile()
1977 if ((CheckTy == Check::CheckLabel) && P.hasVariable()) { in readCheckFile()
1986 if ((CheckTy == Check::CheckNext || CheckTy == Check::CheckSame || in readCheckFile()
1987 CheckTy == Check::CheckEmpty) && in readCheckFile()
1989 StringRef Type = CheckTy == Check::CheckNext in readCheckFile()
1991 : CheckTy == Check::CheckEmpty ? "EMPTY" : "SAME"; in readCheckFile()
2000 if (CheckTy == Check::CheckDAG || CheckTy == Check::CheckNot) { in readCheckFile()
2035 Pattern(Check::CheckEOF, PatternContext.get(), LineNumber + 1), in readCheckFile()
2057 if (!Req.VerboseVerbose && Pat.getCheckTy() == Check::CheckEOF) in printMatch()
2235 size_t FileCheckString::Check(const SourceMgr &SM, StringRef Buffer, in Check() function in FileCheckString
2317 if (Pat.getCheckTy() != Check::CheckNext && in CheckNext()
2318 Pat.getCheckTy() != Check::CheckEmpty) in CheckNext()
2323 Twine(Pat.getCheckTy() == Check::CheckEmpty ? "-EMPTY" : "-NEXT"); in CheckNext()
2356 if (Pat.getCheckTy() != Check::CheckSame) in CheckSame()
2383 assert((Pat->getCheckTy() == Check::CheckNot) && "Expect CHECK-NOT!"); in CheckNot()
2420 assert((Pat.getCheckTy() == Check::CheckDAG || in CheckDag()
2421 Pat.getCheckTy() == Check::CheckNot) && in CheckDag()
2424 if (Pat.getCheckTy() == Check::CheckNot) { in CheckDag()
2429 assert((Pat.getCheckTy() == Check::CheckDAG) && "Expect CHECK-DAG!"); in CheckDag()
2511 std::next(PatItr)->getCheckTy() == Check::CheckNot) { in CheckDag()
2781 if (CheckLabelStr.Pat.getCheckTy() != Check::CheckLabel) { in checkInput()
2789 CheckLabelStr.Check(SM, Buffer, true, MatchLabelLen, Req, Diags); in checkInput()
2812 CheckStr.Check(SM, CheckRegion, false, MatchLen, Req, Diags); in checkInput()