summaryrefslogtreecommitdiff
path: root/utils/FileCheck
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
commit9cbd6096641be442a1e2695a2a778500b2de659b (patch)
tree91f6821913c3680d8daad3623103459a7210a0e8 /utils/FileCheck
parentabfa815607ce6f3cfce7b0b118eafe8908c9b39e (diff)
[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
Diffstat (limited to 'utils/FileCheck')
-rw-r--r--utils/FileCheck/FileCheck.cpp2
1 files changed, 1 insertions, 1 deletions
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.