Lines Matching defs:ExpectedMatch
1976 static Error printMatch(bool ExpectedMatch, const SourceMgr &SM,
1983 bool HasError = !ExpectedMatch || MatchResult.TheError;
1997 FileCheckDiag::MatchType MatchTy = ExpectedMatch
2015 (ExpectedMatch ? "expected" : "excluded"))
2020 Loc, ExpectedMatch ? SourceMgr::DK_Remark : SourceMgr::DK_Error, Message);
2046 static Error printNoMatch(bool ExpectedMatch, const SourceMgr &SM,
2052 bool HasError = ExpectedMatch;
2054 FileCheckDiag::MatchType MatchTy = ExpectedMatch
2107 (ExpectedMatch ? "expected" : "excluded"))
2113 ExpectedMatch ? SourceMgr::DK_Error : SourceMgr::DK_Remark,
2122 if (ExpectedMatch)
2129 static Error reportMatchResult(bool ExpectedMatch, const SourceMgr &SM,
2136 return printMatch(ExpectedMatch, SM, Prefix, Loc, Pat, MatchedCount, Buffer,
2138 return printNoMatch(ExpectedMatch, SM, Prefix, Loc, Pat, MatchedCount, Buffer,
2196 if (Error Err = reportMatchResult(/*ExpectedMatch=*/true, SM, Prefix, Loc,
2318 /*ExpectedMatch=*/false, SM, NotInfo->DagNotPrefix,
2377 if (Error Err = reportMatchResult(/*ExpectedMatch=*/true, SM, DNPrefix,
2440 /*ExpectedMatch=*/true, SM, DNPrefix, Pat.getLoc(), Pat, 1, Buffer,