diff options
author | Tom de Vries <vries@codesourcery.com> | 2016-12-18 09:41:20 +0000 |
---|---|---|
committer | Tom de Vries <vries@codesourcery.com> | 2016-12-18 09:41:20 +0000 |
commit | a26bc91456865f8cd039c9ebd72def3a0b4a80f1 (patch) | |
tree | e4c96a90b3f0606a0211a15c178d8d8de780d878 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | 7029db0eaa2255ea223dc49eedd82b2431da2d50 (diff) | |
download | llvm-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.cpp | 2 |
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. |