diff options
-rw-r--r-- | Driver/DiagChecker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Driver/DiagChecker.cpp b/Driver/DiagChecker.cpp index 6f7ea0b739..51f3979b92 100644 --- a/Driver/DiagChecker.cpp +++ b/Driver/DiagChecker.cpp @@ -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; } |