]> granicus.if.org Git - llvm/commitdiff
[FileCheck] Fix comment in ReadCheckFile
authorTom de Vries <vries@codesourcery.com>
Sun, 18 Dec 2016 09:41:20 +0000 (09:41 +0000)
committerTom de Vries <vries@codesourcery.com>
Sun, 18 Dec 2016 09:41:20 +0000 (09:41 +0000)
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

index f8c7a28867ac88b8469add20068bebb8ef96dfaa..2d9747757aa75dcdc01f89851103053d53d6b3ef 100644 (file)
@@ -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.