[llvm] r312709 - Fixing incorrectly capitalised regexps.

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 7 02:54:03 PDT 2017


Author: d0k
Date: Thu Sep  7 02:54:03 2017
New Revision: 312709

URL: http://llvm.org/viewvc/llvm-project?rev=312709&view=rev
Log:
Fixing incorrectly capitalised regexps.

Patch by Sam Allen!

Modified:
    llvm/trunk/include/llvm/TableGen/Record.h
    llvm/trunk/tools/llvm-rc/ResourceScriptToken.cpp

Modified: llvm/trunk/include/llvm/TableGen/Record.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/TableGen/Record.h?rev=312709&r1=312708&r2=312709&view=diff
==============================================================================
--- llvm/trunk/include/llvm/TableGen/Record.h (original)
+++ llvm/trunk/include/llvm/TableGen/Record.h Thu Sep  7 02:54:03 2017
@@ -1638,7 +1638,7 @@ struct LessRecordRegister {
     if (LHSNumParts != RHSNumParts)
       return LHSNumParts < RHSNumParts;
 
-    // We expect the registers to be of the form [_a-zA-z]+([0-9]*[_a-zA-Z]*)*.
+    // We expect the registers to be of the form [_a-zA-Z]+([0-9]*[_a-zA-Z]*)*.
     for (size_t I = 0, E = LHSNumParts; I < E; I+=2) {
       std::pair<bool, StringRef> LHSPart = LHSParts.getPart(I);
       std::pair<bool, StringRef> RHSPart = RHSParts.getPart(I);

Modified: llvm/trunk/tools/llvm-rc/ResourceScriptToken.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-rc/ResourceScriptToken.cpp?rev=312709&r1=312708&r2=312709&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-rc/ResourceScriptToken.cpp (original)
+++ llvm/trunk/tools/llvm-rc/ResourceScriptToken.cpp Thu Sep  7 02:54:03 2017
@@ -88,7 +88,7 @@ private:
   // Check if tokenizer can start reading an identifier at current position.
   // The original tool did non specify the rules to determine what is a correct
   // identifier. We assume they should follow the C convention:
-  // [a-zA-z_][a-zA-Z0-9_]*.
+  // [a-zA-Z_][a-zA-Z0-9_]*.
   bool canStartIdentifier() const;
   // Check if tokenizer can continue reading an identifier.
   bool canContinueIdentifier() const;




More information about the llvm-commits mailing list