[clang] [clang][ExtractAPI][NFC] pass params by const reference (PR #94820)
Daniel Grumberg via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 10 02:05:47 PDT 2024
================
@@ -199,7 +199,8 @@ class DeclarationFragments {
return *this;
}
- DeclarationFragments &replace(std::string NewSpelling, unsigned Position) {
----------------
daniel-grumberg wrote:
I would prefer to keep the value semantics version and instead move assign the value, that way callers can move the string in and avoid any copies.
https://github.com/llvm/llvm-project/pull/94820
More information about the cfe-commits
mailing list