Skip to content

Commit

Permalink
Silence an illegal conversion warning in MSVC; NFC
Browse files Browse the repository at this point in the history
The code previously required two levels of conversion, one from
SmallString to StringRef and one from StringRef to Regex. This made the
implicit conversion to StringRef be explicit instead.
  • Loading branch information
AaronBallman committed Aug 28, 2023
1 parent aebe312 commit 43ca99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/GlobList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static llvm::Regex consumeGlob(StringRef &GlobList) {
RegexText.push_back(C);
}
RegexText.push_back('$');
return {RegexText};
return {RegexText.str()};
}

GlobList::GlobList(StringRef Globs, bool KeepNegativeGlobs /* =true */) {
Expand Down

0 comments on commit 43ca99a

Please sign in to comment.