llvm.org GIT mirror llvm / cc56be2
Add const to a const method. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300520 91177308-0d34-0410-b5e6-96231b3b80d8 George Burgess IV 3 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5656
5757 /// isValid - returns the error encountered during regex compilation, or
5858 /// matching, if any.
59 bool isValid(std::string &Error);
59 bool isValid(std::string &Error) const;
6060
6161 /// getNumMatches - In a valid regex, return the number of parenthesized
6262 /// matches it contains. The number filled in by match will include this
4747 }
4848 }
4949
50 bool Regex::isValid(std::string &Error) {
50 bool Regex::isValid(std::string &Error) const {
5151 if (!error)
5252 return true;
5353