Lines Matching refs:Check

762   bool MatchFullLinesHere = Req.MatchFullLines && CheckTy != Check::CheckNot;  in parsePattern()
774 if (PatternStr.empty() && CheckTy != Check::CheckEmpty) { in parsePattern()
780 if (!PatternStr.empty() && CheckTy == Check::CheckEmpty) { in parsePattern()
788 if (CheckTy == Check::CheckEmpty) { in parsePattern()
1078 if (CheckTy == Check::CheckEOF) in match()
1163 size_t MatchStartSkip = CheckTy == Check::CheckEmpty; in match()
1292 Check::FileCheckType CheckTy, in ProcessMatchResult()
1456 const Check::FileCheckType &CheckTy, in FileCheckDiag()
1472 Check::FileCheckType &Check::FileCheckType::setCount(int C) { in setCount()
1480 std::string Check::FileCheckType::getModifiersDescription() const { in getModifiersDescription()
1492 std::string Check::FileCheckType::getDescription(StringRef Prefix) const { in getDescription()
1499 case Check::CheckNone: in getDescription()
1501 case Check::CheckMisspelled: in getDescription()
1503 case Check::CheckPlain: in getDescription()
1507 case Check::CheckNext: in getDescription()
1509 case Check::CheckSame: in getDescription()
1511 case Check::CheckNot: in getDescription()
1513 case Check::CheckDAG: in getDescription()
1515 case Check::CheckLabel: in getDescription()
1517 case Check::CheckEmpty: in getDescription()
1519 case Check::CheckComment: in getDescription()
1521 case Check::CheckEOF: in getDescription()
1523 case Check::CheckBadNot: in getDescription()
1525 case Check::CheckBadCount: in getDescription()
1531 static std::pair<Check::FileCheckType, StringRef>
1535 return {Check::CheckNone, StringRef()}; in FindCheckType()
1541 return {Check::CheckComment, Rest}; in FindCheckType()
1543 return {Check::CheckNone, StringRef()}; in FindCheckType()
1546 auto ConsumeModifiers = [&](Check::FileCheckType Ret) in FindCheckType()
1547 -> std::pair<Check::FileCheckType, StringRef> { in FindCheckType()
1551 return {Check::CheckNone, StringRef()}; in FindCheckType()
1560 return {Check::CheckNone, Rest}; in FindCheckType()
1565 return {Check::CheckNone, Rest}; in FindCheckType()
1571 return {Check::CheckPlain, Rest}; in FindCheckType()
1573 return ConsumeModifiers(Check::CheckPlain); in FindCheckType()
1578 return {Check::CheckNone, StringRef()}; in FindCheckType()
1584 return {Check::CheckBadCount, Rest}; in FindCheckType()
1586 return {Check::CheckBadCount, Rest}; in FindCheckType()
1588 return {Check::CheckBadCount, Rest}; in FindCheckType()
1590 Check::FileCheckType(Check::CheckPlain).setCount(Count)); in FindCheckType()
1598 return {Check::CheckBadNot, Rest}; in FindCheckType()
1601 return ConsumeModifiers(Check::CheckNext); in FindCheckType()
1604 return ConsumeModifiers(Check::CheckSame); in FindCheckType()
1607 return ConsumeModifiers(Check::CheckNot); in FindCheckType()
1610 return ConsumeModifiers(Check::CheckDAG); in FindCheckType()
1613 return ConsumeModifiers(Check::CheckLabel); in FindCheckType()
1616 return ConsumeModifiers(Check::CheckEmpty); in FindCheckType()
1618 return {Check::CheckNone, Rest}; in FindCheckType()
1621 static std::pair<Check::FileCheckType, StringRef>
1625 if (Res.first != Check::CheckNone && Misspelled) in FindCheckType()
1626 return {Check::CheckMisspelled, Res.second}; in FindCheckType()
1717 Check::FileCheckType &CheckTy) { in FindFirstMatchingPrefix()
1744 if (CheckTy != Check::CheckNone) in FindFirstMatchingPrefix()
1811 Pattern(Check::CheckNot, PatternContext.get()), in readCheckFile()
1829 Check::FileCheckType CheckTy; in readCheckFile()
1838 if (CheckTy != Check::CheckComment) in readCheckFile()
1857 if (CheckTy == Check::CheckMisspelled) { in readCheckFile()
1867 if (CheckTy == Check::CheckBadNot) { in readCheckFile()
1874 if (CheckTy == Check::CheckBadCount) { in readCheckFile()
1897 if (CheckTy == Check::CheckComment) in readCheckFile()
1906 if ((CheckTy == Check::CheckLabel) && P.hasVariable()) { in readCheckFile()
1915 if ((CheckTy == Check::CheckNext || CheckTy == Check::CheckSame || in readCheckFile()
1916 CheckTy == Check::CheckEmpty) && in readCheckFile()
1918 StringRef Type = CheckTy == Check::CheckNext in readCheckFile()
1920 : CheckTy == Check::CheckEmpty ? "EMPTY" : "SAME"; in readCheckFile()
1929 if (CheckTy == Check::CheckDAG || CheckTy == Check::CheckNot) { in readCheckFile()
1964 Pattern(Check::CheckEOF, PatternContext.get(), LineNumber + 1), in readCheckFile()
1986 if (!Req.VerboseVerbose && Pat.getCheckTy() == Check::CheckEOF) in printMatch()
2164 size_t FileCheckString::Check(const SourceMgr &SM, StringRef Buffer, in Check() function in FileCheckString
2246 if (Pat.getCheckTy() != Check::CheckNext && in CheckNext()
2247 Pat.getCheckTy() != Check::CheckEmpty) in CheckNext()
2252 Twine(Pat.getCheckTy() == Check::CheckEmpty ? "-EMPTY" : "-NEXT"); in CheckNext()
2285 if (Pat.getCheckTy() != Check::CheckSame) in CheckSame()
2312 assert((NotInfo->DagNotPat.getCheckTy() == Check::CheckNot) && in CheckNot()
2353 assert((Pat.getCheckTy() == Check::CheckDAG || in CheckDag()
2354 Pat.getCheckTy() == Check::CheckNot) && in CheckDag()
2357 if (Pat.getCheckTy() == Check::CheckNot) { in CheckDag()
2362 assert((Pat.getCheckTy() == Check::CheckDAG) && "Expect CHECK-DAG!"); in CheckDag()
2444 std::next(PatItr)->DagNotPat.getCheckTy() == Check::CheckNot) { in CheckDag()
2684 if (CheckLabelStr.Pat.getCheckTy() != Check::CheckLabel) { in checkInput()
2692 CheckLabelStr.Check(SM, Buffer, true, MatchLabelLen, Req, Diags); in checkInput()
2715 CheckStr.Check(SM, CheckRegion, false, MatchLen, Req, Diags); in checkInput()