Allow \n for newlines in expected error messages.

llvm-svn: 58198
This commit is contained in:
Sebastian Redl 2008-10-26 19:05:16 +00:00
parent a43f2b21e7
commit 5cba81afb3
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}