[cfe-commits] r58198 - /cfe/trunk/Driver/DiagChecker.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Sun Oct 26 12:05:16 PDT 2008
Author: cornedbee
Date: Sun Oct 26 14:05:16 2008
New Revision: 58198
URL: http://llvm.org/viewvc/llvm-project?rev=58198&view=rev
Log:
Allow \n for newlines in expected error messages.
Modified:
cfe/trunk/Driver/DiagChecker.cpp
Modified: cfe/trunk/Driver/DiagChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/DiagChecker.cpp?rev=58198&r1=58197&r2=58198&view=diff
==============================================================================
--- cfe/trunk/Driver/DiagChecker.cpp (original)
+++ cfe/trunk/Driver/DiagChecker.cpp Sun Oct 26 14:05:16 2008
@@ -78,6 +78,10 @@
}
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;
}
More information about the cfe-commits
mailing list