diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-25 06:47:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-25 06:47:09 +0000 |
commit | 712e8e03a5080962c3b14dec26976114d6318ad7 (patch) | |
tree | 7f79a0aff3dc173536809ea45f984951e13fd72e /llvm/utils/FileCheck/FileCheck.cpp | |
parent | dc880d67f77610ef4f4d9469942e2fba6ca2c9f1 (diff) | |
download | bcm5719-llvm-712e8e03a5080962c3b14dec26976114d6318ad7.tar.gz bcm5719-llvm-712e8e03a5080962c3b14dec26976114d6318ad7.zip |
filecheck should not match a \n with a .
llvm-svn: 82758
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index 199e95fd668..1f79b92e9d0 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -50,7 +50,6 @@ class PatternChunk { public: PatternChunk(StringRef S, bool isRE) : Str(S), isRegEx(isRE) {} - size_t Match(StringRef Buffer, size_t &MatchLen) const { if (!isRegEx) { // Fixed string match. @@ -60,7 +59,7 @@ public: // Regex match. SmallVector<StringRef, 4> MatchInfo; - if (!Regex(Str, Regex::Sub).match(Buffer, &MatchInfo)) + if (!Regex(Str, Regex::Sub|Regex::Newline).match(Buffer, &MatchInfo)) return StringRef::npos; // Successful regex match. @@ -70,7 +69,6 @@ public: MatchLen = FullMatch.size(); return FullMatch.data()-Buffer.data(); } - }; class Pattern { |