Lines Matching refs:Req
761 SourceMgr &SM, const FileCheckRequest &Req) { in parsePattern() argument
762 bool MatchFullLinesHere = Req.MatchFullLines && CheckTy != Check::CheckNot; in parsePattern()
763 IgnoreCase = Req.IgnoreCase; in parsePattern()
767 if (!(Req.NoCanonicalizeWhiteSpace && Req.MatchFullLines)) in parsePattern()
809 if (!Req.NoCanonicalizeWhiteSpace) in parsePattern()
1047 if (!Req.NoCanonicalizeWhiteSpace) in parsePattern()
1439 if (Req.NoCanonicalizeWhiteSpace || (*Ptr != ' ' && *Ptr != '\t')) { in CanonicalizeFile()
1532 FindCheckType(const FileCheckRequest &Req, StringRef Buffer, StringRef Prefix, in FindCheckType() argument
1539 if (llvm::is_contained(Req.CommentPrefixes, Prefix)) { in FindCheckType()
1622 FindCheckType(const FileCheckRequest &Req, StringRef Buffer, StringRef Prefix) { in FindCheckType() argument
1624 auto Res = FindCheckType(Req, Buffer, Prefix, Misspelled); in FindCheckType()
1640 static void addDefaultPrefixes(FileCheckRequest &Req) { in addDefaultPrefixes() argument
1641 if (Req.CheckPrefixes.empty()) { in addDefaultPrefixes()
1643 Req.CheckPrefixes.push_back(Prefix); in addDefaultPrefixes()
1644 Req.IsDefaultCheckPrefix = true; in addDefaultPrefixes()
1646 if (Req.CommentPrefixes.empty()) in addDefaultPrefixes()
1648 Req.CommentPrefixes.push_back(Prefix); in addDefaultPrefixes()
1715 FindFirstMatchingPrefix(const FileCheckRequest &Req, PrefixMatcher &Matcher, in FindFirstMatchingPrefix() argument
1741 std::tie(CheckTy, AfterSuffix) = FindCheckType(Req, Buffer, Prefix); in FindFirstMatchingPrefix()
1766 FileCheck::FileCheck(FileCheckRequest Req) in FileCheck() argument
1767 : Req(Req), PatternContext(std::make_unique<FileCheckPatternContext>()), in FileCheck()
1779 PatternContext->defineCmdlineVariables(Req.GlobalDefines, SM); in readCheckFile()
1788 for (StringRef PatternString : Req.ImplicitCheckNot) { in readCheckFile()
1814 PatternInBuffer, "IMPLICIT-CHECK", SM, Req); in readCheckFile()
1823 addDefaultPrefixes(Req); in readCheckFile()
1824 PrefixMatcher Matcher(Req.CheckPrefixes, Req.CommentPrefixes, Buffer); in readCheckFile()
1825 std::set<StringRef> PrefixesNotFound(Req.CheckPrefixes.begin(), in readCheckFile()
1826 Req.CheckPrefixes.end()); in readCheckFile()
1835 FindFirstMatchingPrefix(Req, Matcher, Buffer, LineNumber, CheckTy); in readCheckFile()
1883 if (!(Req.NoCanonicalizeWhiteSpace && Req.MatchFullLines)) in readCheckFile()
1902 if (P.parsePattern(PatternBuffer, UsedPrefix, SM, Req)) in readCheckFile()
1944 !Req.AllowUnusedPrefixes && !PrefixesNotFound.empty(); in readCheckFile()
1946 (ImplicitNegativeChecks.empty() || !Req.IsDefaultCheckPrefix)) { in readCheckFile()
1965 *Req.CheckPrefixes.begin(), SMLoc::getFromPointer(Buffer.data())); in readCheckFile()
1978 const FileCheckRequest &Req, in printMatch() argument
1984 if (!Req.Verbose) in printMatch()
1986 if (!Req.VerboseVerbose && Pat.getCheckTy() == Check::CheckEOF) in printMatch()
2131 const FileCheckRequest &Req, in reportMatchResult() argument
2135 std::move(MatchResult), Req, Diags); in reportMatchResult()
2137 std::move(MatchResult.TheError), Req.VerboseVerbose, in reportMatchResult()
2166 FileCheckRequest &Req, in Check() argument
2177 LastPos = CheckDag(SM, Buffer, NotStrings, Req, Diags); in Check()
2196 std::move(MatchResult), Req, Diags)) { in Check()
2223 Diags, Req.Verbose); in Check()
2232 Diags, Req.Verbose); in Check()
2238 if (CheckNot(SM, SkippedRegion, NotStrings, Req, Diags)) in Check()
2309 const FileCheckRequest &Req, std::vector<FileCheckDiag> *Diags) const { in CheckNot() argument
2318 std::move(MatchResult), Req, Diags)) { in CheckNot()
2330 const FileCheckRequest &Req, in CheckDag() argument
2374 if (MatchResult.TheError || Req.VerboseVerbose) { in CheckDag()
2377 std::move(MatchResult), Req, Diags)) { in CheckDag()
2388 if (Req.AllowDeprecatedDagOverlap) { in CheckDag()
2416 if (Req.VerboseVerbose) { in CheckDag()
2436 if (!Req.VerboseVerbose) in CheckDag()
2439 Pattern::MatchResult(MatchPos, MatchLen, Error::success()), Req, in CheckDag()
2451 if (CheckNot(SM, SkippedRegion, NotStrings, Req, Diags)) in CheckDag()
2494 if (Req.CheckPrefixes.empty()) { in ValidateCheckPrefixes()
2498 if (Req.CommentPrefixes.empty()) { in ValidateCheckPrefixes()
2504 if (!ValidatePrefixes("check", UniquePrefixes, Req.CheckPrefixes)) in ValidateCheckPrefixes()
2506 if (!ValidatePrefixes("comment", UniquePrefixes, Req.CommentPrefixes)) in ValidateCheckPrefixes()
2692 CheckLabelStr.Check(SM, Buffer, true, MatchLabelLen, Req, Diags); in checkInput()
2705 if (i != 0 && Req.EnableVarScope) in checkInput()
2715 CheckStr.Check(SM, CheckRegion, false, MatchLen, Req, Diags); in checkInput()