Skip to content

Commit e1b07aa

Browse files
committed
[clangd] NFC, reuse the source manager variable in the RawStringLiteral apply method
Differential Revision: https://reviews.llvm.org/D69544
1 parent 8f089f2 commit e1b07aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang-tools-extra/clangd/refactor/tweaks/RawStringLiteral.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ bool RawStringLiteral::prepare(const Selection &Inputs) {
9090
Expected<Tweak::Effect> RawStringLiteral::apply(const Selection &Inputs) {
9191
auto &SM = Inputs.AST.getSourceManager();
9292
auto Reps = tooling::Replacements(
93-
tooling::Replacement(Inputs.AST.getSourceManager(), Str,
94-
("R\"(" + Str->getBytes() + ")\"").str(),
93+
tooling::Replacement(SM, Str, ("R\"(" + Str->getBytes() + ")\"").str(),
9594
Inputs.AST.getASTContext().getLangOpts()));
9695
return Effect::mainFileEdit(SM, std::move(Reps));
9796
}

0 commit comments

Comments
 (0)