Skip to content

Commit 42e1c2f

Browse files
author
Harlan Haskins
committed
[test] Add expected-remark to DiagnosticVerifier
1 parent 1119b91 commit 42e1c2f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Frontend/DiagnosticVerifier.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ bool DiagnosticVerifier::verifyFile(unsigned BufferID,
246246
} else if (MatchStart.startswith("expected-error")) {
247247
ExpectedClassification = llvm::SourceMgr::DK_Error;
248248
MatchStart = MatchStart.substr(strlen("expected-error"));
249+
} else if (MatchStart.startswith("expected-remark")) {
250+
ExpectedClassification = llvm::SourceMgr::DK_Remark;
251+
MatchStart = MatchStart.substr(strlen("expected-remark"));
249252
} else
250253
continue;
251254

0 commit comments

Comments
 (0)