We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6abf8a2 commit 3df9873Copy full SHA for 3df9873
clang-tools-extra/clang-tidy/modernize/MinMaxUseInitializerListCheck.cpp
@@ -124,11 +124,10 @@ generateReplacement(const MatchFinder::MatchResult &Match,
124
if (ArgType == ResultType)
125
continue;
126
127
- const std::string ArgText =
+ const StringRef ArgText =
128
Lexer::getSourceText(
129
CharSourceRange::getTokenRange(Arg->getSourceRange()), SourceMngr,
130
- LanguageOpts)
131
- .str();
+ LanguageOpts);
132
133
Twine Replacement = llvm::Twine("static_cast<")
134
.concat(ResultType.getAsString(LanguageOpts))
0 commit comments