[cfe-commits] r42012 - /cfe/trunk/Driver/DiagChecker.cpp

Chris Lattner sabre at nondot.org
Sun Sep 16 12:27:16 PDT 2007


Author: lattner
Date: Sun Sep 16 14:27:16 2007
New Revision: 42012

URL: http://llvm.org/viewvc/llvm-project?rev=42012&view=rev
Log:
>From Justin Handville:

"The ExpectedStr search was starting at the end of the comment string.
This patch starts the search at the beginning of the comment string.
After applying this patch, clang -parse-ast-check on negative test
case source files worked as expected."


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=42012&r1=42011&r2=42012&view=diff

==============================================================================
--- cfe/trunk/Driver/DiagChecker.cpp (original)
+++ cfe/trunk/Driver/DiagChecker.cpp Sun Sep 16 14:27:16 2007
@@ -51,7 +51,7 @@
                             const char * const ExpectedStr) {
   // Find all expected diagnostics
   typedef std::string::size_type size_type;
-  size_type ColNo = std::string::npos;
+  size_type ColNo = 0;
 
   for (;;) {
     ColNo = Comment.find(ExpectedStr, ColNo);





More information about the cfe-commits mailing list