[llvm] [ADT] Add `[[clang::lifetimebound]]` annotations to Twine.h (PR #210474)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 18 07:39:02 PDT 2026


================
@@ -424,7 +431,8 @@ class Twine {
   /// @name String Operations
   /// @{
 
-  Twine concat(const Twine &Suffix) const;
+  Twine
+  concat(const Twine &Suffix LLVM_LIFETIME_BOUND) const LLVM_LIFETIME_BOUND;
----------------
isuckatcs wrote:

Should we mark the definition as well?

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


More information about the llvm-commits mailing list