Skip to content
Snippets Groups Projects
Commit 48bb9fae authored by Alexander Kornienko's avatar Alexander Kornienko
Browse files

[Tooling] add a createReplacement overload for StringRef

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302159 91177308-0d34-0410-b5e6-96231b3b80d8
parent 6bdf8252
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,13 @@ FixItHint createReplacement(const D &Destination, const S &Source,
getText(Source, Context));
}
// \brief Returns a FixItHint to replace \p Destination by \p Source.
template <typename D>
FixItHint createReplacement(const D &Destination, StringRef Source) {
return FixItHint::CreateReplacement(internal::getSourceRange(Destination),
Source);
}
} // end namespace fixit
} // end namespace tooling
} // end namespace clang
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment