[llvm] r290061 - [FileCheck] Fix comment in ReadCheckFile

Tom de Vries via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 18 01:41:20 PST 2016

Author: vries
Date: Sun Dec 18 03:41:20 2016
New Revision: 290061

URL: http://llvm.org/viewvc/llvm-project?rev=290061&view=rev
[FileCheck] Fix comment in ReadCheckFile

The comment in ReadCheckFile claims that both leading and trailing whitespace
are removed, but the associated statement only removes leading whitespace.


Modified: llvm/trunk/utils/FileCheck/FileCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/FileCheck/FileCheck.cpp?rev=290061&r1=290060&r2=290061&view=diff
--- llvm/trunk/utils/FileCheck/FileCheck.cpp (original)
+++ llvm/trunk/utils/FileCheck/FileCheck.cpp Sun Dec 18 03:41:20 2016
@@ -865,7 +865,7 @@ static bool ReadCheckFile(SourceMgr &SM,
     // Okay, we found the prefix, yay. Remember the rest of the line, but ignore
-    // leading and trailing whitespace.
+    // leading whitespace.
     Buffer = Buffer.substr(Buffer.find_first_not_of(" \t"));
     // Scan ahead to the end of line.

More information about the llvm-commits mailing list