Skip to content

Commit

Permalink
Fixing incorrectly capitalised regexps.
Browse files Browse the repository at this point in the history
Patch by Sam Allen!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312709 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Sep 7, 2017
1 parent 9ef93d9 commit be4da53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/llvm/TableGen/Record.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tools/llvm-rc/ResourceScriptToken.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Tokenizer {
// 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;
Expand Down

0 comments on commit be4da53

Please sign in to comment.