aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorTom de Vries <vries@codesourcery.com>2016-12-18 09:41:20 +0000
committerTom de Vries <vries@codesourcery.com>2016-12-18 09:41:20 +0000
commita26bc91456865f8cd039c9ebd72def3a0b4a80f1 (patch)
treee4c96a90b3f0606a0211a15c178d8d8de780d878 /llvm/utils/FileCheck/FileCheck.cpp
parent7029db0eaa2255ea223dc49eedd82b2431da2d50 (diff)
downloadllvm-a26bc91456865f8cd039c9ebd72def3a0b4a80f1.zip
llvm-a26bc91456865f8cd039c9ebd72def3a0b4a80f1.tar.gz
llvm-a26bc91456865f8cd039c9ebd72def3a0b4a80f1.tar.bz2
[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. llvm-svn: 290061
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r--llvm/utils/FileCheck/FileCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index f8c7a28..2d97477 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/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.