================
@@ -985,8 +1079,14 @@ static unsigned CheckLists(DiagnosticsEngine &Diags,
SourceManager &SourceMgr,
continue;
const std::string &RightText = II->second;
- if (D.match(RightText))
+ DiagnosticMatchResult MatchResult = D.match(RightText);
+ if (MatchResult == DiagnosticMatchResult::Partial) {
+ assert(D.FullMatchRequired);
----------------
AaronBallman wrote:
Please add a `&& "explanation"` to the assert to make it easier to see that
`AtLeastPartial` isn't relevant here.
https://github.com/llvm/llvm-project/pull/179835
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits