[clang] [Clang][NEON] Use const std::string &. NFC. (PR #193925)
Jay Foad via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 24 02:46:33 PDT 2026
================
@@ -520,7 +520,7 @@ class Intrinsic {
private:
StringRef getNextModifiers(StringRef Proto, unsigned &Pos) const;
- std::string mangleName(std::string Name, ClassKind CK) const;
+ std::string mangleName(const std::string &Name, ClassKind CK) const;
----------------
jayfoad wrote:
I would use StringRef if I was rewriting this code in LLVM style, but my experience of TableGen code is that it mostly uses STL containers, and I'm not sure if migrating to LLVM containers bit-by-bit is a good idea.
No opinion on string_view.
https://github.com/llvm/llvm-project/pull/193925
More information about the cfe-commits
mailing list