[llvm-commits] [llvm] r163457 - /llvm/trunk/utils/FileCheck/FileCheck.cpp

Ted Kremenek kremenek at apple.com
Fri Sep 7 21:32:13 PDT 2012


Author: kremenek
Date: Fri Sep  7 23:32:13 2012
New Revision: 163457

URL: http://llvm.org/viewvc/llvm-project?rev=163457&view=rev
Log:
Revert "Add -exact-match option to FileCheck to allow clients to do exact matches without using regular expressions."

Turns out I did not need it after all.  If we find a use for it in the future, we
can resurrect it.

Modified:
    llvm/trunk/utils/FileCheck/FileCheck.cpp

Modified: llvm/trunk/utils/FileCheck/FileCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/FileCheck/FileCheck.cpp?rev=163457&r1=163456&r2=163457&view=diff
==============================================================================
--- llvm/trunk/utils/FileCheck/FileCheck.cpp (original)
+++ llvm/trunk/utils/FileCheck/FileCheck.cpp Fri Sep  7 23:32:13 2012
@@ -45,10 +45,6 @@
 NoCanonicalizeWhiteSpace("strict-whitespace",
               cl::desc("Do not treat all horizontal whitespace as equivalent"));
 
-static cl::opt<bool>
-NoRegex("exact-match",
-        cl::desc("Look for exact matches without using regular expressions"));
-
 //===----------------------------------------------------------------------===//
 // Pattern Handling Code.
 //===----------------------------------------------------------------------===//
@@ -128,7 +124,7 @@
   }
 
   // Check to see if this is a fixed string, or if it has regex pieces.
-  if (PatternStr.size() < 2 || NoRegex ||
+  if (PatternStr.size() < 2 ||
       (PatternStr.find("{{") == StringRef::npos &&
        PatternStr.find("[[") == StringRef::npos)) {
     FixedStr = PatternStr;





More information about the llvm-commits mailing list