From 9cbd6096641be442a1e2695a2a778500b2de659b Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sun, 18 Dec 2016 09:41:20 +0000 Subject: [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290061 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/FileCheck/FileCheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/FileCheck') diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp index f8c7a28867a..2d9747757aa 100644 --- a/utils/FileCheck/FileCheck.cpp +++ b/utils/FileCheck/FileCheck.cpp @@ -865,7 +865,7 @@ static bool ReadCheckFile(SourceMgr &SM, StringRef Buffer, Regex &PrefixRE, } // 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. -- cgit v1.2.3