We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f089f2 commit e1b07aaCopy full SHA for e1b07aa
clang-tools-extra/clangd/refactor/tweaks/RawStringLiteral.cpp
@@ -90,8 +90,7 @@ bool RawStringLiteral::prepare(const Selection &Inputs) {
90
Expected<Tweak::Effect> RawStringLiteral::apply(const Selection &Inputs) {
91
auto &SM = Inputs.AST.getSourceManager();
92
auto Reps = tooling::Replacements(
93
- tooling::Replacement(Inputs.AST.getSourceManager(), Str,
94
- ("R\"(" + Str->getBytes() + ")\"").str(),
+ tooling::Replacement(SM, Str, ("R\"(" + Str->getBytes() + ")\"").str(),
95
Inputs.AST.getASTContext().getLangOpts()));
96
return Effect::mainFileEdit(SM, std::move(Reps));
97
}
0 commit comments