forked from OSchip/llvm-project
Allow \n for newlines in expected error messages.
llvm-svn: 58198
This commit is contained in:
parent
a43f2b21e7
commit
5cba81afb3
|
@ -78,6 +78,10 @@ static void FindDiagnostics(const std::string &Comment,
|
|||
}
|
||||
|
||||
std::string Msg(Comment.substr(OpenDiag, CloseDiag - OpenDiag));
|
||||
size_type FindPos;
|
||||
while((FindPos = Msg.find("\\n")) != std::string::npos) {
|
||||
Msg.replace(FindPos, 2, "\n");
|
||||
}
|
||||
ExpectedDiags.push_back(std::make_pair(Pos, Msg));
|
||||
ColNo = CloseDiag + 2;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue