[clang] [llvm] Triple: Forward declare Twine and remove include (PR #145685)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 25 23:58:17 PDT 2025


================
@@ -349,7 +350,12 @@ class Triple {
   /// triple fields unknown.
   Triple() = default;
 
+  LLVM_ABI explicit Triple(std::string &&Str);
----------------
nikic wrote:

Probably my C++-foo is not strong enough, but I thought that doing a by-value pass + std::move gives you the same behavior (i.e. temporary or std::move argument doesn't get copied, everything else does).

https://github.com/llvm/llvm-project/pull/145685


More information about the cfe-commits mailing list