diff --git a/llvm/unittests/FileCheck/FileCheckTest.cpp b/llvm/unittests/FileCheck/FileCheckTest.cpp --- a/llvm/unittests/FileCheck/FileCheckTest.cpp +++ b/llvm/unittests/FileCheck/FileCheckTest.cpp @@ -161,7 +161,7 @@ return (Twine(Prefix) + Twine(Num)).str(); } - void checkWildcardRegexCharMatchFailure(StringRef Chars) const { + void checkPerCharWildcardRegexMatchFailure(StringRef Chars) const { for (auto C : Chars) { std::string Str = addBasePrefix(StringRef(&C, 1)); EXPECT_FALSE(WildcardRegex.match(Str)); @@ -259,9 +259,9 @@ if (AllowHex) { LongNumberStr = addBasePrefix(AcceptedHexOnlyDigits); checkWildcardRegexMatch(LongNumberStr, 16); - checkWildcardRegexCharMatchFailure(RefusedHexOnlyDigits); + checkPerCharWildcardRegexMatchFailure(RefusedHexOnlyDigits); } - checkWildcardRegexCharMatchFailure(FirstInvalidCharDigits); + checkPerCharWildcardRegexMatchFailure(FirstInvalidCharDigits); // Check leading zeros are only accepted if number of digits is less than the // precision.